Host Flapping and State Type
-
meganwilliford
- Posts: 101
- Joined: Tue Aug 06, 2019 7:49 am
Host Flapping and State Type
I have been reviewing the flapping documentation (https://assets.nagios.com/downloads/nag ... pping.html) but I'm still a little unclear as to what Nagios determines the "State Type" to be when a host is flapping. Is there a definite answer to this or does it depend?
Re: Host Flapping and State Type
The state type is whatever the current state of the host is. OK states are shown in green, WARNING states in yellow, CRITICAL states in red, and UNKNOWN states in orange. Here's our documentation on state types:
https://assets.nagios.com/downloads/nag ... types.html
Flapping just indicates that the host or the service changes state too frequently... So, for example, a host can go DOWN, then UP, then DOWN, etc. The state that is shown in the GUI will be UP or DOWN, depending on the what is the state at the moment (what is the exit code from the plugin that is used to check the status). This is a different concept then "flapping". I hope this makes sense.
https://assets.nagios.com/downloads/nag ... types.html
Flapping just indicates that the host or the service changes state too frequently... So, for example, a host can go DOWN, then UP, then DOWN, etc. The state that is shown in the GUI will be UP or DOWN, depending on the what is the state at the moment (what is the exit code from the plugin that is used to check the status). This is a different concept then "flapping". I hope this makes sense.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
meganwilliford
- Posts: 101
- Joined: Tue Aug 06, 2019 7:49 am
Re: Host Flapping and State Type
Would the state type (HARD or SOFT) follow the usual rules whether flapping or not? And if a host or service were flapping would it be indicated anywhere in the objects/statehistory api?
Re: Host Flapping and State Type
Yes, it will follow the same rules, whether it is flapping or not.Would the state type (HARD or SOFT) follow the usual rules whether flapping or not?
This information is available in the objects/hoststatus API, NOT in the objects/statehistory... You should be able to see:And if a host or service were flapping would it be indicated anywhere in the objects/statehistory api?
Code: Select all
is_flapping: "1"Be sure to check out our Knowledgebase for helpful articles and solutions!
-
meganwilliford
- Posts: 101
- Joined: Tue Aug 06, 2019 7:49 am
Re: Host Flapping and State Type
Thanks for the info! This post can be locked.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Host Flapping and State Type
Great!meganwilliford wrote:Thanks for the info! This post can be locked.
Locking thread