Nagios 5.2: Scheduled Downtime page freezes every 7s

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Nagios 5.2: Scheduled Downtime page freezes every 7s

Post 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
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios 5.2: Scheduled Downtime page freezes every 7s

Post 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.
Former Nagios employee
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Nagios 5.2: Scheduled Downtime page freezes every 7s

Post 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.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
Locked