Search found 72 matches

by chriscamm
Thu Oct 22, 2015 12:45 pm
Forum: Nagios XI
Topic: Perl SNMP_Session.pm Exporter error
Replies: 31
Views: 16809

Re: Perl SNMP_Session.pm Exporter error

All good from me. Steve B where did you get that line of code from though?

Thanks

Chris
by chriscamm
Thu Oct 22, 2015 4:44 am
Forum: Nagios XI
Topic: Perl SNMP_Session.pm Exporter error
Replies: 31
Views: 16809

Re: Perl SNMP_Session.pm Exporter error

Hi, So I reverted back to my original files I then did: cp /usr/lib/mrtg3/SNMP_Session.pm /tmp/SNMP_Session.pm-lib cp /usr/lib64/mrtg3/SNMP_Session.pm /tmp/SNMP_Session.pm-lib64 cp /usr/share/perl5/SNMP_Session.pm /tmp/SNMP_Session.pm-perl5 Then I ran LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg...
by chriscamm
Wed Oct 21, 2015 10:42 am
Forum: Nagios XI
Topic: Perl SNMP_Session.pm Exporter error
Replies: 31
Views: 16809

Re: Perl SNMP_Session.pm Exporter error

Hi it does not matter which of these I put in to both lines I get the same errors

Code: Select all

1) import Socket6;
versus
2) Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo));
versus
3) Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo unpack_sockaddr_in6));
by chriscamm
Wed Oct 21, 2015 9:25 am
Forum: Nagios XI
Topic: Perl SNMP_Session.pm Exporter error
Replies: 31
Views: 16809

Re: Perl SNMP_Session.pm Exporter error

Hi I have sorted the line error I have put an extra character in Here is the code now Subroutine SNMP_Session::pack_sockaddr_in6 redefined at /usr/local/share/perl5/Exporter.pm line 66. at /usr/bin/../lib/mrtg2/SNMP_Session.pm line 149. Subroutine SNMP_Session::unpack_sockaddr_in6 redefined at /usr/...
by chriscamm
Tue Oct 20, 2015 1:08 pm
Forum: Nagios XI
Topic: Perl SNMP_Session.pm Exporter error
Replies: 31
Views: 16809

Re: Perl SNMP_Session.pm Exporter error

Hi Steve, I edited the three SNMP_Session.pm files and removed the use lib /usr/local/share/perl5; I now get the following errors: Subroutine SNMP_Session::pack_sockaddr_in6 redefined at /usr/local/share/perl5/Exporter.pm line 66. at /usr/bin/../lib/mrtg2/SNMP_Session.pm line 149. Subroutine SNMP_Se...
by chriscamm
Mon Oct 19, 2015 2:54 pm
Forum: Nagios XI
Topic: Perl SNMP_Session.pm Exporter error
Replies: 31
Views: 16809

Re: Perl SNMP_Session.pm Exporter error

Still get this after updating all three files syntax error at /usr/bin/../lib/mrtg2/SNMP_Session.pm line 50, near "/usr/local" Compilation failed in require at /usr/bin/../lib/mrtg2/SNMP_util.pm line 46. BEGIN failed--compilation aborted at /usr/bin/../lib/mrtg2/SNMP_util.pm line 46. Compi...
by chriscamm
Mon Oct 19, 2015 12:49 pm
Forum: Nagios XI
Topic: Perl SNMP_Session.pm Exporter error
Replies: 31
Views: 16809

Re: Perl SNMP_Session.pm Exporter error

Hi Steve,

I was already up to date on cpan so I have made the change.

I will let you know

Thanks

Chris
by chriscamm
Mon Oct 19, 2015 3:58 am
Forum: Nagios XI
Topic: Perl SNMP_Session.pm Exporter error
Replies: 31
Views: 16809

Re: Perl SNMP_Session.pm Exporter error

Hi, locate Exporter.pm /root/.cpan/build/Exporter-5.72-36tiHs/blib/lib/Exporter.pm /root/.cpan/build/Exporter-5.72-36tiHs/lib/Exporter.pm /root/.cpan/build/Exporter-Tiny-0.042-VTe5hz/examples/Example/Exporter.pm /root/.cpan/build/Filter-Simple-0.91-_aZ9WW/demo/Demo_Exporter.pm /root/.cpan/build/Sub-...
by chriscamm
Fri Oct 16, 2015 2:32 pm
Forum: Nagios XI
Topic: Perl SNMP_Session.pm Exporter error
Replies: 31
Views: 16809

Re: Perl SNMP_Session.pm Exporter error

Hi, yes its very strange # yum info perl-Exporter Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile epel/metalink | 26 kB 00:00 * base: mirrors.coreix.net * epel: mirrors.coreix.net * extras: centos.hyve.com * rpmforge: www.mirrorservice.org * updates: centos.hyve.co...
by chriscamm
Thu Oct 15, 2015 12:04 pm
Forum: Nagios XI
Topic: Perl SNMP_Session.pm Exporter error
Replies: 31
Views: 16809

Re: Perl SNMP_Session.pm Exporter error

I have the same error but I am on Centos 6.7 Final and

Code: Select all

yum install perl-Exporter
Is not available for install

If I do

Code: Select all

cpanm Exporter
Exporter is up to date. (5.72)
Any ideas

Thanks

Chris