version 1.12, 2006/05/03 22:54:43 |
version 1.14, 2006/05/04 02:30:29 |
|
|
#!/usr/bin/perl |
#!/usr/bin/perl -T |
# $RedRiver: check_hw_sensors,v 1.11 2006/05/03 20:01:09 holligan Exp $ |
# $RedRiver: check_hw_sensors,v 1.13 2006/05/03 22:16:42 andrew Exp $ |
######################################################################## |
######################################################################## |
# check_hw_sensors *** A nagios check for OpenBSD hw.sensors |
# check_hw_sensors *** A nagios check for OpenBSD hw.sensors |
# |
# |
|
|
|
|
#use Data::Dumper; |
#use Data::Dumper; |
|
|
|
%ENV = (); |
|
|
use constant NAGIOS_OUTPUT => 1; |
use constant NAGIOS_OUTPUT => 1; |
|
|
use POSIX; |
use POSIX; |
|
|
ID of a single sensor. "-s 0" means hw.sensors.0. |
ID of a single sensor. "-s 0" means hw.sensors.0. |
-w, --warning=RANGE or single ENTRY |
-w, --warning=RANGE or single ENTRY |
Exit with WARNING status if outside of RANGE or if != ENTRY |
Exit with WARNING status if outside of RANGE or if != ENTRY |
-c, --critical=INTEGER |
-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 |
-h (--help) usage help |
|
|
FILE is in the same format as sensorsd.conf(5). These additional |
FILE is in the same format as sensorsd.conf(5) plus some additional |
entries in the file are ignored by sensorsd(8). |
entries. These additional entries in the file are ignored by |
|
sensorsd(8). |
|
|
$PROGNAME understands the following entries: |
$PROGNAME understands the following entries: |
|
|