[Pkg-nagios-devel] Bug#484462: nagios-snmp-plugins: Problem using Getopt::Long in perl 5.10 from nagios3
jim.barber at ddihealth.com
Wed Jun 4 07:59:15 UTC 2008
I am trying to use plugins from this package on a Nagios3 installation.
The example service definition in nagios is as follows:
service_description Samba Daemon
The error that shows up in the Nagios display is:
"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:
-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.
I'm not sure if the bug is correctly filed against this package or if it
should be filed against nagios3.
I am using other plugins successfully however.
Also note that I have another host in a different subnet also using this
plugin with perl 5.10, but with nagios2 and that seems to be working
-- System Information:
Debian Release: lenny/sid
Architecture: i386 (i686)
Kernel: Linux 22.214.171.124-alcatraz (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages nagios-snmp-plugins depends on:
ii libnet-snmp-perl 5.2.0-1 Script SNMP connections
ii perl 5.10.0-10 Larry Wall's Practical Extraction
ii perl-base 5.10.0-10 The Pathologically Eclectic Rubbis
ii ucf 3.006 Update Configuration File: preserv
nagios-snmp-plugins recommends no packages.
-- no debconf information
More information about the Pkg-nagios-devel