Plugin fails with epn

Max perldork at webwizarddesign.com
Sun Apr 11 19:59:19 CEST 2010


If you look at p1.pl, which is in the Nagios bin directory you can
enable ePn logging (EPN_LEAVE_MESSAGES or something similar for debug
level) and have epn log each command execution to a log file ... This
often will make the source of an epn error more obvious.

The other thing to do is add

Use warnings;

To your script or run it from the command line with

perl -w

As any output to STDERR will cause ePN to halt execution.

That said, 'not execute properly' errors are often permissions or path
errors, so when you test from the CLI make sure you run the script as
the same user your Nagios damon runs as.

Max

On 4/11/10, Joseph L. Casale <jcasale at activenetwerx.com> wrote:
> I've written a plugin that very closely resembles other contrib based
> Perl plugins and runs as expected at the cli. It fails with a "Service
> check did not exit properly" unless I force it to run w/o the epn.
>
> I have read the guidelines, but not really knowing much about Perl, I
> can't see where its tanking.
>
> Is there a way to run it at the cli with the epn in hopes to see more
> output to glean a clue as to what's going wrong? Or is there a better
> way to glean more useful info?
>
> Thanks,
> jlc
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> 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
>

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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