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.
clearing SNMP traps
Re: clearing SNMP traps
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
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
Re: clearing SNMP traps
Any updates on this? Clearing SNMP traps would be very handy for our organization as well.
Re: clearing SNMP traps
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
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
Re: clearing SNMP traps
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.
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.
You do not have the required permissions to view the files attached to this post.
Nicholas Scott
Former Nagios employee
Former Nagios employee