how to configure "clearing" an alarm based on severity value

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

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

Post 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.
puneetsahi
Posts: 7
Joined: Thu Dec 03, 2020 10:47 am

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

Post by puneetsahi »

Can you please update on the below request.?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

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

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