Pandora FMS Community

Problem adding Perl-SNMP module

zubero · 3 jun 2007, 16:02 · 16 mensajes · 54 visitas

  1. Inicio del debate

    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: [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-2 SNMP 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.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.

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

  3. 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.

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

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

  6. I meant the pandora RPM What's the output Pandora Server shows to you when trying to boot it?

  7. 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
  8. And the network one?

  9. [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

  10. Absolutely normal: Put this (Link not available anymore) 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

  11. Where must I put that file and create the directory?

  12. As I said, in some of the directories perl showed you, like for instance: /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Net/Ping This is not actually the best and more polite way to make it works, but it does works when there's no rpm available :-)

  13. 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?

  14. Actually not, the problem is the SNMP.pm is missing. The file you took from my server is the one shipped with the perl-net-snmp RPM so it should work as long as you put it on the right place

  15. Good night: Thank you for your help, Manu but... Could you activate that URL or send me the .pm file again? Once I downloaded it, I accidentally deleted it from the system. Cheers.

  16. Check out your email, mate Cheers

Entra en tu cuenta para publicar.