From 5daa38f801094f9078090cd9a4187e22fead540e Mon Sep 17 00:00:00 2001 From: Patrick Schindelmann Date: Wed, 5 Jan 2022 21:46:52 +0000 Subject: [PATCH] correcting wrong perfdata --- check_digitemp_adv.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/check_digitemp_adv.sh b/check_digitemp_adv.sh index 7abf772..05520b6 100755 --- a/check_digitemp_adv.sh +++ b/check_digitemp_adv.sh @@ -205,6 +205,7 @@ do fi OUTPUT+=" Sensor $sensor_hex is ${celsius}°C;" + OUTPUT_PERFDATA+="Sensor $sensor_id=$celsius;$WARNING;$CRITICAL " fi @@ -224,6 +225,7 @@ do fi OUTPUT+=" Sensor $sensor_hex is ${fahrenheit}°F;" + OUTPUT_PERFDATA+="Sensor $sensor_id=$fahrenheit;$WARNING;$CRITICAL " fi @@ -237,7 +239,7 @@ done #Wenn der schalter --perfdata gesetzt ist, wird die Ausgabe um $STATUS_OK, $STATUS_WARNING und $STATUS_CRITICAL erweitert if [ "$PERFDATA" = "1" ] then - OUTPUT="$OUTPUT | $STATUS_OK;$STATUS_WARNING;$STATUS_CRITICAL" + OUTPUT="$OUTPUT | $OUTPUT_PERFDATA" fi ##############################################