Page 1 of 1

SNMP trap not captured by Nagiosxi

Posted: Fri Feb 09, 2018 5:57 am
by jkettu
Moderator Edit: This thread has been split from another - https://support.nagios.com/forum/viewto ... 16&t=47413

In the future, please create a new thread and link to the old one instead of adding on.


Hi,

I'm having the exact same issue with few new devices.
I can't see the trap in /var/log/messages

tcpdump output:

Code: Select all

08:31:01.953222 IP (tos 0x0, ttl 248, id 5, offset 0, flags [none], proto UDP (17), length 195)
    1.2.3.4.62235 > nagiosxi.snmptrap: [udp sum ok]  
{ 
SNMPv2c C=5tK42fMW { V2Trap(148) R=31  system.sysUpTime.0=1399809958 S:1.1.4.1.0=S:1.1.5.4 interfaces.ifTable.ifEntry.ifIndex.3=3 interfaces.ifTable.ifEntry.ifDescr.3="GigabitEthernet0/1" interfaces.ifTable.ifEntry.ifType.3=6 E:cisco.2.2.1.1.20.3="Link up" } 
}

Re: SNMP trap not captured by Nagiosxi

Posted: Fri Feb 09, 2018 12:42 pm
by npolovenko
Hello, @jkettu.
Can you upload /etc/snmp/snmptt.conf and /etc/snmp/snmptt.ini files?

Were SNMP traps working previously for you? Did you follow https://assets.nagios.com/downloads/nag ... 2hEALw_wcB or another guide/steps?

Re: SNMP trap not captured by Nagiosxi

Posted: Sun Feb 11, 2018 8:06 pm
by nfv_nagios
Hi Support

Please refer to attached for the tcpdump, snmptt.ini and snmptt.conf.

So far this is the only node which i do not see any messages logged in /var/log/snmptt or /var/log/messages, i do not have issues with other nodes.

Re: SNMP trap not captured by Nagiosxi

Posted: Mon Feb 12, 2018 4:11 pm
by cdienger
The config looks good. There could be firewall rules dropping traffic from this specific client. Run:

iptables -L

and check for anything that may be DROP or REJECT that applie to the client's traffic.

If that doesn't help resolve the problem, please open a ticket at support.nagios.com/tickets/ and provide a profile which can be generated under Admin > System Config > System Profile > Download System Profile.

Re: SNMP trap not captured by Nagiosxi

Posted: Mon Feb 12, 2018 8:45 pm
by nfv_nagios
There is nothing in iptables.

# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

I have logged a support ticket and waiting for response.

Thank you.

Re: SNMP trap not captured by Nagiosxi

Posted: Tue Feb 13, 2018 10:43 am
by cdienger
Thanks. We'll continue to work through the ticket then.