XI Traps ending up in snmpttunknown.log
XI Traps ending up in snmpttunknown.log
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
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: XI Traps ending up in snmpttunknown.log
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
Code: Select all
addmib /path/to/MIBhttp://assets.nagios.com/downloads/nagi ... ith_XI.pdf
Re: XI Traps ending up in snmpttunknown.log
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
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: XI Traps ending up in snmpttunknown.log
you should use the full path
Code: Select all
addmib /usr/share/snmp/mibs/PET-EVENTS_MIB.txtRe: XI Traps ending up in snmpttunknown.log
I executed addmib with the full path to the MIB files this time. Same result. The trap gets logged in the snmpttunknown.log file.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: XI Traps ending up in snmpttunknown.log
You will also need to restart snmptt
If you still have the same results can you send the info logged in snmpttunknown.log
Code: Select all
service snmptt restartRe: XI Traps ending up in snmpttunknown.log
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?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: XI Traps ending up in snmpttunknown.log
yes. the last trap received is shown.lapperb wrote:Does that mean the event was brief and was immediately reset?
You should be able to see the changes in the state history report
Re: XI Traps ending up in snmpttunknown.log
Thanks! You've been very helpful.