[Pkg-nagios-devel] Bug#484462: Bug#484462: nagios-snmp-plugins: Problem using Getopt::Long in perl 5.10 from nagios3

Jan Wagner waja at cyconet.org
Wed Jun 4 08:33:06 UTC 2008


# fixed in svn
tags 484462 + confirmed pending
thanks

Hi Jim,

On Wednesday 04 June 2008 09:59, Jim Barber wrote:
> The error that shows up in the Nagios display is:
>
> 	**ePN /usr/lib/nagios/plugins/check_snmp_process.pl:
> 		"Use of uninitialized value $opt in string eq at
> 		/usr/share/perl/5.10/Getopt/Long.pm line 497,".
>
>
> However, if I run the command manually as follows it works:
>
> 	/usr/lib/nagios/plugins/check_snmp_process.pl \
> 		-H 10.100.1.3 -C public -2 -n smbd -w 0 -c 0
>
> The response that comes back from above is:
>
> 	2 process matching smbd (> 0)
>
>
> So the problem is something to do with the interaction with the embedded
> perl within nagios 3.

it is just enabled by default with nagios3. You can disable it with 
inserting "# nagios: -epn" in the first 10 lines of the plugin. This will be 
the case for the next nagios-snmp-plugins package.

With kind regards, Jan.
-- 
Never write mail to <waja at spamfalle.info>, you have been warned!
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GIT d-- s+: a- C+++ UL++++ P+ L+++ E- W+++ N+++ o++ K++ w--- O M V- PS PE
Y++ PGP++ t-- 5 X R tv- b+ DI- D++ G++ e++ h-- r+++ y+++
------END GEEK CODE BLOCK------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20080604/9bd41dd5/attachment.pgp 


More information about the Pkg-nagios-devel mailing list