On Apr 15, 2009, at 1:48 PM, Livio Zanol Puppim wrote:

> Just to inform, that I've had this problem... After googling it,  
> couldn't find an answer. Only a similar problem in the past
>
> Well,
> this has happend to me with a perl script. the problem was a  
> "Switch" statement.
> I was using "use Switch;", and the scripts works, as root and as  
> nagios user, but doesn't work when nagios calls it.
>
> Nagios 3.0.3

It may be that you have the embedded perl interpreter compiled in and  
enabled, and the script was not specifically designed to work under  
it. There are special, documented requirements for plugins to work  
successfully under ePN. You can test if that is the cause by either  
disabling ePN or prepending the command_line for this plugin with '/ 
your/path/to/perl' (i.e. command_line   /your/path/to/perl $USER1$/ 
yourplugin -H ...other arguments...)

--
Marc


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Nagios-users mailing list
Nagios-users@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

Reply via email to