Hello,
I have installed Nagios Xi on a clean machine. I am getting emails as below
Cron <root@*********> LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lib/mrtg/mrtg.lock --confcache-file /var/lib/mrtg/mrtg.ok
Subroutine SNMP_Session::pack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
at /usr/bin/../lib/mrtg2/SNMP_Session.pm line 149.
Subroutine SNMP_Session::unpack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
at /usr/bin/../lib/mrtg2/SNMP_Session.pm line 149.
Subroutine SNMPv1_Session::pack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
at /usr/bin/../lib/mrtg2/SNMP_Session.pm line 604.
Subroutine SNMPv1_Session::unpack_sockaddr_in6 redefined at /usr/share/perl5/vendor_perl/Exporter.pm line 66.
at /usr/bin/../lib/mrtg2/SNMP_Session.pm line 604.
I saw a couple of posts on this. is there any fix to this issue to resolve it permanently. does it hurt the upgrade as we need to correct the SNMP and we are not using IPV6.
Thanks,
Nagios XI SNMP V6 error
Re: Nagios XI SNMP V6 error
It could be an older version of the IO::Socket::INET6 Perl Module causing the issue so if you run the following command as root, that will update the module possibly stop the error message.
Or, there is another post with instructions on how to update the modules as well. Try that and let us know if you have any other questions.
https://support.nagios.com/forum/viewto ... 6&start=20
Code: Select all
cpan -i IO::Socket::INET6
https://support.nagios.com/forum/viewto ... 6&start=20
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 81
- Joined: Tue Apr 10, 2018 4:14 pm
Re: Nagios XI SNMP V6 error
Hello,
The solution works for me but i would like to know is there a permanent fix for this as you said in other post, there may be a fix for it in next release. its more than 2 years, if not do we need to tweek the .pm for every upgrade?
The solution works for me but i would like to know is there a permanent fix for this as you said in other post, there may be a fix for it in next release. its more than 2 years, if not do we need to tweek the .pm for every upgrade?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios XI SNMP V6 error
You should not need to do anything in the future to the pm now that the newer one is installed.