From e10658b1e5cf505458cef71a8bca76ba3be40df0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Wed, 13 Jan 2021 13:48:33 +0100 Subject: [PATCH] Ensure to get main color --- xymon/plugins/client/ext/maco.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xymon/plugins/client/ext/maco.sh b/xymon/plugins/client/ext/maco.sh index 4497d6b..9027d28 100755 --- a/xymon/plugins/client/ext/maco.sh +++ b/xymon/plugins/client/ext/maco.sh @@ -216,7 +216,7 @@ No Maco urgent update is planned." 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-) + COLOR=$(< "${PLUGIN_STATE}" awk '{print $1}' | sort | uniq | head -1 | cut -c4-) SUBJECT=$(< "${PLUGIN_STATE}" sort | uniq | head -1 | cut -d" " -f2-) # Send informations to Xymon server