Recheck when going from Warning to Critical?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Recheck when going from Warning to Critical?

Post by BanditBBS »

Capture.PNG
As you can see, at 00:01 it changed from Warning to Critical apparently due to an ssh connection issue, but then went right back to Warning. Is there any setting I can change to make any state change make it go soft again and it have to recheck so alerts aren't sent for false positives.
You do not have the required permissions to view the files attached to this post.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Recheck when going from Warning to Critical?

Post by lmiltchev »

Interesting question. This is a "default" behavior in nagios.
Hard States

Hard states occur for hosts and services in the following situations:

When a host or service check results in a non-UP or non-OK state and it has been (re)checked the number of times specified by the max_check_attempts option in the host or service definition. This is a hard error state.
When a host or service transitions from one hard error state to another error state (e.g. WARNING to CRITICAL).
When a service check results in a non-OK state and its corresponding host is either DOWN or UNREACHABLE.
When a host or service recovers from a hard error state. This is considered to be a hard recovery.
When a passive host check is received. Passive host checks are treated as HARD unless the passive_host_checks_are_soft option is enabled.
http://nagios.sourceforge.net/docs/nagi ... types.html

I haven't tried this, but it's probably possible to change the state to soft again via an event handler.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Recheck when going from Warning to Critical?

Post by BanditBBS »

Thanks Ludmil.

The eventhandler wouldn't accomplish my desired outcome(not sending a notification) so I guess we'll have to live with this functionality. You can close this up unless someone else chimes in with an awesome idea first :)
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Recheck when going from Warning to Critical?

Post by lmiltchev »

I am closing it, but you can always PM me if you want it reopened.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked