service status detail page take so long to load
-
amit.ahuja
- Posts: 113
- Joined: Fri May 15, 2015 8:20 am
service status detail page take so long to load
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?
Re: service status detail page take so long to load
Do you see any errors in the apache error log when you try loading the page?
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?
Code: Select all
tail -100 /var/log/httpd/error_loghttps://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
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.
[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.
Re: service status detail page take so long to load
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.
me.
Re: service status detail page take so long to load
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.
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
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.
Re: service status detail page take so long to load
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?
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 -rBe sure to check out our Knowledgebase for helpful articles and solutions!