Pandora FMS community forums
Problem adding Perl-SNMP module - Printable Version

+- Pandora FMS community forums (https://pandorafms.com/community-forums)
+-- Forum: Pandora FMS (https://pandorafms.com/community-forums/forum-3.html)
+--- Forum: Community support (English) (https://pandorafms.com/community-forums/forum-7.html)
+--- Thread: Problem adding Perl-SNMP module (/thread-278.html)

Pages: 1 2


Problem adding Perl-SNMP module - zubero - 06-03-2007

Hello, again:

I am trying to add another Perl module. It is the SNMP one. I have downloaded and installed the net-snmp-5.1.2-11.EL4.10 rpm, because it seems to contain the needed item net-snmp-config but, as you can see in the attached output, it continues giving an error.
The Operating System is a Red Hat Enterprise Linux v.4 update 4 (over a VMWare machine).

Could you help me with this module? Tell me if you need more info.

Perls packets installed:
[[email protected] pandora]# rpm -qa | grep perl
perl-5.8.5-36.RHEL4
perl-DBI-1.40-8
perl-HTML-Tagset-3.03-30
perl-XML-Parser-2.34-5
perl-libxml-enno-1.02-31
perl-Filter-1.30-6
perl-URI-1.30-4
perl-DateManip-5.42a-3
perl-HTML-Parser-3.35-6
perl-libwww-perl-5.79-5
perl-libxml-perl-0.07-30
perl-XML-Encoding-1.01-26
perl-DBD-MySQL-2.9004-3.1
perl-Parse-Yapp-1.05-32
perl-XML-Dumper-0.71-2


SNMP packets installed:
[[email protected] pandora]# rpm -qa | grep snmp
net-snmp-libs-5.1.2-11.EL4.10
net-snmp-5.1.2-11.EL4.10


Info about the Perl-SNMP module (it seems not to be installed):
cpan> m SNMP
Module id = SNMP
DESCRIPTION Interface to the Net-SNMP toolkit
CPAN_USERID GSM (Giovanni S Marzot)
CPAN_VERSION 5.0400001
CPAN_FILE G/GS/GSM/SNMP-5.0400001.tar.gz
DSLI_STATUS RmhO (released,mailing-list,hybrid,object-oriented)
INST_FILE (not installed)


Trying to add the module Not possible:
cpan> install SNMP
CPAN: Storable loaded ok
Going to read /root/.cpan/Metadata
Database was generated on Sat, 02 Jun 2007 01:12:45 GMT
Running install for module SNMP
Running make for G/GS/GSM/SNMP-5.0400001.tar.gz
CPAN: Digest::MD5 loaded ok
Checksum for /root/.cpan/sources/authors/id/G/GS/GSM/SNMP-5.0400001.tar.gz ok
Scanning cache /root/.cpan/build for sizes
SNMP-5.0400001/
SNMP-5.0400001/META.yml
SNMP-5.0400001/perlsnmp.h
SNMP-5.0400001/MANIFEST.SKIP
SNMP-5.0400001/t/
SNMP-5.0400001/t/snmptest.conf
SNMP-5.0400001/t/bulkwalk.t
SNMP-5.0400001/t/mibload.t
SNMP-5.0400001/t/mib.t
SNMP-5.0400001/t/startagent.pl
SNMP-5.0400001/t/notify.t
SNMP-5.0400001/t/mib.txt
SNMP-5.0400001/t/getnext.t
SNMP-5.0400001/t/get.t
SNMP-5.0400001/t/conftest.conf
SNMP-5.0400001/t/session.t
SNMP-5.0400001/t/conf.t
SNMP-5.0400001/t/README
SNMP-5.0400001/t/set.t
SNMP-5.0400001/t/async.t
SNMP-5.0400001/TODO
SNMP-5.0400001/SNMP.pm
SNMP-5.0400001/Makefile.PL
SNMP-5.0400001/BUG
SNMP-5.0400001/MANIFEST
SNMP-5.0400001/SNMP.xs
SNMP-5.0400001/README
SNMP-5.0400001/examples/
SNMP-5.0400001/examples/trap-example.pl
SNMP-5.0400001/examples/mibwalk.pl
SNMP-5.0400001/examples/async1.pl
SNMP-5.0400001/examples/ipforward.pl
SNMP-5.0400001/examples/async2.pl
SNMP-5.0400001/examples/pingmib.pl
SNMP-5.0400001/examples/tablewalk.pl
SNMP-5.0400001/examples/bulkwalk.pl
SNMP-5.0400001/examples/mibtree.pl
SNMP-5.0400001/examples/testleak.pl
SNMP-5.0400001/typemap
SNMP-5.0400001/hints/
SNMP-5.0400001/hints/solaris.pl
SNMP-5.0400001/hints/irix.pl
Removing previously used /root/.cpan/build/SNMP-5.0400001

CPAN.pm: Going to build G/GS/GSM/SNMP-5.0400001.tar.gz

You need to install net-snmp first (I can't find net-snmp-config) at Makefile.PL line 109.
Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install


Thanks in advance.


Problem adding Perl-SNMP module - manu - 06-03-2007

What's the error pandora's complaining about? Missing SNMP.pm?


Problem adding Perl-SNMP module - zubero - 06-03-2007

Thanks for your quick answer, Manu.

The error is:

"You need to install net-snmp first (I can't find net-snmp-config) at Makefile.PL line 109."

It seems not to be possible to add the Perl-SNMP module. Regarding the output, net-snmp-config is missing, but it belongs to the net-snmp previously installed.


Problem adding Perl-SNMP module - manu - 06-03-2007

Did you already install the RPM or on the other hand it happens when you're about installing it?


Problem adding Perl-SNMP module - zubero - 06-03-2007

I previously installed the rpm (perl-5.8.5-36.RHEL4). The problem appeared in the adding of the module.


Problem adding Perl-SNMP module - manu - 06-03-2007

I meant the pandora RPM

What's the output Pandora Server shows to you when trying to boot it?


Problem adding Perl-SNMP module - zubero - 06-03-2007

This is the output:

[[email protected] ~]# /opt/pandora/pandora_server start

Pandora Server 1.2 Build PS061123 Copyright © 2004-2006 ArticaST
This program is Free Software, licensed under the terms of GPL License v2 or later.
You can download latest versions and documentation at

[W] It is not a good idea running Pandora Server as root user, please DON'T DO IT!
[*] Server basepath is /opt/pandora
[*] Server logfile at /opt/pandora/log/pandora_server.log
[*] Server errorlogfile at /opt/pandora/log/pandora_server.error
[*] Server incoming directory at /opt/pandora/data_in
[*] Server keepalive 60
[*] Server threshold 5
[*] You are running Pandora Data Server.
[*] This server is running in MASTER mode.
Pandora Data Server is now running with PID 6225


Problem adding Perl-SNMP module - manu - 06-03-2007

And the network one?


Problem adding Perl-SNMP module - zubero - 06-03-2007

[[email protected] pandora]# ./pandora_network start
Can't locate Net/Ping/External.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at ./pandora_network.pl line 27.
BEGIN failed--compilation aborted at ./pandora_network.pl line 27.
Cannot start Pandora Network Server. Aborted


Problem adding Perl-SNMP module - manu - 06-03-2007

Absolutely normal:

Put this http://mansss.no-ip.org/~manu/SNMP.pm

In one of the directories perl is looking for it and it should work out ok
If Net/Ping/ is not there, create it using mkdir and put that .pm inside
Try again, then