Limit parsing to only grab the first line of output for performance data

This commit is contained in:
Jack-Benny Persson 2012-12-08 06:57:26 +01:00 committed by root
parent c594f1768f
commit 41d103ab22

View File

@ -227,7 +227,7 @@ printf "\n\n"
fi fi
# Get performance data for Nagios "Performance Data" field # 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 # And finally check the temperature against our thresholds