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
stop receiving traps after a while
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: stop receiving traps after a while
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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
zamykiller
- Posts: 12
- Joined: Wed Feb 12, 2014 9:56 am
Re: stop receiving traps after a while
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.
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.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: stop receiving traps after a while
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/Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.