Welcome to Pandora FMS Community › Forums › Community support › Problem adding Perl-SNMP module
-
Problem adding Perl-SNMP module
Posted by zubero on June 3, 2007 at 16:02Hello, 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:
[root@localhost 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-2SNMP packets installed:
[root@localhost pandora]# rpm -qa | grep snmp
net-snmp-libs-5.1.2-11.EL4.10
net-snmp-5.1.2-11.EL4.10Info 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.0400001CPAN.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 installThanks in advance.
manu replied 17 years, 8 months ago 2 Members · 15 Replies -
15 Replies
-
-
::
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.
-
-
-
-
::
This is the output:
[root@localhost ~]# /opt/pandora/pandora_server start
Pandora Server 1.2 Build PS061123 Copyright (c) 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
-
-
::
[root@localhost 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 -
::
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 -
-
-
::
I have take a look into the file pandora_network.pl and I have found this:
use Date::Manip; # Needed to manipulate DateTime formats of input, output and compare
use Time::Local; # DateTime basic manipulation
use Net::Ping::External qw(ping); # For ICMP conectivity
use Net::Ping; # For ICMP latency
use Time::HiRes; # For high precission timedate functions (Net::Ping)
use IO::Socket; # For TCP/UDP access
use SNMP; # For SNMP access (libnet-snmp-perl package!The last line, may this problem be related to it? It is, could I download this rpm and try installing it as a way for solving this issue?
-
-
-