check_apc_ups

Subhendu Ghosh sghosh at sghosh.org
Mon Apr 19 17:01:34 CEST 2004


On Thu, 15 Apr 2004, MiikaT wrote:

> When I execute check_apc_ups without any parameters, I get this:
> 
> Bareword "utils" not allowed while "strict subs" in use at ./check_apc_ups.pl 
> line 16.
> Bareword "pm" not allowed while "strict subs" in use at ./check_apc_ups.pl 
> line 16.
> BEGIN not safe after errors--compilation aborted at ./check_apc_ups.pl line 17.
> 
> Any idea, if my linux box lacs some perl stuff, or howcome won't it work?
> 

change line 16 so it points to the directory containing your plugins (and 
utils.pm)

use lib "/usr/local/nagios/libexec";


-- 
-sg



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
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