Limit parsing to only grab the first line of output for performance data
This commit is contained in:
parent
c594f1768f
commit
41d103ab22
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user