version 1.10, 2006/05/03 04:31:22 |
version 1.11, 2006/05/03 21:01:09 |
|
|
#!/usr/bin/perl |
#!/usr/bin/perl |
# $RedRiver: check_hw_sensors,v 1.9 2006/05/03 02:26:47 andrew Exp $ |
# $RedRiver: check_hw_sensors,v 1.10 2006/05/03 03:31:22 andrew Exp $ |
######################################################################## |
######################################################################## |
# check_hw_sensors *** A nagios check for OpenBSD hw.sensors |
# check_hw_sensors *** A nagios check for OpenBSD hw.sensors |
# |
# |
|
|
low, high, crit, warn, crit.low, crit.high, warn.low, warn.high |
low, high, crit, warn, crit.low, crit.high, warn.low, warn.high |
|
|
An ENTRY depends on the type. The descriptions in sensorsd.conf(5) can be used when appropriate, or you can use the following: |
An ENTRY depends on the type. The descriptions in sensorsd.conf(5) can be used when appropriate, or you can use the following: |
volts_dc, fanrpm or raw - Anything that includes digits. Anything that isn't a digit or period is stripped from the entry and the sensor output and they are compared. |
volts_dc, fanrpm or raw - Anything that includes digits. Both the value of the check and the value of the sensor response that are not either a digit or period are stripped and then the two resultant values are compared. |
temp - Can be as above, but if the entry has an F in it, it compares farenheit, otherwise it uses celcius. |
temp - Can be as above, but if the entry has an F in it, it compares farenheit, otherwise it uses celcius. |
indicator or drive - does a case sensitive match of each entry in the comma separated list and if it does not match any of the entries, it matches the status. |
indicator or drive - does a case sensitive match of each entry in the comma separated list and if it does not match any of the entries, it matches the status. |
|
|