Limit parsing to only grab the first line of output for performance data
This commit is contained in:
1 parent
c594f1768f
commit
41d103ab22
1 file changed
+1
-1
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user