Disabling Flapping system wide

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Disabling Flapping system wide

Post by taandrews »

Is there a way to disable flapping for every node?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Disabling Flapping system wide

Post by scottwilkerson »

in the nagios.cfg set

Code: Select all

enable_flap_detection=0
restart nagios
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: Disabling Flapping system wide

Post by taandrews »

Negative. I tried that first, when I went to the GUI and it still states that flapping is ENABLED on all nodes.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Disabling Flapping system wide

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: Disabling Flapping system wide

Post 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)?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Disabling Flapping system wide

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: Disabling Flapping system wide

Post by taandrews »

I will give it a show. Thank you very much.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Disabling Flapping system wide

Post by scottwilkerson »

Let us know if you have any trouble
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: Disabling Flapping system wide

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Disabling Flapping system wide

Post by scottwilkerson »

Glad I could help.

Locking!
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked