summaryrefslogtreecommitdiffstats
path: root/plugins-scripts
diff options
context:
space:
mode:
authorLorenz <12514511+RincewindsHat@users.noreply.github.com>2022-11-25 09:30:05 (GMT)
committerGitHub <noreply@github.com>2022-11-25 09:30:05 (GMT)
commit917dba07fded8ef04967183a4c0443b5cce2db82 (patch)
treebd3017f225186b3e7f29db257f0d3b5790846ff2 /plugins-scripts
parent4ff0dfa44306c4e8a7dc46fcb1c508f7a191638b (diff)
parent1bc6d81651c5b5fe865515d420fc2772f4997059 (diff)
downloadmonitoring-plugins-917dba07fded8ef04967183a4c0443b5cce2db82.tar.gz
Merge branch 'master' into dev/check_ssh-patches
Diffstat (limited to 'plugins-scripts')
-rwxr-xr-xplugins-scripts/check_sensors.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins-scripts/check_sensors.sh b/plugins-scripts/check_sensors.sh
index ab4e726..921e7b3 100755
--- a/plugins-scripts/check_sensors.sh
+++ b/plugins-scripts/check_sensors.sh
@@ -49,10 +49,10 @@ case "$1" in
49 elif test "${status}" -ne 0; then 49 elif test "${status}" -ne 0; then
50 text="WARNING - sensors returned state $status" 50 text="WARNING - sensors returned state $status"
51 exit=$STATE_WARNING 51 exit=$STATE_WARNING
52 elif echo "${sensordata}" | egrep ALARM > /dev/null; then 52 elif echo "${sensordata}" | grep -E ALARM > /dev/null; then
53 text="SENSOR CRITICAL - Sensor alarm detected!" 53 text="SENSOR CRITICAL - Sensor alarm detected!"
54 exit=$STATE_CRITICAL 54 exit=$STATE_CRITICAL
55 elif echo "${sensordata}" | egrep FAULT > /dev/null \ 55 elif echo "${sensordata}" | grep -E FAULT > /dev/null \
56 && test "$1" != "-i" -a "$1" != "--ignore-fault"; then 56 && test "$1" != "-i" -a "$1" != "--ignore-fault"; then
57 text="SENSOR UNKNOWN - Sensor reported fault" 57 text="SENSOR UNKNOWN - Sensor reported fault"
58 exit=$STATE_UNKNOWN 58 exit=$STATE_UNKNOWN