Page 2 of 2

Re: how to configure "clearing" an alarm based on severity v

Posted: Mon Dec 21, 2020 7:00 pm
by ssax
There really isn't a relationship in the system based on the trap ID, the Status of the service will always show the last trap that was sent in, there isn't a way to change this other than separating them out into individual services for each trap (which is a pain to manage).

So this would separate the warn/critical and the clear:

For the WARNING/CRITICAL:
- Set Severity to Warning or Critcal (whatever you'd prefer)

Code: Select all

MATCH $11: 3
For the OK(clear):
- Set Severity to OK

Code: Select all

MATCH $11: 5
Generally, you can use the SNMP Trap Interface to view the historical traps that were received OR you can view the State History of the service to see the others that came in if you have State Stalking enabled:

https://assets.nagios.com/downloads/nag ... lking.html

The notifications should be sending and those are the actual issues so you could also check your notification report/emails to see what has occurred as well.

Re: how to configure "clearing" an alarm based on severity v

Posted: Thu Dec 24, 2020 7:24 am
by puneetsahi
Can you please update on the below request.?

Re: how to configure "clearing" an alarm based on severity v

Posted: Mon Dec 28, 2020 6:01 pm
by ssax
I did, see the previous message I posted on the second page of the forum topic you created, including again:
ssax wrote:There really isn't a relationship in the system based on the trap ID, the Status of the service will always show the last trap that was sent in, there isn't a way to change this other than separating them out into individual services for each trap (which is a pain to manage).

So this would separate the warn/critical and the clear:

For the WARNING/CRITICAL:
- Set Severity to Warning or Critcal (whatever you'd prefer)

Code: Select all

MATCH $11: 3
For the OK(clear):
- Set Severity to OK

Code: Select all

MATCH $11: 5
Generally, you can use the SNMP Trap Interface to view the historical traps that were received OR you can view the State History of the service to see the others that came in if you have State Stalking enabled:

https://assets.nagios.com/downloads/nag ... lking.html

The notifications should be sending and those are the actual issues so you could also check your notification report/emails to see what has occurred as well.