summaryrefslogtreecommitdiffstats
path: root/web/attachments/407261-check_sensors-fault
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/407261-check_sensors-fault')
-rw-r--r--web/attachments/407261-check_sensors-fault16
1 files changed, 16 insertions, 0 deletions
diff --git a/web/attachments/407261-check_sensors-fault b/web/attachments/407261-check_sensors-fault
new file mode 100644
index 0000000..64b5201
--- /dev/null
+++ b/web/attachments/407261-check_sensors-fault
@@ -0,0 +1,16 @@
1Description: check for lmsensors 'FAULT' status as well as 'ALARM'
2Author: Jonathan Wiltshire <jmw@debian.org>
3Last-Update: 2011-02-25
4
5--- nagios-plugins-1.4.15.orig/plugins-scripts/check_sensors.sh
6+++ nagios-plugins-1.4.15/plugins-scripts/check_sensors.sh
7@@ -57,6 +57,9 @@
8 if echo ${sensordata} | egrep ALARM > /dev/null; then
9 echo SENSOR CRITICAL - Sensor alarm detected!
10 exit 2
11+ elif echo ${sensordata} | egrep FAULT > /dev/null; then
12+ echo SENSOR CRITICAL - Sensor reported fault
13+ exit 2
14 else
15 echo sensor ok
16 exit 0