snmp trap not being processed
Posted: Thu Dec 05, 2019 5:26 pm
nagiosxi 5.6.8
centos 7.6.1810
I've successfully setup and been using snmp traps with nagiosxi. I have an application that sends traps. These traps are not making it to nagiosxi.
The application server sending the traps is on a different server than the nagiosxi server. I can send a netSnmpExampleHeartbeatNotification test trap from the application server to nagiosxi and it is processed by nagiosxi, shows in logs and received traps list so the trap configuration seems correct. Using tcpdump on the application server I see a trap is sent. Using tcpdump on nagiosxi server I see the trap come in. It does not make it to received trap list, snmpttunknown.log or snmptt.log. I also checked corelog.newobjects and I didn't see anything from the application server.
The trap was defined by importing the mib.
lostTarget .1.3.6.1.4.1.30359.1.1.4.2.2.2002 Status Events Normal Communication to the target has been lost Variables: 1: majorId 2: majorDesc 3: majorAction 4: majorSeverity 5: majorNode 6: majorComponent 7: majorContext 8: majorTimestamp 9: majorDomain
Here is tcpdump output on nagiosxi server
21:17:14.798091 IP acc-1-1.health-polling > nms-1.snmptrap: C="ahjtv4$" V2Trap(425) system.sysUpTime.0=200835436 S:1.1.4.1.0=E:30359.1.1.4.2.2.2002 76="3.8.12.70" E:30359.1.1.4.2.21="2002" E:30359.1.1.4.2.22="Communication to the target has been lost" E:30359.1.1.4.2.23="Please verify target status or network connectivity. " E:30359.1.1.4.2.24="MAJOR" E:30359.1.1.4.2.25="acc-1-2" E:30359.1.1.4.2.26="mgmt1" E:30359.1.1.4.2.27="prov2" E:30359.1.1.4.2.28="19-12-05 21:17:12.689" E:30359.1.1.4.2.29="acc-1"
I'm not sure what to do next to troubleshoot. Can you provide some direction?
centos 7.6.1810
I've successfully setup and been using snmp traps with nagiosxi. I have an application that sends traps. These traps are not making it to nagiosxi.
The application server sending the traps is on a different server than the nagiosxi server. I can send a netSnmpExampleHeartbeatNotification test trap from the application server to nagiosxi and it is processed by nagiosxi, shows in logs and received traps list so the trap configuration seems correct. Using tcpdump on the application server I see a trap is sent. Using tcpdump on nagiosxi server I see the trap come in. It does not make it to received trap list, snmpttunknown.log or snmptt.log. I also checked corelog.newobjects and I didn't see anything from the application server.
The trap was defined by importing the mib.
lostTarget .1.3.6.1.4.1.30359.1.1.4.2.2.2002 Status Events Normal Communication to the target has been lost Variables: 1: majorId 2: majorDesc 3: majorAction 4: majorSeverity 5: majorNode 6: majorComponent 7: majorContext 8: majorTimestamp 9: majorDomain
Here is tcpdump output on nagiosxi server
21:17:14.798091 IP acc-1-1.health-polling > nms-1.snmptrap: C="ahjtv4$" V2Trap(425) system.sysUpTime.0=200835436 S:1.1.4.1.0=E:30359.1.1.4.2.2.2002 76="3.8.12.70" E:30359.1.1.4.2.21="2002" E:30359.1.1.4.2.22="Communication to the target has been lost" E:30359.1.1.4.2.23="Please verify target status or network connectivity. " E:30359.1.1.4.2.24="MAJOR" E:30359.1.1.4.2.25="acc-1-2" E:30359.1.1.4.2.26="mgmt1" E:30359.1.1.4.2.27="prov2" E:30359.1.1.4.2.28="19-12-05 21:17:12.689" E:30359.1.1.4.2.29="acc-1"
I'm not sure what to do next to troubleshoot. Can you provide some direction?