Trying to get Traps to work...
Posted: Thu Jan 31, 2013 4:00 pm
I am trying to get SNMP Traps to finally work on Nagios in our environment. I have configured SNMPTT and I currently have standard SNMP checks working correctly. I can use the iReasoning MIB Browser to send traps to the Nagios box successfully (as verified below).
From my snmptt.log:
When I check for /var/log/snmptt/snmpttunknown.log, I do not have said file. I have configured it in the snmptt.ini file but it appears to have never been generated. Is this to assume that I've just not had any unknown traps come through?
Checking snmptt.debug, I only see the following:
Checking snmptthandler.debug, I see the following from the trap that I sent:
From snmpttsystem.log:
Using the SNMP Traps wizard, I have created some services utilizing the xiwizard_snmptrap_service template. What check should be running in that template? I see check_dummy listed, but I don't ever see anything change with this.
Any help would be appreciated.
From my snmptt.log:
Code: Select all
Thu Jan 31 14:40:19 2013 .1.3.6.1.6.3.1.1.5.2 Normal "Status Events" 10.100.29.181 - A warmStart trap signifies that the SNMP entity,Code: Select all
unknown_trap_log_file = /var/log/snmptt/snmpttunknown.logCode: Select all
Sleeping for 5 secondsCode: Select all
SNMPTTHANDLER started: Thu Jan 31 14:40:19 2013
s = 1359664819, usec = 367522
s_pad = 1359664819, usec_pad = 367522
Data received:
<UNKNOWN>
UDP: [xxx.xxx.xxx.xxx]:1307
.1.3.6.1.2.1.1.3.0 0:0:00:00.00
.1.3.6.1.6.3.1.1.4.1.0 .1.3.6.1.6.3.1.1.5.2
.1.3.6.1.6.3.18.1.3.0 yyy.yyy.yyy.yyy
.1.3.6.1.6.3.18.1.4.0 "zzzzzzz"
.1.3.6.1.6.3.1.1.4.3.0 .0.0
Code: Select all
Thu Jan 31 08:42:23 2013 Reloading configuration file(s)
Thu Jan 31 08:42:23 2013 Loading /usr/share/snmp/mibs/processed_mibs/.txt
Thu Jan 31 08:42:23 2013 Could not open configuration file: /usr/share/snmp/mibs/processed_mibs/.txt
Thu Jan 31 08:42:23 2013 Loading /etc/snmp/snmptt.conf
Thu Jan 31 08:42:23 2013 Finished loading 1374 lines from /etc/snmp/snmptt.conf
Any help would be appreciated.