Page 1 of 1

Troubleshoot Delays in SNMP Trap Sender

Posted: Wed Aug 17, 2016 3:01 pm
by bkellam
I'm finding that traps are arriving at my trap receiver 8 hours after the alert occurs in Nagios. I don't suspect problems at the receiver because other sources are working fine. Can you get me started in how to look for the trouble?

Re: Troubleshoot Delays in SNMP Trap Sender

Posted: Wed Aug 17, 2016 3:17 pm
by gormank
Just making sure, this is the trap sender component forwarding traps to some 3rd party system, right? If so, see below.

From my notes:
To enable logging of traps sent, edit the following php file ad add -Lf /usr/local/nagios/var/snmptrap.log to snmptrapsenderfunction.
/usr/local/nagiosxi/html/includes/components/snmptrapsender/snmptrapsender.inc.php

Re: Troubleshoot Delays in SNMP Trap Sender

Posted: Wed Aug 17, 2016 3:34 pm
by tgriep
Thanks gormank for the tip.

Re: Troubleshoot Delays in SNMP Trap Sender

Posted: Thu Aug 18, 2016 1:00 pm
by gormank
One thing is certain; the packets aren't wandering around for 8 hours. They will die after a few milliseconds. I'd look for a time or timezone issue.

Re: Troubleshoot Delays in SNMP Trap Sender

Posted: Thu Aug 18, 2016 4:51 pm
by tgriep
Thanks gormank for the second tip. :)