check_apc_ups.pl errors

Sebastien Guilbaud sguilbaud at oceanet-technology.com
Mon Dec 1 10:45:16 CET 2003


>>fwlogs# ./check_apc_ups.pl
>>Bareword "utils" not allowed while "strict subs" in use at ./check_apc_ups.pl line 15.
>>Bareword "pm" not allowed while "strict subs" in use at ./check_apc_ups.pl line 15.
>>BEGIN not safe after errors--compilation aborted at ./check_apc_ups.pl line 16.
>>
>>use strict;
>>use Getopt::Long;
>>use vars qw($opt_V $opt_h $opt_H $opt_T $opt_t $opt_R $opt_r $opt_L $opt_l $PROGNAME);
>>use lib utils.pm;
>>use utils qw(%ERRORS &print_revision &support &usage);
>>sub print_help ();
>>sub print_usage ();
>>sub get_snmp_int_val ($);
>>sub escalate_exitval ($);
 >
 > utils.pm is normally fixed by the configure/make process.
 >
 > change the "use lib utils.pm;" line to point to the
 > directory containging
 > utils.pm - usually "use lib /usr/local/nagios/libexec;"

check_apc_ups.pl does work for me, but this plugin does not seem to obey
"nagios plugin rules" :

Nagios (CVS version) tells me "Current Status : unknown"

Anyone working on this plugin ?? Patches welcome ??

have a nice day !

-- 
Sébastien Guilbaud
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20031201/fa8eeacb/attachment.sig>


More information about the Users mailing list