From 41d103ab225101433d46b8b984fd079cccdae160 Mon Sep 17 00:00:00 2001 From: Jack-Benny Persson Date: Sat, 8 Dec 2012 06:57:26 +0100 Subject: [PATCH] Limit parsing to only grab the first line of output for performance data --- check_temp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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