Page 1 of 2
XI Traps ending up in snmpttunknown.log
Posted: Mon Dec 10, 2012 2:53 pm
by lapperb
We have installed and configured the Nagios XI trial to see if it will meet our needs and have run into a road block. I am attempting to capture SNMP traps from our Cisco UCS 200 machines, but Nagios does not seem to be able to translate them. I uploaded the Cisco UCS 200 MIB files. I am also seeing the SNMP traps on the Nagios XI server in the /var/log/snmptt/snmpttunknown.log. Can you suggest what we might be doing wrong?
Just for your reference, we are sending a test power supply failure trap from the UCS machine. (OID: .1.3.6.1.4.1.3183.1.1.0.527105).
Thanks,
Brian
Re: XI Traps ending up in snmpttunknown.log
Posted: Mon Dec 10, 2012 3:10 pm
by scottwilkerson
If they are in the /var/log/snmptt/
snmpttunknown.log it is likely that the MIBs for the device haven't been uploaded or you did not run
See
Installing MIBs section Page 2
http://assets.nagios.com/downloads/nagi ... ith_XI.pdf
Re: XI Traps ending up in snmpttunknown.log
Posted: Tue Dec 11, 2012 10:37 am
by lapperb
The OID I am receiving does not appear in the Cisco UCS MIBs for our machine. However, I did find the OID in a PET-EVENTS_MIB.txt MIB file which describes exactly the event I am generating, a power supply insert. I installed uploaded this MIB to Nagios and ran "addmib ./PET-EVENTS_MIB.txt". Still, my SNMP trap ends up in the snmpttunknown.log file.
Re: XI Traps ending up in snmpttunknown.log
Posted: Tue Dec 11, 2012 10:45 am
by lapperb
I found the OID I am receiving in a PET-EVENTS_MIB.txt file which describes the event I am generating, a power supply insertion. I uploaded the MIB file and ran the "addmib PET-EVENTS_MIB.txt" command, but the trap is still ending up in the snmpttunknown.log file.
Re: XI Traps ending up in snmpttunknown.log
Posted: Tue Dec 11, 2012 12:03 pm
by scottwilkerson
you should use the full path
Code: Select all
addmib /usr/share/snmp/mibs/PET-EVENTS_MIB.txt
Re: XI Traps ending up in snmpttunknown.log
Posted: Tue Dec 11, 2012 1:26 pm
by lapperb
I executed addmib with the full path to the MIB files this time. Same result. The trap gets logged in the snmpttunknown.log file.
Re: XI Traps ending up in snmpttunknown.log
Posted: Tue Dec 11, 2012 1:30 pm
by scottwilkerson
You will also need to restart snmptt
If you still have the same results can you send the info logged in
snmpttunknown.log
Re: XI Traps ending up in snmpttunknown.log
Posted: Tue Dec 11, 2012 2:37 pm
by lapperb
Ok, now we're getting somewhere. My trap now shows up in the snmptt.log. I initially thought the service status screen was not reflecting the trap, but I notice the trap status says "OK: trap reset". Does that mean the event was brief and was immediately reset?
Re: XI Traps ending up in snmpttunknown.log
Posted: Tue Dec 11, 2012 3:00 pm
by scottwilkerson
lapperb wrote:Does that mean the event was brief and was immediately reset?
yes. the last trap received is shown.
You should be able to see the changes in the state history report
Re: XI Traps ending up in snmpttunknown.log
Posted: Tue Dec 11, 2012 3:07 pm
by lapperb
Thanks! You've been very helpful.