~alpine/devel

2 2

[alpine-devel] Net-SNMP trouble

Peter de Zoeten
Details
Message ID
<CAArrbi11_DKnaKE9g+7J7HeDxLn-a=XjmwvyyE5VFypf9Qm0rg@mail.gmail.com>
Sender timestamp
1320347325
DKIM signature
missing
Download raw message
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
---
Jeff Bilyk
Details
Message ID
<CAHwjr34UDy3fd-f1GwmSEo3JUANt-n98aRxqQK0jKG=Ly5VMuQ@mail.gmail.com>
In-Reply-To
<CAArrbi11_DKnaKE9g+7J7HeDxLn-a=XjmwvyyE5VFypf9Qm0rg@mail.gmail.com> (view parent)
Sender timestamp
1321122557
DKIM signature
missing
Download raw message
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
---
Peter de Zoeten
Details
Message ID
<CAArrbi30sksKf5SgUHpU0_Oa-cbfHA9opE_JQKUAZib_mDcmew@mail.gmail.com>
In-Reply-To
<CAHwjr34UDy3fd-f1GwmSEo3JUANt-n98aRxqQK0jKG=Ly5VMuQ@mail.gmail.com> (view parent)
Sender timestamp
1321188133
DKIM signature
missing
Download raw message
> 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
---