correcting wrong perfdata
This commit is contained in:
parent
7438ccd459
commit
5daa38f801
@ -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
|
||||
|
||||
##############################################
|
||||
|
Loading…
Reference in New Issue
Block a user