Stopping "In Effect" from auto refreshing!

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Stopping "In Effect" from auto refreshing!

Post by BanditBBS »

I really need to stop the "In Effect" tabe from auto refreshing every 7 seconds or so. When you have thousands of downtimes it just kills the server and the page.

Someone had the same issue and posted what they did to stop it but I just can't find that thread! Also, the refresh button is there, why have it set on auto by default anyway?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Stopping "In Effect" from auto refreshing!

Post by tmcdonald »

Change

Code: Select all

$(document).ready(function() {

    get_downtimes(false);
    setInterval(get_downtimes, 15000, true);
to

Code: Select all

$(document).ready(function() {

    get_downtimes(false);
    //setInterval(get_downtimes, 15000, true);
in /usr/local/nagiosxi/html/includes/components/xicore/downtime.php around line 207. Will be overwritten on an upgrade, so take note.
Former Nagios employee
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Stopping "In Effect" from auto refreshing!

Post by BanditBBS »

Awesome, thanks! I'll add to my post upgrade mod list...close this up!
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Locked