[Nagiosplug-help] help w/ check_apc_ups.pl

Subhendu Ghosh sghosh at sghosh.org
Mon May 12 13:32:08 CEST 2003


1. change "use lib utils.pm"  to "use lib /directory/path/to/utils.pm"
   where directory path should be the directory where you installed your 
   plugins.  It should contain a "utils.pm" file.

2. try the script without the -T switch.

-sg


On Mon, 12 May 2003, mark wrote:

> Hi all,
> 
> I'm trying to use check_apc_ups.pl from the contrib dir. I seem to be 
> having a problem with the code syntax and my version of Perl. I'm trying 
> this on FreeBSD 4.8 with Perl 5.00503. When I first try the script (#perl 
> check_apc_ups.pl) I get a message that is is too late to use the "-T" 
> option on line one. If I move those flags to the command line (#perl -wT 
> check_apc_ups.pl) I get the following:
> 
> mon1# perl -wT check_apc_ups.pl
> Bareword "utils" not allowed while "strict subs" in use at 
> check_apc_ups.pl line 16.
> Unquoted string "utils" may clash with future reserved word at 
> check_apc_ups.pl line 16.
> Bareword "pm" not allowed while "strict subs" in use at check_apc_ups.pl 
> line 16.
> Unquoted string "pm" may clash with future reserved word at 
> check_apc_ups.pl line 16.
> BEGIN not safe after errors--compilation aborted at check_apc_ups.pl line 
> 16.
> mon1#
> 
> Anyone have an idea what's up here and if it can be fixed without a 
> complete re-write?
> I don't know much about Perl so any help would be appreciated. 
> 
> Thanks,
> Mark
> 
> 
> 
> -------------------------------------------------------
> Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
> The only event dedicated to issues related to Linux enterprise solutions
> www.enterpriselinuxforum.com
> 
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 

-- 






More information about the Help mailing list