Page 1 of 2
snmptt.conf
Posted: Tue Oct 15, 2013 3:04 pm
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?
Re: snmptt.conf
Posted: Tue Oct 15, 2013 3:48 pm
by yancy
yaanatech,
anything in the following file on Nagios?
Code: Select all
vi /var/log/snmptt/snmpttunknown.log
-Yancy
Re: snmptt.conf
Posted: Wed Oct 16, 2013 12:35 pm
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
Re: snmptt.conf
Posted: Wed Oct 16, 2013 1:27 pm
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
Re: snmptt.conf
Posted: Fri Oct 18, 2013 1:49 pm
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
Re: snmptt.conf
Posted: Fri Oct 18, 2013 1:53 pm
by sreinhardt
What version of snmptt did you install?
Most of the time, this is due to installing the 1.4 version which does not include our addmib binary.
Re: snmptt.conf
Posted: Wed Oct 23, 2013 5:15 pm
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
Re: snmptt.conf
Posted: Thu Oct 24, 2013 10:24 am
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.
Re: snmptt.conf
Posted: Fri Oct 25, 2013 12:45 pm
by yaanatech
I'll give it a go today. The NSTI 1.3 is what installed that version.
Re: snmptt.conf
Posted: Fri Oct 25, 2013 1:00 pm
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.