Hello Guys,
i was just wondering if someone has the same problems as i do. There
seems to be a problem in the Net-SNMP Perl library.
When i use for example the check_ifstatus plugin from nagios (which
includes net::SNMP) i get the following error:
Can't locate Net/SNMP.pm in @INC (@INC contains:
/usr/lib/nagios/plugins /usr/local/lib/perl5/site_perl
/usr/local/share/perl5/site_perl /usr/lib/perl5/vendor_perl
/usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl
/usr/share/perl5/core_perl .) at
/usr/lib/nagios/plugins/check_ifstatus line 38.
BEGIN failed--compilation aborted at
/usr/lib/nagios/plugins/check_ifstatus line 38.
OK, well, just to test i copy SNMP.pm to /usr/local/lib/perl5/site_perl/Net
when i run check_ifstatus now i get:
/usr/bin/perl: symbol 'netsnmp_ds_set_int': can't resolve symbol in
lib '/usr/local/lib/perl5/site_perl/auto/NetSNMP/default_store/default_store.so'.
Can't load '/usr/local/lib/perl5/site_perl/auto/NetSNMP/default_store/default_store.so'
for module NetSNMP::default_store: (null) at
/usr/lib/perl5/core_perl/DynaLoader.pm line 190.
at /usr/local/lib/perl5/site_perl/Net/SNMP.pm line 19
Compilation failed in require at
/usr/local/lib/perl5/site_perl/Net/SNMP.pm line 19.
BEGIN failed--compilation aborted at
/usr/local/lib/perl5/site_perl/Net/SNMP.pm line 19.
Compilation failed in require at /usr/lib/nagios/plugins/check_ifstatus line 38.
BEGIN failed--compilation aborted at
/usr/lib/nagios/plugins/check_ifstatus line 38.
Looks like the default_store.so is not right, it is there though, and
it seems to contain the right symbol:
strings /usr/local/lib/perl5/site_perl/auto/NetSNMP/default_store/default_store.so
| grep netsnmp_ds_set_int
XS_NetSNMP__default_store_netsnmp_ds_set_int
NetSNMP::default_store::netsnmp_ds_set_int
Anybody knows what is wrong here?
Regards, Peter
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---
On Thu, Nov 3, 2011 at 3:08 PM, Peter de Zoeten <peter@dezoeten.mine.nu> wrote:
> Hello Guys,>> i was just wondering if someone has the same problems as i do. There> seems to be a problem in the Net-SNMP Perl library.> When i use for example the check_ifstatus plugin from nagios (which> includes net::SNMP) i get the following error:>> Can't locate Net/SNMP.pm in @INC (@INC contains:> /usr/lib/nagios/plugins /usr/local/lib/perl5/site_perl> /usr/local/share/perl5/site_perl /usr/lib/perl5/vendor_perl> /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl> /usr/share/perl5/core_perl .) at> /usr/lib/nagios/plugins/check_ifstatus line 38.> BEGIN failed--compilation aborted at> /usr/lib/nagios/plugins/check_ifstatus line 38.>> OK, well, just to test i copy SNMP.pm to /usr/local/lib/perl5/site_perl/Net>> when i run check_ifstatus now i get:>> /usr/bin/perl: symbol 'netsnmp_ds_set_int': can't resolve symbol in> lib '/usr/local/lib/perl5/site_perl/auto/NetSNMP/default_store/default_store.so'.> Can't load '/usr/local/lib/perl5/site_perl/auto/NetSNMP/default_store/default_store.so'> for module NetSNMP::default_store: (null) at> /usr/lib/perl5/core_perl/DynaLoader.pm line 190.> at /usr/local/lib/perl5/site_perl/Net/SNMP.pm line 19> Compilation failed in require at> /usr/local/lib/perl5/site_perl/Net/SNMP.pm line 19.> BEGIN failed--compilation aborted at> /usr/local/lib/perl5/site_perl/Net/SNMP.pm line 19.> Compilation failed in require at /usr/lib/nagios/plugins/check_ifstatus line 38.> BEGIN failed--compilation aborted at> /usr/lib/nagios/plugins/check_ifstatus line 38.>> Looks like the default_store.so is not right, it is there though, and> it seems to contain the right symbol:>> strings /usr/local/lib/perl5/site_perl/auto/NetSNMP/default_store/default_store.so> | grep netsnmp_ds_set_int> XS_NetSNMP__default_store_netsnmp_ds_set_int> NetSNMP::default_store::netsnmp_ds_set_int>> Anybody knows what is wrong here?>> Regards, Peter>>> ---> Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org> Help: alpine-devel+help@lists.alpinelinux.org> --->>
Hi Peter,
This is now fixed in the edge repository. Upgrading the
nagios-plugins package to the latest will now pull in perl-net-snmp
and clear up the issue you've been having.
Jeff
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---
> Hi Peter,>> This is now fixed in the edge repository. Upgrading the> nagios-plugins package to the latest will now pull in perl-net-snmp> and clear up the issue you've been having.>> Jeff>
Hi Jeff,
it works, thanks a lot!
Peter
---
Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org
Help: alpine-devel+help@lists.alpinelinux.org
---