Page 2 of 2

Re: SNMP Trap configuration

Posted: Wed May 18, 2011 5:05 pm
by tonyyarusso
I think that might just be a default to take it out of the pending state, if I'm remembering correctly?

Re: SNMP Trap configuration

Posted: Thu May 19, 2011 1:49 pm
by arnab.roy
Hi Guys,

I found the problem, its the damn iptables firewall, when i switched it off /etc/init.d/iptables stop and got flooded with snmp traps, can you suggest a permanent fix ..

Thanks
Arnab

Re: SNMP Trap configuration

Posted: Thu May 19, 2011 2:06 pm
by tonyyarusso
If you ran the NagiosXI-SNMPTrap.sh script, it should have run this command:

Code: Select all

iptables -I INPUT -m state --state NEW -m udp -p udp --dport 162 -j ACCEPT

Re: SNMP Trap configuration

Posted: Fri May 20, 2011 10:22 am
by arnab.roy
Hi All,

Can you tell me how you guys got it out of the pending state? As I have stumbled onto the same problem, I used the tempate which the wizard uses and created separate services for separate traps so its clear what is effecting the issue. Everything works fine apart from the fact that of a trap hasnt been sent for that OID it stays pending inspite of specifying the initial stage as OK. So it would nice to know how to fix this.

Now comes the feature request:
Would it be possible to reset the service status to OK once it has been ack'd in case of SNMP traps. As in some cases its not just up down event.

Many Thanks
Arnab

Re: SNMP Trap configuration

Posted: Fri May 20, 2011 11:36 am
by mguthrie
If you access the service details->Advanced(tab), you can submit a passive result to the services that are awaiting results. This will allow you to set their initial state to ok while it waits for any trap results. You could also do this once a problem is acknowledged if all of the results are being sent passively.