From 3a9bcb69793280bccc8bb609d4d6ad76c076e297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Mon, 15 Jun 2020 17:48:26 +0200 Subject: [PATCH] Add detailed informations for maco probe --- xymon/plugins/client/ext/maco.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xymon/plugins/client/ext/maco.sh b/xymon/plugins/client/ext/maco.sh index c75fb5d..fe94892 100755 --- a/xymon/plugins/client/ext/maco.sh +++ b/xymon/plugins/client/ext/maco.sh @@ -141,9 +141,14 @@ send_result_to_xymon_server() { # Set the main color according to the highest alert 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 - $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 #echo $XYMON "${XYMSRV}" "status ${MACHINE}.${TEST} ${COLOR} $(cat ${PLUGIN_RESULT})" > /tmp/xymon.maco.tmp