Page 1 of 2

Web interface lagging/slow/not repsponding

Posted: Wed Feb 13, 2013 2:25 pm
by anthony.rabbito
I've been testing the XI version trial to replace our SolarWinds Orion server. I've also been using the Core version for several years without any issues.
I've been having several issues with response time for the XI installation that monitors 18 devices (servers, switches, firewalls). I've given the VM a substantial amount of resources which are hardly being used and still the web interface stops responding/freezes/loads at a snails pace. Any ideas here? this will need to replace our 1000+node solution if it can handle it. Below is a snapshot of what most pages do.
Untitled.png

Re: Web interface lagging/slow/not repsponding

Posted: Wed Feb 13, 2013 2:33 pm
by sreinhardt
What browser and version are you using? Also what version of XI is this? This looks similar to IE compatibility mode issues. Depending on the resources given Nagios should have no difficulties with 18 hosts and possibly upwards to 1k, that would also heavily depend on the number of service checks.

Re: Web interface lagging/slow/not repsponding

Posted: Wed Feb 13, 2013 2:35 pm
by lmiltchev
Did you try using a different browser? What is the version of Nagios XI that you are using?

Re: Web interface lagging/slow/not repsponding

Posted: Wed Feb 13, 2013 2:45 pm
by anthony.rabbito
Nagios XI 2012R1.4

I've tried Firefox/Aurora/Chrome/IE 8/9/10

19 hosts
226 service checks

8GB RAM
4vCPUs

Re: Web interface lagging/slow/not repsponding

Posted: Wed Feb 13, 2013 2:57 pm
by abrist
Do a running tail on /var/log/httpd/error_log and then try to navigate to one or more of the slow pages. Post the output here in a code wrap:

Code: Select all

tail -f /var/log/httpd/error_log

Re: Web interface lagging/slow/not repsponding

Posted: Wed Feb 13, 2013 3:00 pm
by anthony.rabbito

Code: Select all

[root@nagiosxi libexec]# tail -f /var/log/httpd/error_log
[Wed Feb 13 14:51:07 2013] [error] [client 192.168.168.28] PHP Notice:  Undefined variable: c in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 521, referer: http://192.168.168.74/nagiosxi/dashboards/dashboard.php?id=p7bnnj
[Wed Feb 13 14:52:37 2013] [error] [client 192.168.168.28] PHP Warning:  arsort() expects parameter 1 to be array, null given in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 517, referer: http://192.168.168.74/nagiosxi/dashboards/dashboard.php?id=p7bnnj
[Wed Feb 13 14:52:37 2013] [error] [client 192.168.168.28] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 518, referer: http://192.168.168.74/nagiosxi/dashboards/dashboard.php?id=p7bnnj
[Wed Feb 13 14:52:37 2013] [error] [client 192.168.168.28] PHP Notice:  Undefined variable: c in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 521, referer: http://192.168.168.74/nagiosxi/dashboards/dashboard.php?id=p7bnnj
[Wed Feb 13 14:54:07 2013] [error] [client 192.168.168.28] PHP Warning:  arsort() expects parameter 1 to be array, null given in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 517, referer: http://192.168.168.74/nagiosxi/dashboards/dashboard.php?id=p7bnnj
[Wed Feb 13 14:54:07 2013] [error] [client 192.168.168.28] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 518, referer: http://192.168.168.74/nagiosxi/dashboards/dashboard.php?id=p7bnnj
[Wed Feb 13 14:54:07 2013] [error] [client 192.168.168.28] PHP Notice:  Undefined variable: c in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 521, referer: http://192.168.168.74/nagiosxi/dashboards/dashboard.php?id=p7bnnj
[Wed Feb 13 14:55:37 2013] [error] [client 192.168.168.28] PHP Warning:  arsort() expects parameter 1 to be array, null given in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 517, referer: http://192.168.168.74/nagiosxi/dashboards/dashboard.php?id=p7bnnj
[Wed Feb 13 14:55:37 2013] [error] [client 192.168.168.28] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 518, referer: http://192.168.168.74/nagiosxi/dashboards/dashboard.php?id=p7bnnj
[Wed Feb 13 14:55:37 2013] [error] [client 192.168.168.28] PHP Notice:  Undefined variable: c in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 521, referer: http://192.168.168.74/nagiosxi/dashboards/dashboard.php?id=p7bnnj
[Wed Feb 13 14:57:07 2013] [error] [client 192.168.168.28] PHP Warning:  arsort() expects parameter 1 to be array, null given in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 517, referer: http://192.168.168.74/nagiosxi/dashboards/dashboard.php?id=p7bnnj
[Wed Feb 13 14:57:07 2013] [error] [client 192.168.168.28] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 518, referer: http://192.168.168.74/nagiosxi/dashboards/dashboard.php?id=p7bnnj
[Wed Feb 13 14:57:07 2013] [error] [client 192.168.168.28] PHP Notice:  Undefined variable: c in /usr/local/nagiosxi/html/includes/components/latestalerts/latestalerts.inc.php on line 521, referer: http://192.168.168.74/nagiosxi/dashboards/dashboard.php?id=p7bnnj

Re: Web interface lagging/slow/not repsponding

Posted: Wed Feb 13, 2013 3:05 pm
by abrist
You can verify the following directive in your /etc/php.ini file:

Code: Select all

display_errors=off

Re: Web interface lagging/slow/not repsponding

Posted: Wed Feb 13, 2013 3:07 pm
by anthony.rabbito

Re: Web interface lagging/slow/not repsponding

Posted: Wed Feb 13, 2013 3:08 pm
by abrist
I noticed that in this thread: http://support.nagios.com/forum/viewtopic.php?t=9117 you have done some customizing of the dashboards. These php errors you are experiencing, are they on one of the XI boxes that you have changed the dashboard code? I ask because most of your php errors are in reference to this referrer: http://192.168.168.74/nagiosxi/dashboar ... ?id=p7bnnj

Re: Web interface lagging/slow/not repsponding

Posted: Wed Feb 13, 2013 3:10 pm
by lmiltchev
Can you go to: "Admin->System Status" and post a screenshot of this page?