check_apc_ups.pl errors

Subhendu Ghosh sghosh at sghosh.org
Sat Nov 15 00:24:32 CET 2003


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;"

-sg

On Fri, 14 Nov 2003, Jon Lyons wrote:

> I get this error when attempting to execute check_apc_ups.pl, do I need a perl module or something? Perl doesn't seem to like the "use lib uitls.pm" command....
>  
>  
> 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 ($);
> 
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard

-- 




-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list