service status detail page take so long to load

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
amit.ahuja
Posts: 113
Joined: Fri May 15, 2015 8:20 am

service status detail page take so long to load

Post by amit.ahuja »

After upgrading to 5.2.3 version, it takes so long to load service status detail page, about 2 mins. It was working fine with previous version 2014R2.7; really fast. Any suggestions?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: service status detail page take so long to load

Post by lmiltchev »

Do you see any errors in the apache error log when you try loading the page?

Code: Select all

tail -100 /var/log/httpd/error_log
Are you using any custom components such as the "Nagios XI Custom Column Component"?

https://exchange.nagios.org/directory/A ... nt/details

Have you modified any of the "default" settings under the "Performance Settings" page ("Dashlets" tab)?

Admin->Performance Settings

How long did it take to load the page prior to the upgrade?
Be sure to check out our Knowledgebase for helpful articles and solutions!
amit.ahuja
Posts: 113
Joined: Fri May 15, 2015 8:20 am

Re: service status detail page take so long to load

Post by amit.ahuja »

This is what i see in error_log

[Tue Feb 02 12:55:25 2016] [error] [client 11.48.269.61] PHP Notice: Undefined index: pretty in /usr/local/nagiosxi/html/api/includes/utils.inc.php on line 104

I have not change any default setting in performance setting.

it took milli sec to load the page prior to upgrade. After upgrade it took around 10 secs.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: service status detail page take so long to load

Post by hsmith »

Is your machine you're using to access this server in the same data center that your XI server is? If not, please check /etc/hosts to make sure the internal and external URL you use to access this page are in there.
Former Nagios Employee.
me.
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: service status detail page take so long to load

Post by gormank »

I'm pretty sure the service detail page is grabbing data from the DB. As part of monitoring I set up 4 mysql monitors. You might enable something similar to see if the DB is slow.

mysql_connection_time
mysql_long_running_processes
mysql_slow_queries
service_mysql

Its just a guess so feel free to ignore it.
EnvBroker1
Posts: 65
Joined: Thu Oct 31, 2013 11:50 am

Re: service status detail page take so long to load

Post by EnvBroker1 »

Ours was slow too, but for some reason it only had 3% memory available. So we rebooted the server, available memory went up to 83%, everything sped back up and the services loaded with no problem. Haven't had the problem since, but we don't know what happened to the memory either.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: service status detail page take so long to load

Post by lmiltchev »

amit.ahuja, are you using any custom components such as the "Nagios XI Custom Column Component"? Have you restarted the server at least once after the upgrade?

What is the output of the following commands?

Code: Select all

top | head -6
echo 'show processlist;'|mysql -t -u root -pnagiosxi|wc -l
cat /etc/my.cnf
du /var/lib/mysql | sort -n -r
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked