GUI running too slow to make changes
-
cwscribner
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
- Contact:
GUI running too slow to make changes
Hi all.
The GUI is running so slow that I cannot apply configuration changes without waiting an inordinate amount of time. Sometimes upwards of 10m...if the changes apply at all. This is a major problem as I'm in the middle of a rather large monitoring project. Please advise asap.
The GUI is running so slow that I cannot apply configuration changes without waiting an inordinate amount of time. Sometimes upwards of 10m...if the changes apply at all. This is a major problem as I'm in the middle of a rather large monitoring project. Please advise asap.
Re: GUI running too slow to make changes
This can happen for a variety of reasons. Log into a shell on your XI server and run the following commands:
If that command fixes your issue it will probably only be temporary and we'll have to do some maintenance on your database. If it doesn't help at all we'll look into other possibilities.
Code: Select all
service mysqld restart-
cwscribner
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
- Contact:
Re: GUI running too slow to make changes
I did . Is that sufficient? I actually did a complete Nagios restart per the upgrade documentation and the database repair documentation.
Code: Select all
service mysqld stop/startRe: GUI running too slow to make changes
Restarting Nagios is a good idea but not strictly necessary as far as I know. Anyway, did that help any performance issues?
-
cwscribner
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
- Contact:
Re: GUI running too slow to make changes
It did temporarily. As I recall, the changes were being committed in ~2-3 minutes after the restart but about an hour after the restart everything slowed down again.
Re: GUI running too slow to make changes
Can you just check to make sure you only have one instance of nagios running? Either way, for science, try a
killall -9 nagios
when its running slow, then
service nagios start
To bring it back, it could be multiple instances of nagios causing sluggish database access.
killall -9 nagios
when its running slow, then
service nagios start
To bring it back, it could be multiple instances of nagios causing sluggish database access.
Nicholas Scott
Former Nagios employee
Former Nagios employee
-
cwscribner
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
- Contact:
Re: GUI running too slow to make changes
I'm not sure if this is related to my original post but the Auto Discovery wizard is failing now. I'm trying to process a discovery but it takes a long time to get from one step to another and it keeps hanging going from step 5 to 6 (apply button never appears). It probably goes without saying but this is a major issue. The bulk import wizard doesn't work as described so the auto discovery wizard is my only option for a mass import and that's not working...my project and my job are at a standstill...
EDIT: Wasn't sure if the buttons not appearing was a PHP issue or not so here's a tail from error_log
EDIT: Wasn't sure if the buttons not appearing was a PHP issue or not so here's a tail from error_log
Code: Select all
[root@healthone httpd]# tail error_log
[Thu Aug 04 02:37:04 2011] [error] [client 172.22.15.188] PHP Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: ERROR: NOT AUTHENTICATED in /usr/local/nagiosxi/html/includes/utils-backend.inc.php on line 27, referer: http://172.22.2.123/nagiosxi/
[Thu Aug 04 02:37:04 2011] [error] [client 172.22.15.188] PHP Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: ^ in /usr/local/nagiosxi/html/includes/utils-backend.inc.php on line 27, referer: http://172.22.2.123/nagiosxi/
[Thu Aug 04 02:37:04 2011] [error] [client 172.22.15.188] PHP Notice: Unknown: Cannot set connection to blocking mode in Unknown on line 0, referer: http://172.22.2.123/nagiosxi/
[Thu Aug 04 02:37:05 2011] [error] [client 172.22.29.26] PHP Notice: Unknown: Cannot set connection to blocking mode in Unknown on line 0, referer: http://172.22.2.123/nagiosxi/includes/components/xicore/status.php?show=services&servicestatustypes=28
[Thu Aug 04 02:37:07 2011] [error] [client 172.22.29.26] PHP Notice: Unknown: Cannot set connection to blocking mode in Unknown on line 0, referer: http://172.22.2.123/nagiosxi/includes/components/xicore/status.php?show=services&servicestatustypes=28
[Thu Aug 04 02:37:07 2011] [error] [client 172.22.29.26] PHP Notice: Unknown: Cannot set connection to blocking mode in Unknown on line 0, referer: http://172.22.2.123/nagiosxi/includes/components/xicore/status.php?show=services&servicestatustypes=28
[Thu Aug 04 02:37:33 2011] [error] [client 172.22.2.123] PHP Notice: Unknown: Cannot set connection to blocking mode in Unknown on line 0
[Thu Aug 04 02:37:33 2011] [error] [client 172.22.15.188] PHP Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: Entity: line 1: parser error : Start tag expected, '<' not found in /usr/local/nagiosxi/html/includes/utils-backend.inc.php on line 27, referer: http://172.22.2.123/nagiosxi/
[Thu Aug 04 02:37:33 2011] [error] [client 172.22.15.188] PHP Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: ERROR: NOT AUTHENTICATED in /usr/local/nagiosxi/html/includes/utils-backend.inc.php on line 27, referer: http://172.22.2.123/nagiosxi/
[Thu Aug 04 02:37:33 2011] [error] [client 172.22.15.188] PHP Warning: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: ^ in /usr/local/nagiosxi/html/includes/utils-backend.inc.php on line 27, referer: http://172.22.2.123/nagiosxi/
Re: GUI running too slow to make changes
Do You have problems only with the Apply or all GUI is very slow (i.e: opening services or hosts) ?
If the latter - I'd recommend reading my post on the forum regarding slowness of the R1.6 GUI (it covers actually not only R1.6 but other versions after R1.2 as well).
Take care
Michalux
If the latter - I'd recommend reading my post on the forum regarding slowness of the R1.6 GUI (it covers actually not only R1.6 but other versions after R1.2 as well).
Take care
Michalux
-
cwscribner
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
- Contact:
Re: GUI running too slow to make changes
Just with the Apply. It hangs completely on the last step and never applies the changes I've requested in the previous steps.
Re: GUI running too slow to make changes
Are you using a local DNS name to access the Nagios XI server, or just
an IP address?
Can you send us the text output from the following two items.
(You'll have to hit enter at the end to complete the process)
And then can you attempt to run the run the wizard again, but before you
complete the final stages, run:
And then execute the final stage of the wizard.
an IP address?
Can you send us the text output from the following two items.
Code: Select all
cd /usr/local/nagiosxi/scripts/
./reconfigure_nagios.sh 2> reconfig.txtAnd then can you attempt to run the run the wizard again, but before you
complete the final stages, run:
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.log | tee subsys.txt