Ensure to get main color

This commit is contained in:
Jeremy Gardais 2021-01-13 13:48:33 +01:00
parent c2519ebc5c
commit e10658b1e5
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 1 additions and 1 deletions

View File

@ -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