Host Flapping and State Type

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
meganwilliford
Posts: 101
Joined: Tue Aug 06, 2019 7:49 am

Host Flapping and State Type

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Host Flapping and State Type

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

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Host Flapping and State Type

Post 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:

Code: Select all

is_flapping: "1"
for the hosts that are in a flapping state.
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

Post by meganwilliford »

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

Post by scottwilkerson »

meganwilliford wrote:Thanks for the info! This post can be locked.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked