Page 1 of 1
Nagios 5.2: Scheduled Downtime page freezes every 7s
Posted: Thu Oct 15, 2015 12:46 am
by rajasegar
Home->Scheduled Downtime
Can someone please advice how to get rid of the 7seconds refresh in the Scheduled downtime page.
Every time it auto refreshes, the whole page freezes. In fact the whole browser freezes.
Browser: Firefox 41.0 / Internet Explorer 10
Thanks
Re: Nagios 5.2: Scheduled Downtime page freezes every 7s
Posted: Thu Oct 15, 2015 1:42 pm
by tmcdonald
I don't see anything on that page that would have a 7-second refresh, but if you look in
/usr/local/nagiosxi/html/includes/components/xicore/downtime.php
on line 210 it has the following line:
setInterval(get_downtimes, 15000, true);
You might be able to comment that out and stop the refresh, but from what I could tell there was no actual refresh being done, as in hitting F5, just a call to get updated information from the server via AJAX.
Re: Nagios 5.2: Scheduled Downtime page freezes every 7s
Posted: Thu Oct 15, 2015 6:04 pm
by rajasegar
tmcdonald wrote:I don't see anything on that page that would have a 7-second refresh, but if you look in
/usr/local/nagiosxi/html/includes/components/xicore/downtime.php
on line 210 it has the following line:
setInterval(get_downtimes, 15000, true);
You might be able to comment that out and stop the refresh, but from what I could tell there was no actual refresh being done, as in hitting F5, just a call to get updated information from the server via AJAX.
Thanks. This managed to get rid of the refresh. Even though it says 15 seconds but it is actually refreshing data every 7s.
Please close this case.