Disabling Flapping system wide

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Disabling Flapping system wide

Postby taandrews » Thu May 17, 2018 12:42 pm

Is there a way to disable flapping for every node?
taandrews
 
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: Disabling Flapping system wide

Postby scottwilkerson » Thu May 17, 2018 2:41 pm

in the nagios.cfg set

Code: Select all
enable_flap_detection=0


restart nagios
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 10514
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Disabling Flapping system wide

Postby taandrews » Thu May 17, 2018 4:45 pm

Negative. I tried that first, when I went to the GUI and it still states that flapping is ENABLED on all nodes.
taandrews
 
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: Disabling Flapping system wide

Postby scottwilkerson » Thu May 17, 2018 5:11 pm

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 10514
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Disabling Flapping system wide

Postby taandrews » Thu May 17, 2018 5:33 pm

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)?
taandrews
 
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: Disabling Flapping system wide

Postby scottwilkerson » Fri May 18, 2018 7:51 am

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 10514
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Disabling Flapping system wide

Postby taandrews » Fri May 18, 2018 10:47 am

I will give it a show. Thank you very much.
taandrews
 
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: Disabling Flapping system wide

Postby scottwilkerson » Fri May 18, 2018 11:02 am

Let us know if you have any trouble
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 10514
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Disabling Flapping system wide

Postby taandrews » Fri May 18, 2018 1:16 pm

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!
taandrews
 
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: Disabling Flapping system wide

Postby scottwilkerson » Fri May 18, 2018 1:22 pm

Glad I could help.

Locking!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 10514
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 5 guests