Web interface lagging/slow/not repsponding

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
anthony.rabbito
Posts: 17
Joined: Tue Jan 22, 2013 11:31 am

Web interface lagging/slow/not repsponding

Post 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
You do not have the required permissions to view the files attached to this post.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Web interface lagging/slow/not repsponding

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Web interface lagging/slow/not repsponding

Post by lmiltchev »

Did you try using a different browser? What is the version of Nagios XI that you are using?
Be sure to check out our Knowledgebase for helpful articles and solutions!
anthony.rabbito
Posts: 17
Joined: Tue Jan 22, 2013 11:31 am

Re: Web interface lagging/slow/not repsponding

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Web interface lagging/slow/not repsponding

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
anthony.rabbito
Posts: 17
Joined: Tue Jan 22, 2013 11:31 am

Re: Web interface lagging/slow/not repsponding

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Web interface lagging/slow/not repsponding

Post by abrist »

You can verify the following directive in your /etc/php.ini file:

Code: Select all

display_errors=off
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
anthony.rabbito
Posts: 17
Joined: Tue Jan 22, 2013 11:31 am

Re: Web interface lagging/slow/not repsponding

Post by anthony.rabbito »

abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Web interface lagging/slow/not repsponding

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Web interface lagging/slow/not repsponding

Post by lmiltchev »

Can you go to: "Admin->System Status" and post a screenshot of this page?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked