clearing SNMP traps

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nwieland
Posts: 16
Joined: Wed Feb 23, 2011 2:31 pm

clearing SNMP traps

Post by nwieland »

Hi all,

what's the best way to clear SNMP traps? In some cases (HP SIM for example), a CRITICAL trap isn't necessarily followed by a corresponding OK trap if an issue is resolved. I can run 'snmptraphandling.py "myhost" "SNMP Traps" "Normal" "somedate" "" "some description"' manually, but that's not too convienient, not for all users anyway.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: clearing SNMP traps

Post by mguthrie »

Let me do some digging on this and I'll see what I can find out.

Not sure if you've seen these yet or not, but I thought I'd mention them:
http://library.nagios.com/library/produ ... -nagios-xi
http://library.nagios.com/library/produ ... -nagios-xi
r.jaynes
Posts: 58
Joined: Wed May 19, 2010 1:27 pm

Re: clearing SNMP traps

Post by r.jaynes »

Any updates on this? Clearing SNMP traps would be very handy for our organization as well.
User avatar
arnab.roy
Posts: 354
Joined: Sat Apr 30, 2011 10:24 am

Re: clearing SNMP traps

Post by arnab.roy »

Hi,

In this kind of situation once we have seen the reported trap a user usually clicks on the advanced tab and does passive result submission you submit data like OK-blah blah etc. Hope this helps.

Cheers
Arnab
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: clearing SNMP traps

Post by nscott »

Something that would be a good idea would be to take a page out of the passive check book.

Turn freshness checks on for the SNMP Traps service under the 'Check Settings' tab in Edit Dialog in the CCM, turn off Active Checks, turn on Passive Checks and set the Freshness Threshold for however long you to wait before it resets.

Once you've done that, go to the Common Settings tab for that same service and define a check for it, in this case 'Check Dummy' would work the best as it will return a predefined value if it is ever run. So select check_dummy as a check. For ARG1 select the value you would like it to return ( 0 = OK, 1 = WARNING, 3 = CRITICAL, 4 = UNKNOWN ) and set ARG2 to be the string you want it to return when it doesn't receive a trap.

In the example below I set ARG1 to be 2 and ARG2 to be "Everything is warning", so when I don't get a SNMP trap my SNMP service will show WARNING status and will also display the 'Everything is Warning' under the status info.
service.png
trapsetup.png
You do not have the required permissions to view the files attached to this post.
Nicholas Scott
Former Nagios employee
Locked