I added 60 hosts last night, 30 of which have IPv6 addresses.
Installing the agent was a bit of a pain since I'm not supposed to use root directly and we use Satellite, and the agent install wants to point to repos on the internet.
I had to add a NIC to the Nagios servers (VMs), which after a little experimentation was easy, and didn't need a reboot.
I found my host check, check_host_alive, which if I recall uses check_icmp, didn't work on IPv6 hosts. I switched to check_ping in the host template, and it was good.
Next I found check_hp and check_hp_bladechassis, which are 3rd party scripts not in Nagios core or XI by default don't work. They use SNMP get to check HP hardware.
So, Nagios doesn't care about IPv6, but plugins may--depends on the plugin.
Nagios and IPv6 revisited
Re: Nagios and IPv6 revisited
Hey, thanks for testing this out and reporting the results.
Is there any chance you would be willing to post your findings on our GitHub page for Nagios Plugins? https://github.com/nagios-plugins/nagios-plugins
The developers that take care of the plugins monitor that much more than they monitor the forums. Let me know if that doesn't work out, I can do it on your behalf.
Thanks!
Is there any chance you would be willing to post your findings on our GitHub page for Nagios Plugins? https://github.com/nagios-plugins/nagios-plugins
The developers that take care of the plugins monitor that much more than they monitor the forums. Let me know if that doesn't work out, I can do it on your behalf.
Thanks!
Former Nagios Employee.
me.
me.
Re: Nagios and IPv6 revisited
I don't have a login over there, so if you could do it, it would help.
I pretty much found the same issue in both scripts. I added the domain in each snippet. I’ll add a test of the address to see which format it is and set a variable to use v4 or v6.
check_hp also uses utils.pm to validate a v4 address, which fails on v6. I just commented that and continued.
With the address check disabled, I added the -domain bit in process_arguments() and it worked. Obviously its just a test, but its a step in the right direction.
check_hp_bladechassis
Thanks
I pretty much found the same issue in both scripts. I added the domain in each snippet. I’ll add a test of the address to see which format it is and set a variable to use v4 or v6.
check_hp also uses utils.pm to validate a v4 address, which fails on v6. I just commented that and continued.
With the address check disabled, I added the -domain bit in process_arguments() and it worked. Obviously its just a test, but its a step in the right direction.
Code: Select all
# start snmpv1 / snmpv2
if ($snmpversion =~ /[12]/) {
($session, $error) = Net::SNMP->session(
-hostname => $hostname,
-community => $community,
-port => $port,
-version => $snmpversion,
-maxmsgsize => $maxmsgsize,
-domain => 'udp/ipv6'
);
Code: Select all
sub snmp_initialize {
# Legal SNMP v3 protocols
my $snmp_v3_privprotocol = qr{\A des|aes|aes128|3des|3desde \z}xms;
my $snmp_v3_authprotocol = qr{\A md5|sha \z}xms;
# Parameters to Net::SNMP->session()
my %param
= (
'-port' => $opt{port},
'-hostname' => $opt{hostname},
'-version' => $opt{protocol},
'-domain' => 'udp/ipv6'
);
...
Re: Nagios and IPv6 revisited
I've reached out to our developer that maintains this project, to make sure he doesn't need anything else before I make a GitHub post. Thanks for all of the information.
Former Nagios Employee.
me.
me.
Re: Nagios and IPv6 revisited
I contacted Günther at the address in the check_hp script. He provided a new script, but that requires some updates on my servers. Unfortunately, I can't install SW at this time so I can't test.
You can close this whenever, since it was info only...
Thanks
You can close this whenever, since it was info only...
Thanks
Re: Nagios and IPv6 revisited
Former Nagios Employee.
me.
me.