How to clear flapping

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
klee
Posts: 147
Joined: Fri Apr 04, 2014 2:31 pm

How to clear flapping

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How to clear flapping

Post 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.
Former Nagios employee
klee
Posts: 147
Joined: Fri Apr 04, 2014 2:31 pm

Re: How to clear flapping

Post 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?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How to clear flapping

Post 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.
Former Nagios employee
klee
Posts: 147
Joined: Fri Apr 04, 2014 2:31 pm

Re: How to clear flapping

Post 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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: How to clear flapping

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
klee
Posts: 147
Joined: Fri Apr 04, 2014 2:31 pm

Re: How to clear flapping

Post by klee »

Thank you very much.

klee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How to clear flapping

Post by tmcdonald »

Can we close this thread now?
Former Nagios employee
klee
Posts: 147
Joined: Fri Apr 04, 2014 2:31 pm

Re: How to clear flapping

Post by klee »

Please and Thank You.

-klee
Locked