snmptt.conf

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
yaanatech
Posts: 74
Joined: Thu Mar 29, 2012 1:23 pm

snmptt.conf

Post by yaanatech »

Hi All,

Trying to get snmptraps alerting in Nagios. I have a snmp forward and I see the traps coming into my Nagios host, however Nagios isn't picking up the traps.

Code: Select all

Oct 15 19:59:30 nagioshost snmptrapd[20761]: 2013-10-15 19:59:30 sourcehost [UDP: [1.2.3.4]:58300->[10.66.18.71]]:#012DISMAN-EVENT-MIB::sysUpTimeInstance = INTEGER: 0#011SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-SMI::enterprises.31053.0.1.0.4.0.1.0.4.0.1#011SNMPv2-SMI::enterprises.31053.0.1.0.4.0.1.0.4.0.1 = STRING: "[40001] ApplicationError - Application error - org.xml.sax.SAXParseException: Premature end of file."
I also see the SNMPv2-SMI MIB added in the Admin->Manage MIBs menu - snmptt service is started, shouldn't I get the traps?

One other thing I am seeing is that Nagios is failing to convert any snmptraps I try to import. The mibs get added, but its failing on the converting. Any suggestions?
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: snmptt.conf

Post by yancy »

yaanatech,

anything in the following file on Nagios?

Code: Select all

vi /var/log/snmptt/snmpttunknown.log
-Yancy
yaanatech
Posts: 74
Joined: Thu Mar 29, 2012 1:23 pm

Re: snmptt.conf

Post by yaanatech »

It's an empty file. I found some conversion script to add the oid's to the snmptt.conf, but still doesn't look like anything is catching. Is there a generic oid I can add to manually trap against? Snmp forwarding works, but I am not seeing anything other than entires into /var/log/messages
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: snmptt.conf

Post by sreinhardt »

Are you following our documentation on integrating snmp traps with XI? Specifically the addmib portions to integrate trap mibs with snmptt.conf and including the exec lines? Could you share your /etc/snmptt.conf
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
yaanatech
Posts: 74
Joined: Thu Mar 29, 2012 1:23 pm

Re: snmptt.conf

Post by yaanatech »

I have installed snmptt and dont seem to have the addmib utility - the xi interface fails to import each mib.

Code: Select all

Failed to convert uploaded file to snmptt mib.. (rc: 127)
I know the mibs are good, then worked on an NNMI server with no issues. I also see the snmptraps coming into /var/log/messages
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: snmptt.conf

Post by sreinhardt »

What version of snmptt did you install?

Code: Select all

rpm -qa | grep snmp
Most of the time, this is due to installing the 1.4 version which does not include our addmib binary.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
yaanatech
Posts: 74
Joined: Thu Mar 29, 2012 1:23 pm

Re: snmptt.conf

Post by yaanatech »

Here is what I have;

net-snmp-5.5-44.el6_4.4.x86_64
net-snmp-libs-5.5-44.el6_4.4.x86_64
net-snmp-utils-5.5-44.el6_4.4.x86_64
snmptt-1.4-0.6.beta2.el6.noarch
php-snmp-5.3.3-23.el6_4.x86_64
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: snmptt.conf

Post by sreinhardt »

The snmptt-1.4 version does not include certain applications that XI expects. Please remove that, install the 1.3 version per our guide, then you can copy the snmptt and addmib binaries in /usr/local/bin, update to the newer version, and replace them into the same directory(as they would be removed with an update). Then, the import from XI should work just fine. You could also just stay with 1.3 however if your traps have % they may cause snmptt to hang.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
yaanatech
Posts: 74
Joined: Thu Mar 29, 2012 1:23 pm

Re: snmptt.conf

Post by yaanatech »

I'll give it a go today. The NSTI 1.3 is what installed that version.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: snmptt.conf

Post by sreinhardt »

NSTI should not have installed that as far as I know. I can take a look at the install scripts, but it should rely on you pre-installing those dependencies.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked