Changed the Performace Data Field

This commit is contained in:
Jack-Benny Persson 2017-06-29 05:24:15 +02:00
parent 52670df1be
commit 2286e23d19
2 changed files with 5 additions and 1 deletions

View File

@ -23,3 +23,7 @@ Version 0.94:
In 0.94 I removed /etc from the whereis path as it didn't work for me
on my setup. It found the config-file for lm-sensors and tried to run
it.
Version 0.95:
Changed the Performance Data Field to only contain a label and the
actual value in celsius. For example "temperature=39".

View File

@ -228,7 +228,7 @@ ${SENSORPROG}
fi
# Get performance data for Nagios "Performance Data" field
PERFDATA=`${SENSORPROG} | grep "$sensor" | head -n1`
PERFDATA="temperature=$TEMP"
# And finally check the temperature against our thresholds