version 1.2, 2006/05/02 02:29:33 |
version 1.3, 2006/05/02 02:39:23 |
|
|
#!/usr/bin/perl |
#!/usr/bin/perl |
# $RedRiver: check_sensors,v 1.1 2006/05/01 18:11:23 andrew Exp $ |
# $RedRiver: check_hw_sensors,v 1.2 2006/05/02 01:29:33 andrew Exp $ |
######################################################################## |
######################################################################## |
# check_hw_sensors *** A nagios check for OpenBSD hw.sensors |
# check_hw_sensors *** A nagios check for OpenBSD hw.sensors |
# |
# |
|
|
|
|
#Option checking |
#Option checking |
my $status = GetOptions( |
my $status = GetOptions( |
"V" => \$opt_V, "version" => \$opt_V, |
"version|V" => \$opt_V, |
"h" => \$opt_h, "help" => \$opt_h, |
"help|h" => \$opt_h, |
"filename|f:s" => \$filename, |
"filename|f:s" => \$filename, |
"sensor|s=s" => \$sensor, |
"sensor|s=s" => \$sensor, |
"warning|w=s" => \$warning, |
"warning|w=s" => \$warning, |