version 1.15, 2006/10/25 19:35:59 |
version 1.17, 2006/10/26 00:30:23 |
|
|
#!/usr/bin/perl -T |
#!/usr/bin/perl -T |
# $RedRiver: check_hw_sensors,v 1.14 2006/05/04 01:30:29 andrew Exp $ |
# $RedRiver: check_hw_sensors,v 1.16 2006/10/25 18:36:46 andrew Exp $ |
######################################################################## |
######################################################################## |
# check_hw_sensors *** A nagios check for OpenBSD hw.sensors |
# check_hw_sensors *** A nagios check for OpenBSD hw.sensors |
# |
# |
|
|
|
|
%ENV = (); |
%ENV = (); |
|
|
use constant NAGIOS_OUTPUT => 0; |
use constant NAGIOS_OUTPUT => 1; |
|
|
use POSIX; |
use POSIX; |
use lib "/usr/local/libexec/nagios"; |
use lib "/usr/local/libexec/nagios"; |
|
|
|
|
Usage: |
Usage: |
-i, --ignore-status |
-i, --ignore-status |
Whether to check the "status" of the sensors that report it. |
Don't check the status of sensors that report it. |
Normally enabled, pass this |
|
-f, --filename=FILE |
-f, --filename=FILE |
FILE to load checks from (defaults to /etc/sensorsd.conf) |
FILE to load checks from (defaults to /etc/sensorsd.conf) |
-s, --sensor=ID |
-s, --sensor=ID |
|
|
Exit with WARNING status if outside of RANGE or if != ENTRY |
Exit with WARNING status if outside of RANGE or if != ENTRY |
-c, --critical=RANGE or single ENTRY |
-c, --critical=RANGE or single ENTRY |
Exit with CRITICAL status if outside of RANGE or if != ENTRY |
Exit with CRITICAL status if outside of RANGE or if != ENTRY |
|
|
-h (--help) usage help |
|
|
|
FILE is in the same format as sensorsd.conf(5) plus some additional |
FILE is in the same format as sensorsd.conf(5) plus some additional |
entries. These additional entries in the file are ignored by |
entries. These additional entries in the file are ignored by |