summaryrefslogtreecommitdiffstats
path: root/web/attachments/407261-check_sensors-fault
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/407261-check_sensors-fault
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
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