Add detailed informations for maco probe
This commit is contained in:
parent
5cdfcd7751
commit
3a9bcb6979
|
@ -141,9 +141,14 @@ send_result_to_xymon_server() {
|
||||||
|
|
||||||
# Set the main color according to the highest alert
|
# Set the main color according to the highest alert
|
||||||
COLOR=$(< "${PLUGIN_STATE}" awk '{print $1}' | sort | uniq | head -1 | cut -c3-)
|
COLOR=$(< "${PLUGIN_STATE}" awk '{print $1}' | sort | uniq | head -1 | cut -c3-)
|
||||||
|
SUBJECT=$(< "${PLUGIN_STATE}" sort | uniq | head -1 | cut -d" " -f2-)
|
||||||
|
|
||||||
# Send informations to Xymon server
|
# Send informations to Xymon server
|
||||||
$XYMON "${XYMSRV}" "status ${MACHINE}.${TEST} ${COLOR} $(cat ${PLUGIN_RESULT})"
|
$XYMON "${XYMSRV}" "status ${MACHINE}.${TEST} ${COLOR} ${SUBJECT}
|
||||||
|
|
||||||
|
==================== Detailed status ====================
|
||||||
|
|
||||||
|
&${COLOR} $(cat ${PLUGIN_RESULT})"
|
||||||
#For testing only
|
#For testing only
|
||||||
#echo $XYMON "${XYMSRV}" "status ${MACHINE}.${TEST} ${COLOR} $(cat ${PLUGIN_RESULT})" > /tmp/xymon.maco.tmp
|
#echo $XYMON "${XYMSRV}" "status ${MACHINE}.${TEST} ${COLOR} $(cat ${PLUGIN_RESULT})" > /tmp/xymon.maco.tmp
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue