SNMP Trap configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: SNMP Trap configuration

Post by tonyyarusso »

I think that might just be a default to take it out of the pending state, if I'm remembering correctly?
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
User avatar
arnab.roy
Posts: 354
Joined: Sat Apr 30, 2011 10:24 am

Re: SNMP Trap configuration

Post 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
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: SNMP Trap configuration

Post 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
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
User avatar
arnab.roy
Posts: 354
Joined: Sat Apr 30, 2011 10:24 am

Re: SNMP Trap configuration

Post 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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: SNMP Trap configuration

Post 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.
Locked