Waiting for the Traps problem with SNMP Trap

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
phyo
Posts: 162
Joined: Sun Dec 01, 2013 10:50 pm

Re: Waiting for the Traps problem with SNMP Trap

Post by phyo »

sreinhardt wrote:The other thing you can check, if you feel that traps have come in, but are not showing in any of your logs, take a look in /var/spool/snmptt/.

Code: Select all

ll /var/spool/snmptt
if there are any items in there, your snmptt daemon is not reaping them properly and likely is an issue with permissions, and the daemon should be run as root.
Here is the output of ll /var/spool/snmptt

Code: Select all

[root@centos snmptt]# ll /var/spool/snmptt/
total 0
[root@centos snmptt]#
There is nothing under /var/spool/snmptt/ folder. I don't know what wrong with my configuration and device.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Waiting for the Traps problem with SNMP Trap

Post by sreinhardt »

Well since you have had traps come in previously, I am hard pressed to say its anything with the nagios machine, but just that your devices must not be sending many traps. Having the directory empty is good, that means anything that was in there would have been cleared out already. If you know that traps are coming in, you can always tcpdump and if it shows incoming port 162 and you don't have traps being logged, then there is a breakdown somewhere.

Code: Select all

tcpdump -v -i eth0 port 162
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.
User avatar
yholderby
Posts: 11
Joined: Thu Dec 12, 2013 2:49 am

Re: Waiting for the Traps problem with SNMP Trap

Post by yholderby »

Hello

Sorry I know this is 2012 post, but recently I encounter the same problem when deploying licensed nagios XI for my company. Following the instruction in Integrating_SNMP_Traps_With_Nagios_XI.pdf on the CentOS 6.4, snmptt and snmptrapd are up and mibs are added(the mib(OID) has been stored in snmptt.conf properly). All the traps still goto snmpttunknown.log, and nothing in /var/spool/snmptt.

Can anyone tell me if this problem has been solved and if so how it solved? Thanks in advance~~

Yuhsiang :oops:
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Waiting for the Traps problem with SNMP Trap

Post by sreinhardt »

This could be several issues, could you open a new thread specifically for your issue please. While you are at it, if you could post your /etc/snmp/snmptt.conf /etc/snmp/snmptt.ini, and a few example oids that you are having issues with. Also if you could run:

Code: Select all

rpm -qa | grep snmp
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.
Locked