Page 1 of 1

snmptt queueing

Posted: Wed Jun 03, 2020 9:41 am
by FCC_Nagios_Support
Hi,

I have somes problems with traps storm.
The snmptt run for one in one not at the same time?
So snmptt trigger and wait ends

Thks.
KR

Re: snmptt queueing

Posted: Wed Jun 03, 2020 3:36 pm
by jdunitz
Hi KR!

Can you show us what you get when you do:
grep "alarm\|FIFO" /usr/local/bin/snmptraphandling.py

Hopefully, it looks like this:
signal.alarm(15)
if os.path.exists('/usr/local/nagios/var/rw/nagios.cmd') and stat.S_ISFIFO(os.stat('/usr/local/nagios/var/rw/nagios.cmd').st_mode):

If that looks correct on yours, you can try enabling threads in /etc/snmp/snmptt.ini:

[root@jpd-nagiosxi-one ~]# grep threads_enable /etc/snmp/snmptt.ini
threads_enable = 0
[root@jpd-nagiosxi-one ~]# perl -p -i -e 's/threads_enable = 0/threads_enable = 1/g' /etc/snmp/snmptt.ini
[root@jpd-nagiosxi-one ~]# grep threads_enable /etc/snmp/snmptt.ini
threads_enable = 1

See if that helps clear your trap queue.


Si su pregunta no se entendió correctamente, puede escribir en español.


--Jeffrey