SNMPTT install error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mikemasters
Posts: 21
Joined: Mon May 10, 2010 10:41 am

SNMPTT install error

Post 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
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: SNMPTT install error

Post by mmestnik »

Is this a 64bit install? Look at the yum parts of the output, you are missing the package mentioned... net-snmp.
mikemasters
Posts: 21
Joined: Mon May 10, 2010 10:41 am

Re: SNMPTT install error

Post 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...
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: SNMPTT install error

Post 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?
mikemasters
Posts: 21
Joined: Mon May 10, 2010 10:41 am

Re: SNMPTT install error

Post 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
mikemasters
Posts: 21
Joined: Mon May 10, 2010 10:41 am

Re: SNMPTT install error

Post by mikemasters »

DID a find command and SNMP.pm is located here = /usr/lib/perl5/vendor_perl/5.8.8/Net/SNMP.pm
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: SNMPTT install error

Post 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.
mikemasters
Posts: 21
Joined: Mon May 10, 2010 10:41 am

Re: SNMPTT install error

Post 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
Locked