Nagios::Plugin and Nagios Embedded perl interpretor

Marc-André Doll mad at b-care.net
Tue Feb 8 14:12:42 CET 2011


Yes that was it!

Thank you for your hint.

Marc-André

On Tue, 2011-02-08 at 07:18 -0500, Max Schubert wrote:
> Marc,
> 
> On Tue, Feb 8, 2011 at 6:16 AM, Marc-André Doll <mad at b-care.net> wrote:
> > Hi list,
> >
> > I'm developing some Nagios plugin with the Nagios::Plugin perl module
> > and it's saving me a great amount of time.
> >
> > However, I encountered a little problem when I tried to activate the
> > embedded perl interpretor in Nagios: all checks returned an UNKNOWN
> > state with an error from the ePN saying that an error occurred in the
> > Getopt::Long perl module about the use of an uninitialized value line
> > 459.
> >
> > I suppose the problem come from my usage of the add_arg() function but I
> > don't know how to correct it.
> >
> > Does somebody have already encountered that kind of behaviour or have an
> > idea on how to debug a perl script when it's launched by the ePN?
> 
> Check out your command lines, especially if you use custom attribute
> substitution in them - look for attributes that are empty (no spaces)
> - that gets translated into a NULL or some other non-printable
> character that Getopt::Long chokes on
> 
> http://www.semintelligent.com/blog/articles/50/epn-why-do-i-get-an-unitialized-value-error-message-from-my-getopt-longpm-when-nagios-runs-my-perl-based-plugin-under-epn
> 
> - Max
> 
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> 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



------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
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