[Nagiosplug-devel] [ nagiosplug-Bugs-3602488 ] check_snmp can't do IPv6

SourceForge.net noreply at sourceforge.net
Mon Feb 11 15:54:10 CET 2013


Bugs item #3602488, was opened at 2013-01-29 01:32
Message generated for change (Comment added) made by lftsy
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3602488&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General plugin execution
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Seegras (seegras)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_snmp can't do IPv6

Initial Comment:
root at monitor1:/usr/src/nagiosplug/plugins# ./check_snmp --version 
check_snmp v1.4.16.72.gf4bbd (nagios-plugins 1.4.16)
root at monitor1:/usr/src/nagiosplug/plugins# ./check_snmp  -H 'ipv6.hostname.example' -C 'public' -o  '.1.3.6.1.2.1.25.1.1.0'
External command error: getaddrinfo: ipv6.hostname.example Name or service not known

Neither can 1.4.14. 

----------------------------------------------------------------------

Comment By: Marc LEURENT (lftsy)
Date: 2013-02-11 06:54

Message:
Good afternoon, I am having the same problem,
I cannot use check_snmp and set an IPv6 format address in -H parameter like
for other checks (check_ssh / check_http / check_imap / ...)
I need to specify the ip with an "udp6" prefix, so I cannot integrate snmp
check as easily as the other checks
I
s someone with enough C knowledge to adapt the check_snmp to be able to
identify IPv6 address like the other checks
Thanks




1) Here you can see that IPv6 format is allowed in check_ssh
(SCREEN):root at centreon-01-dev:[~/nagios-plugins]# ./check_ssh -H "::1"
SSH OK - OpenSSH_6.0p1 Debian-3 (protocol 2.0) |
time=0.391935s;;;0.000000;10.000000

2) Here you can see that the same IPv6 format is now allowed in check_snmp
(SCREEN):root at centreon-01-dev:[~/nagios-plugins]# ./check_snmp -H "::1" -C
public -o .1.3.6.1.2.1.1.3.0
External command error: snmpget: Unknown host (::1:161) (No such file or
directory)
zsh: exit 3

3) Here you can see that we have to specify "udp6" prefix + "[]" to have
the check working in IPv6, but this will be harder to integrate to check
services based on the IP of the host
(SCREEN):root at centreon-01-dev:[~/nagios-plugins]# ./check_snmp -H
"udp6:[::1]" -C public -o .1.3.6.1.2.1.1.3.0
SNMP OK - Timeticks: (232327) 0:38:43.27 | 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=3602488&group_id=29880




More information about the Devel mailing list