summaryrefslogtreecommitdiffstats
path: root/web/attachments/407261-check_sensors-fault
blob: 64b5201d5ca6d02e51c302f24458a7599ed0494c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: check for lmsensors 'FAULT' status as well as 'ALARM'
Author: Jonathan Wiltshire <jmw@debian.org>
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