=================================================================== RCS file: /cvs/nagios/check_hw_sensors/index.html,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- nagios/check_hw_sensors/index.html 2006/12/05 16:44:14 1.5 +++ nagios/check_hw_sensors/index.html 2007/01/06 03:27:53 1.6 @@ -3,7 +3,7 @@

Nagios Check - check_hw_sensors

check_hw_sensors plugin for Nagios monitors sysctl hw.sensors on OpenBSD

With the new sensor framework in OpenBSD 3.9, I wanted to be able to monitor the new hw.sensors from Nagios and this is what I have. The documentation is a bit thin and I don't know how reliable it is. I would be happy to accept patches. Send them to andrew+nagios@rraz.net. I know the docs aren't as good as I would like, so if there are places that need clarification, please let me know!

-

New in this release is support for more sensor types, as well as support for OpenBSD 4.0.

+

New in this release is support for the new 2 level sensors in OpenBSD 4.0-current. They seem way more better, and I may change some stuff to only support that version after I get all my machines moved to 4.1

It has the ability to check the sensors that report their status. Since many sensors support this, it can make the size of your sensorsd.conf much smaller. For example, check_hw_sensors will automatically check these two sensors:

-

Download the current version here

+

Download the current version here

Please be sure to support the OpenBSD project by purchasing @@ -87,68 +87,44 @@

If you are using --ignore-status, you can still check the status of individual sensors with a status entry.

-

check_hw_sensors (nagios-plugins 1.4.2) 1.21
+

check_hw_sensors (nagios-plugins 1.4.2) 1.22
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute copies of the plugins under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING.

Example sensorsd.conf

-# hw.sensors.0=esm0, CPU 1, 39.00 degC, OK
-# hw.sensors.1=esm0, CPU 2, 37.00 degC, OK
-# hw.sensors.2=esm0, Mainboard, 29.50 degC, OK
-# hw.sensors.3=esm0, CPU 1 Core, 1.74 V DC, OK
-# hw.sensors.4=esm0, CPU 2 Core, 1.73 V DC, OK
-# hw.sensors.5=esm0, Motherboard +5V, 4.94 V DC, OK
-# hw.sensors.6=esm0, Motherboard +12V, 11.90 V DC, OK
-# hw.sensors.7=esm0, Motherboard +3.3V, 3.22 V DC, OK
-# hw.sensors.8=esm0, Motherboard +2.5V, 2.49 V DC, OK
-# hw.sensors.9=esm0, Motherboard GTL Term, 1.49 V DC, OK
-# hw.sensors.10=esm0, Motherboard Battery, 2.98 V DC, OK
-# hw.sensors.11=esm0, Chassis Intrusion, Off
-hw.sensors.11:crit=Off
-# hw.sensors.12=esm0, Fan 1, 3586 RPM, OK
-# hw.sensors.13=esm0, Fan 2, 3539 RPM, OK
-# hw.sensors.14=esm0, Fan 3, 3536 RPM, OK
-# hw.sensors.15=esm0, Backplane, 0 raw
-# hw.sensors.16=esm0, Backplane Top, 28.00 degC, OK
-# hw.sensors.17=esm0, Backplane Bottom, 30.50 degC, OK
-# hw.sensors.18=esm0, Backplane +5V, 4.94 V DC, OK
-# hw.sensors.19=esm0, Backplane +12V, 11.81 V DC, OK
-# hw.sensors.20=esm0, Backplane SCSI A Connected, On
-hw.sensors.20:crit=On
-# hw.sensors.21=esm0, Backplane SCSI A External, 4.61 V DC, OK
-# hw.sensors.22=esm0, Backplane SCSI B Connected, Off
-# hw.sensors.23=esm0, Drive 0, drive online
-hw.sensors.23:crit=online
-# hw.sensors.24=esm0, Drive 1, drive online
-hw.sensors.24:crit=online
-# hw.sensors.25=esm0, Drive 2, drive online
-hw.sensors.25:crit=online
-# hw.sensors.26=esm0, Drive 3, drive online
-hw.sensors.26:crit=online
-# hw.sensors.27=esm0, Drive 4, drive online
-hw.sensors.27:crit=online
-# hw.sensors.28=esm0, Backplane Control 2, 1 raw
-# hw.sensors.29=esm0, Backplane +3.3V, 3.28 V DC, OK
-# hw.sensors.30=ami0, sd0, drive online, OK
-# hw.sensors.31=ami0, sd1, drive online, OK
-# hw.sensors.32=safte0, Temp0, 27.78 degC, OK
-# hw.sensors.33=safte0, Temp1, 30.56 degC, OK
+# hw.sensors.acpibat0.volt0=7.40 V DC, (voltage), OK
+# hw.sensors.acpibat0.volt1=8.30 V DC, (current voltage), OK
+# hw.sensors.acpibat0.watthour0=57.72 Wh, (last full capacity)
+# hw.sensors.acpibat0.watthour1=0.00 Wh, (warning capacity)
+# hw.sensors.acpibat0.watthour2=0.12 Wh, (low capacity)
+# hw.sensors.acpibat0.watthour3=57.72 Wh, (remaining capacity)
+hw.sensors.acpibat0.watthour3:warn.low=50 Wh:crit.low=30 Wh
+# hw.sensors.acpibat0.raw0=2, (battery charging), OK
+# hw.sensors.acpibat0.raw1=99, (rate)
+# hw.sensors.acpiac0.indicator0=On, (power supply)
+hw.sensors.acpiac0.indicator0:crit=On
+# hw.sensors.acpitz0.temp0=62.95 degC, (zone temperature)
+hw.sensors.acpitz0.temp0:warn.high=65 degC:crit.high=75 degC
         

CVS log for check_hw_sensors

 RCS file: /cvs/scripts/Admin scripts/check_hw_sensors/check_hw_sensors,v
 Working file: check_hw_sensors
-head: 1.21
+head: 1.22
 branch:
 locks: strict
 access list:
 symbolic names:
 keyword substitution: kv
-total revisions: 21;	selected revisions: 21
+total revisions: 22;	selected revisions: 22
 description:
 ----------------------------
+revision 1.22
+date: 2007/01/06 03:16:41;  author: andrew;  state: Exp;  lines: +11 -4
+Support the new dual level sensors
+----------------------------
 revision 1.21
 date: 2006/12/05 16:26:27;  author: andrew;  state: Exp;  lines: +5 -5
 new better example for 4.0
@@ -245,7 +221,7 @@
 =============================================================================
 		

Andrew Fresh <andrew@mad-techies.org>

-

$RedRiver: index.html,v 1.4 2006/10/25 23:30:23 andrew Exp $

+

$RedRiver: index.html,v 1.5 2006/12/05 16:44:14 andrew Exp $