Page 1 of 1
How to clear flapping
Posted: Mon May 19, 2014 1:46 am
by klee
I'm trying to test the alerts by submitting passive check result (multiple times).
Now Nagios thinks the host is flapping between states and won't send further alerts.
How would I clear this?
Thanks,
klee
Re: How to clear flapping
Posted: Mon May 19, 2014 9:57 am
by tmcdonald
I don't know of a built-in way to do this, but you can cheat and just submit a bunch of the same passive result in a row to make it look like it is no longer flapping.
Re: How to clear flapping
Posted: Mon May 19, 2014 1:54 pm
by klee
Say I have a production Nagios system, which I can't easily reboot.
I send several passive check results to test an event.
Nagios sees this and determines the host is flapping.
Now, the host won't go back to its normal state....
You're saying there's no standard way to reset this?
Re: How to clear flapping
Posted: Mon May 19, 2014 2:04 pm
by tmcdonald
What do you mean by "reset this"? Do you mean reset the host back to an OK state, or reset the flapping history? Flapping looks at the last 21 states of the host or service and determines the flapping state based on a certain threshold. So in order to reset the flapping history you would need to clear out the last 21 results, or however many would be needed to tip the average back below the set threshold. And as for resetting the state, you can do so just by submitting a single passive OK result.
Re: How to clear flapping
Posted: Mon May 19, 2014 3:25 pm
by klee
Yes, I mean reset host back to OK state so I can continue testing.
If I need to clear ~21 states (in to order to reset the flapping history) so future alerts will function properly, I'll do that as well.
Re: How to clear flapping
Posted: Mon May 19, 2014 4:18 pm
by Box293
To reset a HOST back to an OK state:
- Find the host object and click on it
Click the Advanced tab
Under Commands click Submit passive check result
Make sure the Check Result is UP
Type OK in the Check Output
Click the Commit button
NOTE: The next time this host is checked, if it is not contactable it will go back to the down state.
Resetting a service back to an OK state is the same steps.
Re: How to clear flapping
Posted: Mon May 19, 2014 4:27 pm
by klee
Thank you very much.
klee
Re: How to clear flapping
Posted: Mon May 19, 2014 4:31 pm
by tmcdonald
Can we close this thread now?
Re: How to clear flapping
Posted: Mon May 19, 2014 5:01 pm
by klee
Please and Thank You.
-klee