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