Page 1 of 1

stop receiving traps after a while

Posted: Tue Mar 11, 2014 5:07 am
by zamykiller
Hi,

I have configured nagios so I can receive snmp traps. But always after a while(couple of days) it stops receiving traps, the status turns back to OK.

I can't find the problem.
Do you guy's have any idea?


thanks,

Stijn

Re: stop receiving traps after a while

Posted: Tue Mar 11, 2014 9:52 am
by sreinhardt
When this happens, are your services still running? Does the remote device sending traps still send them? Have you done any testing that you can share other than noting that it stopped?

Re: stop receiving traps after a while

Posted: Tue Mar 11, 2014 1:14 pm
by zamykiller
Everything is still running, Nagios is still doing other services. When I open Mib-browser (form ireasoning), I still receive traps.

When I look to the snmpttunknown.log file there is nothing added, no new unknow traps.

When I reboot my linux server, it works again.

Re: stop receiving traps after a while

Posted: Tue Mar 11, 2014 4:28 pm
by sreinhardt
I would suggest enabling debug level 2 and both debug files in /etc/snmp/snmptt.ini. Then restart both the snmptt and snmptrapd services to have them load the changes. Also when this happens next, please list the /var/spool/snmptt/ directory to see if there are files with bad permissions, or that are stuck in there.

Code: Select all

ll /var/spool/snmptt/
ll -d /var/spool/snmptt/