Page 1 of 1

SNMP traps not updating XI

Posted: Mon May 01, 2017 7:43 am
by WVUhealth
I followed the Nagios XI-How to Integrate SNMP traps with Nagios XI
https://assets.nagios.com/downloads/nag ... 1452024033

I am seeing traps coming into my nagios system /var/log/snmptrapd.log * i created a rule in rsyslog to throw snmptrad stuff there .

However im not getting Nagios XI to show me its processing the traps .

After running the wizard for a switch that is already being monitored all i get is Waiting for trap... *been like that for 2 days.*
And i see where i have yet to install the correct MIB for a trap and my /var/log/snmptt/snmpttunknown.log is quite large..

My juniper switches can send bogus traps to test
run request snmp spoof-trap linkDown variable-bindings "ifIndex[116]=116, ifAdminStatus[116]=1 ,ifOperStatus[116]=2 , ifName[116]=ge-0/0/0"
and i see the trap show up in /var/log/snmptrapd.log

May 1 07:53:48 dragon snmptrapd[29649]: 2017-05-01 07:53:48 <UNKNOWN> [UDP: [10.3.254.15]:62492->[157.182.94.79]]:#012DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (92935263) 10 days, 18:09:12.63#011SNMPv2-MIB::snmpTrapOID.0 = OID: IF-MIB::linkDown#011IF-MIB::ifIndex.116 = INTEGER: 116#011IF-MIB::ifAdminStatus.116 = INTEGER: up(1)#011IF-MIB::ifOperStatus.116 = INTEGER: down(2)#011IF-MIB::ifName.116 = STRING: ge-0/0/0

I see the trap made it to /var/log/snmptt.log
Mon May 1 07:53:48 2017 .1.3.6.1.6.3.1.1.5.3 Normal "Status Events" 10.3.254.15 - Link down on interface 116. Admin state: up. Operational state: down

In my /etc/snmp/snmptt.conf i do not see any EXEC set to run the .py script.. So followed the sed replacement KB https://support.nagios.com/kb/article.php?id=559

I never see anything in my /usr/local/nagios/var/nagios.log showing a trap was sent to be processed by the py script . I do get
[1493524800] CURRENT SERVICE STATE: 2260-ex3400;SNMP Traps;OK;HARD;1;Waiting for trap...

Can you please help me fill in the gap im having ?

Re: SNMP traps not updating XI

Posted: Mon May 01, 2017 10:51 am
by avandemore
In the first document you cited, did you follow the section on Unconfigured Objects? If not, this could explain your symptoms.

Re: SNMP traps not updating XI

Posted: Tue May 09, 2017 1:26 pm
by WVUhealth
You nailed it avandenmore. Im sorry I could have swore I did RTFM . You got me working. I will re read the pdf and say

Re: SNMP traps not updating XI

Posted: Tue May 09, 2017 2:30 pm
by dwhitfield
In an effort to improve our documentation, is there anything you would suggest so people don't unintentionally skip a key section?