Page 1 of 1

Disabling Flapping system wide

Posted: Thu May 17, 2018 12:42 pm
by taandrews
Is there a way to disable flapping for every node?

Re: Disabling Flapping system wide

Posted: Thu May 17, 2018 2:41 pm
by scottwilkerson
in the nagios.cfg set

Code: Select all

enable_flap_detection=0
restart nagios

Re: Disabling Flapping system wide

Posted: Thu May 17, 2018 4:45 pm
by taandrews
Negative. I tried that first, when I went to the GUI and it still states that flapping is ENABLED on all nodes.

Re: Disabling Flapping system wide

Posted: Thu May 17, 2018 5:11 pm
by scottwilkerson
That is the config value, if you have it enabled by clicking enable in the UI, you would need to disable through the UI because a runtime setting takes precedence and you are retaining state across restarts.

Once you disable form "Performance Info" click "Disable flap detection" it will be off globally

Re: Disabling Flapping system wide

Posted: Thu May 17, 2018 5:33 pm
by taandrews
Thank you, that makes since. We have thousands of nodes that over the years flapping has been enabled via the GUI. Is there a way to disable it problematically (script)?

Re: Disabling Flapping system wide

Posted: Fri May 18, 2018 7:51 am
by scottwilkerson
If you want to do them individually you cna use one of these commands
for host
https://old.nagios.org/developerinfo/ex ... mand_id=77

and services
https://old.nagios.org/developerinfo/ex ... and_id=150

Re: Disabling Flapping system wide

Posted: Fri May 18, 2018 10:47 am
by taandrews
I will give it a show. Thank you very much.

Re: Disabling Flapping system wide

Posted: Fri May 18, 2018 11:02 am
by scottwilkerson
Let us know if you have any trouble

Re: Disabling Flapping system wide

Posted: Fri May 18, 2018 1:16 pm
by taandrews
I just added a for loop to those scripts and was able to disable flapping on the nodes and services that I needed. This was absolutely perfect.

Thank you!

Re: Disabling Flapping system wide

Posted: Fri May 18, 2018 1:22 pm
by scottwilkerson
Glad I could help.

Locking!