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

2008-06-04 Thread Jan Wagner
# 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 [EMAIL PROTECTED], 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--


pgpSRXdiESZ8I.pgp
Description: PGP signature


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

2008-06-04 Thread Jim Barber
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.


Thank you.

I added the following to the top of the 
/usr/lib/nagios/plugins/check_snmp_process.pl script:

# nagios: -epn

This fixed the problem.

Regards,

--
Jim Barber
DDI Health



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]