Page 1 of 1
Host Flapping and State Type
Posted: Mon Jan 13, 2020 3:19 pm
by meganwilliford
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
Posted: Mon Jan 13, 2020 3:35 pm
by lmiltchev
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.
Re: Host Flapping and State Type
Posted: Fri Jan 17, 2020 12:10 pm
by meganwilliford
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
Posted: Fri Jan 17, 2020 12:23 pm
by lmiltchev
Would the state type (HARD or SOFT) follow the usual rules whether flapping or not?
Yes, it will follow the same rules, whether it is flapping or not.
And if a host or service were flapping would it be indicated anywhere in the objects/statehistory api?
This information is available in the
objects/hoststatus API, NOT in the objects/statehistory... You should be able to see:
for the hosts that are in a flapping state.
Re: Host Flapping and State Type
Posted: Thu Jan 23, 2020 10:15 am
by meganwilliford
Thanks for the info! This post can be locked.
Re: Host Flapping and State Type
Posted: Thu Jan 23, 2020 11:36 am
by scottwilkerson
meganwilliford wrote:Thanks for the info! This post can be locked.
Great!
Locking thread