Troubleshoot Delays in SNMP Trap Sender

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bkellam
Posts: 1
Joined: Thu Sep 24, 2015 10:02 am

Troubleshoot Delays in SNMP Trap Sender

Post 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?
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Troubleshoot Delays in SNMP Trap Sender

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Troubleshoot Delays in SNMP Trap Sender

Post by tgriep »

Thanks gormank for the tip.
Be sure to check out our Knowledgebase for helpful articles and solutions!
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: Troubleshoot Delays in SNMP Trap Sender

Post 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.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Troubleshoot Delays in SNMP Trap Sender

Post by tgriep »

Thanks gormank for the second tip. :)
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked