From 2286e23d1973541bcafcf0c9434fd8355b78d82d Mon Sep 17 00:00:00 2001 From: Jack-Benny Persson Date: Thu, 29 Jun 2017 05:24:15 +0200 Subject: [PATCH] Changed the Performace Data Field --- HISTORY | 4 ++++ check_temp.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index e3a87c5..9f8e680 100644 --- a/HISTORY +++ b/HISTORY @@ -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". diff --git a/check_temp.sh b/check_temp.sh index 6d8769f..721caa4 100755 --- a/check_temp.sh +++ b/check_temp.sh @@ -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