version 1.5, 2006/12/05 16:44:14 |
version 1.6, 2007/01/06 03:27:53 |
|
|
<h1>Nagios Check - check_hw_sensors</h1> |
<h1>Nagios Check - check_hw_sensors</h1> |
<p>check_hw_sensors plugin for Nagios monitors sysctl hw.sensors on OpenBSD</p> |
<p>check_hw_sensors plugin for Nagios monitors sysctl hw.sensors on OpenBSD</p> |
<p>With the new sensor framework in OpenBSD 3.9, I wanted to be able to monitor the new hw.sensors from <a href='http://www.nagios.org/'>Nagios</a> 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 <a href='mailto:andrew+nagios@rraz.net'>andrew+nagios@rraz.net</a>. I know the docs aren't as good as I would like, so if there are places that need clarification, please let me know!</p> |
<p>With the new sensor framework in OpenBSD 3.9, I wanted to be able to monitor the new hw.sensors from <a href='http://www.nagios.org/'>Nagios</a> 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 <a href='mailto:andrew+nagios@rraz.net'>andrew+nagios@rraz.net</a>. I know the docs aren't as good as I would like, so if there are places that need clarification, please let me know!</p> |
<p>New in this release is support for more sensor types, as well as support for OpenBSD 4.0.</p> |
<p>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</p> |
<p>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: |
<p>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: |
<ul> |
<ul> |
<li>hw.sensors.76=esm0, Fan 4, 3629 RPM, OK</li> |
<li>hw.sensors.76=esm0, Fan 4, 3629 RPM, OK</li> |
|
|
<li>the RANGE using the colon to separate probably screws up the getcap of sensorsd.conf, so it should probably get replaced with a dash or somesuch</li> |
<li>the RANGE using the colon to separate probably screws up the getcap of sensorsd.conf, so it should probably get replaced with a dash or somesuch</li> |
</ul> |
</ul> |
</p> |
</p> |
<p><center><b><a href='check_hw_sensors-1.21.tar.gz'>Download the current version here</a></b></center></p> |
<p><center><b><a href='check_hw_sensors-1.22.tar.gz'>Download the current version here</a></b></center></p> |
<h4> |
<h4> |
Please be sure to support the <a href="http://www.openbsd.org">OpenBSD</a> |
Please be sure to support the <a href="http://www.openbsd.org">OpenBSD</a> |
project by purchasing |
project by purchasing |
|
|
<p>If you are using --ignore-status, you can still check the status of |
<p>If you are using --ignore-status, you can still check the status of |
individual sensors with a status entry.</p> |
individual sensors with a status entry.</p> |
|
|
<p>check_hw_sensors (nagios-plugins 1.4.2) 1.21<br> |
<p>check_hw_sensors (nagios-plugins 1.4.2) 1.22<br> |
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute |
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute |
copies of the plugins under the terms of the GNU General Public License. |
copies of the plugins under the terms of the GNU General Public License. |
For more information about these matters, see the file named COPYING.</p> |
For more information about these matters, see the file named COPYING.</p> |
|
|
<h3>Example sensorsd.conf</h3> |
<h3>Example sensorsd.conf</h3> |
<pre> |
<pre> |
# hw.sensors.0=esm0, CPU 1, 39.00 degC, OK |
# hw.sensors.acpibat0.volt0=7.40 V DC, (voltage), OK |
# hw.sensors.1=esm0, CPU 2, 37.00 degC, OK |
# hw.sensors.acpibat0.volt1=8.30 V DC, (current voltage), OK |
# hw.sensors.2=esm0, Mainboard, 29.50 degC, OK |
# hw.sensors.acpibat0.watthour0=57.72 Wh, (last full capacity) |
# hw.sensors.3=esm0, CPU 1 Core, 1.74 V DC, OK |
# hw.sensors.acpibat0.watthour1=0.00 Wh, (warning capacity) |
# hw.sensors.4=esm0, CPU 2 Core, 1.73 V DC, OK |
# hw.sensors.acpibat0.watthour2=0.12 Wh, (low capacity) |
# hw.sensors.5=esm0, Motherboard +5V, 4.94 V DC, OK |
# hw.sensors.acpibat0.watthour3=57.72 Wh, (remaining capacity) |
# hw.sensors.6=esm0, Motherboard +12V, 11.90 V DC, OK |
hw.sensors.acpibat0.watthour3:warn.low=50 Wh:crit.low=30 Wh |
# hw.sensors.7=esm0, Motherboard +3.3V, 3.22 V DC, OK |
# hw.sensors.acpibat0.raw0=2, (battery charging), OK |
# hw.sensors.8=esm0, Motherboard +2.5V, 2.49 V DC, OK |
# hw.sensors.acpibat0.raw1=99, (rate) |
# hw.sensors.9=esm0, Motherboard GTL Term, 1.49 V DC, OK |
# hw.sensors.acpiac0.indicator0=On, (power supply) |
# hw.sensors.10=esm0, Motherboard Battery, 2.98 V DC, OK |
hw.sensors.acpiac0.indicator0:crit=On |
# hw.sensors.11=esm0, Chassis Intrusion, Off |
# hw.sensors.acpitz0.temp0=62.95 degC, (zone temperature) |
hw.sensors.11:crit=Off |
hw.sensors.acpitz0.temp0:warn.high=65 degC:crit.high=75 degC |
# 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 |
|
</pre> |
</pre> |
<h3>CVS log for check_hw_sensors</h3> |
<h3>CVS log for check_hw_sensors</h3> |
<pre> |
<pre> |
RCS file: /cvs/scripts/Admin scripts/check_hw_sensors/check_hw_sensors,v |
RCS file: /cvs/scripts/Admin scripts/check_hw_sensors/check_hw_sensors,v |
Working file: check_hw_sensors |
Working file: check_hw_sensors |
head: 1.21 |
head: 1.22 |
branch: |
branch: |
locks: strict |
locks: strict |
access list: |
access list: |
symbolic names: |
symbolic names: |
keyword substitution: kv |
keyword substitution: kv |
total revisions: 21; selected revisions: 21 |
total revisions: 22; selected revisions: 22 |
description: |
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 |
revision 1.21 |
date: 2006/12/05 16:26:27; author: andrew; state: Exp; lines: +5 -5 |
date: 2006/12/05 16:26:27; author: andrew; state: Exp; lines: +5 -5 |
new better example for 4.0 |
new better example for 4.0 |
|
|
============================================================================= |
============================================================================= |
</pre> |
</pre> |
<p>Andrew Fresh <<a href='mailto:andrew@mad-techies.org'>andrew@mad-techies.org</a>></p> |
<p>Andrew Fresh <<a href='mailto:andrew@mad-techies.org'>andrew@mad-techies.org</a>></p> |
<p><small>$RedRiver: index.html,v 1.4 2006/10/25 23:30:23 andrew Exp $</small></p> |
<p><small>$RedRiver: index.html,v 1.5 2006/12/05 16:44:14 andrew Exp $</small></p> |
</body> |
</body> |
</html> |
</html> |
|
|