diff --git a/check_temp.sh b/check_temp.sh index 084b064..20a1181 100755 --- a/check_temp.sh +++ b/check_temp.sh @@ -227,7 +227,7 @@ printf "\n\n" fi # Get performance data for Nagios "Performance Data" field -PERFDATA=`${SENSORPROG} | grep "$sensor"` +PERFDATA=`${SENSORPROG} | grep "$sensor" | head -n1` # And finally check the temperature against our thresholds