Page 1 of 1

Stopping "In Effect" from auto refreshing!

Posted: Mon Mar 14, 2016 9:02 am
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?

Re: Stopping "In Effect" from auto refreshing!

Posted: Mon Mar 14, 2016 9:25 am
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.

Re: Stopping "In Effect" from auto refreshing!

Posted: Mon Mar 14, 2016 9:35 am
by BanditBBS
Awesome, thanks! I'll add to my post upgrade mod list...close this up!