[Pkg-nagios-devel] Bug#732110: nagios-plugins-contrib: check_rbl error when nameserver available only in IPv6
Benoit Friry
benoit at friry.net
Sat Dec 14 08:24:50 UTC 2013
Package: nagios-plugins-contrib
Version: 4.20120702
Severity: normal
Hello,
$ cat /etc/resolv.conf
nameserver ::1
$ ./check_rbl -H 2.0.0.127.bl.spamcop.net -w 0 -c 0 -s bl.spamcop.net
Use of uninitialized value $sock in hash element at ./check_rbl line 157.
Use of uninitialized value $sock in hash element at ./check_rbl line 157.
CHECK_RBL OK - 2.0.0.127.bl.spamcop.net BLACKLISTED on 0 servers of 1 | servers=0;0;0 time=0s;;
[edit resolv.conf]
$ cat /etc/resolv.conf
nameserver ::1
nameserver 127.0.0.1
$ ./check_rbl -H 2.0.0.127.bl.spamcop.net -w 0 -c 0 -s bl.spamcop.net
CHECK_RBL CRITICAL - 2.0.0.127.bl.spamcop.net BLACKLISTED on 1 server of 1 (bl.spamcop.net) | servers=1;0;0 time=0s;;
I don't understand why check_rbl does not work with a nameserver available
only in IPv6. I can accept the requirement.
Nonetheless the test should fail if it cannot resolve correctly.
I extracted the script from the debian package in unstable (8.20130824),
and it presents the same behaviour.
Regards,
Benoit
-- System Information:
Debian Release: 7.2
APT prefers stable
APT policy: (990, 'stable'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-042stab081.8 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
nagios-plugins-contrib depends on no packages.
Versions of packages nagios-plugins-contrib recommends:
pn freeipmi-tools <none>
ii libc6 2.17-97
pn libdate-manip-perl <none>
ii libio-socket-ssl-perl 1.76-2
pn libipc-run-perl <none>
ii liblocale-gettext-perl 1.05-7+b1
pn liblwp-useragent-determined-perl <none>
ii libmail-imapclient-perl 3.31-2
pn libmemcached10 <none>
ii libnagios-plugin-perl 0.36-1
ii libnet-dns-perl 0.66-2+b2
ii libnet-smtp-tls-perl 0.12-1
pn libnet-snmp-perl <none>
ii libnet-ssleay-perl 1.48-1+b1
ii libreadonly-perl 1.03-4
pn libyaml-syck-perl <none>
ii lsof 4.86+dfsg-1
ii openssl 1.0.1e-2
ii python 2.7.3-4+deb7u1
pn ruby | ruby-interpreter <none>
pn snmp <none>
Versions of packages nagios-plugins-contrib suggests:
pn backuppc <none>
pn cciss-vol-status <none>
pn expect <none>
pn mpt-status <none>
pn perl-doc <none>
-- no debconf information
More information about the Pkg-nagios-devel
mailing list