Page 1 of 1

SNMPTT install error

Posted: Mon May 24, 2010 3:49 pm
by mikemasters
I am following the document " Integrating_SNMP_Traps_With_XI.pdf", I get to the point in the document where it says "4. Execute the script:
# ./NagiosXI-SNMPTrap.sh"
I execute the script and when it tries to start SNMPTT I get error about cant locate SNMP.pm ( see below)
------------------------
Starting snmptt: Can't locate SNMP.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at (eval 6) line 1.

Could not load the Perl module SNMP! If net_snmp_perl_enable is
enabled then the SNMP module is required. Please see snmptt.html
for system requirements. Note: SNMPTT uses the Net-SNMP package's
SNMP module, NOT the CPAN Net::SNMP module!

died at /usr/local/sbin/snmptt line 425.
-------------------

Any idea what I missed....???? Thanks

Mike

Re: SNMPTT install error

Posted: Tue May 25, 2010 10:34 am
by mmestnik
Is this a 64bit install? Look at the yum parts of the output, you are missing the package mentioned... net-snmp.

Re: SNMPTT install error

Posted: Tue May 25, 2010 1:01 pm
by mikemasters
No, sorry. Thought I put that in the first post.
This is a nagios Xi Virtual machine downloaded from the nagios site. So it is cent OS 32 bit. straight install this is the first think I have tried to add tot eh OS since the download. I Used the document " Integrating_SNMP_Traps_With_XI.pdf" and it did not say there were any dependancies before running the script...

Re: SNMPTT install error

Posted: Tue May 25, 2010 1:04 pm
by mmestnik
The script depends on yum, yum is used to fulfill all the dependences of the whole configuration. Thus the script has a line that looks like this "yum -y install net-snmp" What is the output?

Re: SNMPTT install error

Posted: Tue May 25, 2010 1:07 pm
by mikemasters
[root@hv-nagios ~]# yum -y install net-snmp
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirror.team-cymru.org
* base: centos.mirrors.tds.net
* epel: mirrors.usu.edu
* extras: centos.mirrors.tds.net
* updates: www.ontime1405.com
Setting up Install Process
Package 1:net-snmp-5.3.2.2-9.el5.i386 already installed and latest version
Nothing to do

Re: SNMPTT install error

Posted: Tue May 25, 2010 1:10 pm
by mikemasters
DID a find command and SNMP.pm is located here = /usr/lib/perl5/vendor_perl/5.8.8/Net/SNMP.pm

Re: SNMPTT install error

Posted: Tue May 25, 2010 2:47 pm
by mmestnik
That's what the error warns against, SNMP != Net::SNMP. So you are looking to install the package that contains " /usr/lib/perl5/vendor_perl/SNMP.pm".
Something in the repositories must have changed to cause this... Happens too often and I don't use CentOS/RHEL enough to keep track any better then you.

Re: SNMPTT install error

Posted: Tue May 25, 2010 2:53 pm
by mikemasters
Yep that is what i was thinking. the net-snmp has been updated and the path has changed...
Looking thru the documents to see if there is something that sets the variable @INC, or how that path is set in the system, maybe i can add the new path to it.....

Mike