From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/407261-check_sensors-fault | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 web/attachments/407261-check_sensors-fault (limited to 'web/attachments/407261-check_sensors-fault') 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 @@ +Description: check for lmsensors 'FAULT' status as well as 'ALARM' +Author: Jonathan Wiltshire +Last-Update: 2011-02-25 + +--- nagios-plugins-1.4.15.orig/plugins-scripts/check_sensors.sh ++++ nagios-plugins-1.4.15/plugins-scripts/check_sensors.sh +@@ -57,6 +57,9 @@ + if echo ${sensordata} | egrep ALARM > /dev/null; then + echo SENSOR CRITICAL - Sensor alarm detected! + exit 2 ++ elif echo ${sensordata} | egrep FAULT > /dev/null; then ++ echo SENSOR CRITICAL - Sensor reported fault ++ exit 2 + else + echo sensor ok + exit 0 -- cgit v1.2.3-74-g34f1