One such change is to the Quick-View -> Birdseye - which was causing me grief without being obvious.
I needed to change timings in there that were coded into the javascript. I made changes as shown.
Code: Select all
cd /usr/local/nagiosxi/html/includes/components/birdseye/includes
vi main.jsfrom
Code: Select all
// Display simple JS clock
setInterval('update_clock()', 1000);
// Display updates
setInterval('update_display_view(show_handled)', 10000);
setInterval('update_display_view(show_soft)', 10000);
setInterval('update_display_list(show_handled)', 10000);
setInterval('update_display_list(show_soft)', 10000);Code: Select all
// Display simple JS clock
// changed to refresh one time per minute
setInterval('update_clock()', 60000);
// Display updates once a minute
setInterval('update_display_view(show_handled)', 60000);
setInterval('update_display_view(show_soft)', 60000);
setInterval('update_display_list(show_handled)', 60000);
setInterval('update_display_list(show_soft)', 60000);At bottom of the same file change
Code: Select all
var str = hours + ":" + minutes + ":" + seconds + " " + post;Code: Select all
var str = hours + ":" + minutes + " " + post;Code: Select all
cd /usr/local/nagiosxi/html/includes/components/birdseye
vi birdseye.phpCode: Select all
<script type="text/javascript" src="includes/main.js"></script>Code: Select all
<script type="text/javascript" src="includes/main.js?v=1.1"></script>This reduces load on the httpd processes and requires less overhead as the end user web browser requests refreshes less often. Birdseye had been grabbing a TON of data every 10 seconds. With a large site, you can tell that something is using resources.
Without these changes, if someone leaves the Birdseye view running overnight, my ipcs queue will eventually climb to more than a million backlogged items. Then the full queue will make the DB start to lose data. I finally got the javascript refresh piece figured out. I had made the change, but the workstations cache the js files and never refresh them.
But not any more.
If anyone is running a large installation, this simple refresh timing thing could be causing performance issues. I find that GUI refreshes less than one minute make no difference to the tool users. I have increased all the settings I can find such that GUI refreshes do not impact my server. One at a time, find and change. I have not heard that anyone even noticed. But the tool is definitely running better.