Subject: [alpine-devel] Net-SNMP trouble

From: Peter de Zoeten <[email-masked]>
Date: Thu, 3 Nov 2011 20:08:45 +0100

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:  [email-masked]
Help:         [email-masked]
---

---

From: Jeff Bilyk <[email-masked]>
Date: Sat, 12 Nov 2011 13:29:17 -0500

> Help:         [email-masked]

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

---

---

From: Peter de Zoeten <[email-masked]>
Date: Sun, 13 Nov 2011 13:42:13 +0100

> and clear up the issue you've been having.

Hi Jeff,

it works, thanks a lot!

Peter

---