Page 1 of 2

GUI running too slow to make changes

Posted: Wed Aug 03, 2011 1:02 am
by cwscribner
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.

Re: GUI running too slow to make changes

Posted: Wed Aug 03, 2011 9:37 am
by agriffin
This can happen for a variety of reasons. Log into a shell on your XI server and run the following commands:

Code: Select all

service mysqld restart
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.

Re: GUI running too slow to make changes

Posted: Wed Aug 03, 2011 11:45 am
by cwscribner
I did

Code: Select all

service mysqld stop/start
. Is that sufficient? I actually did a complete Nagios restart per the upgrade documentation and the database repair documentation.

Re: GUI running too slow to make changes

Posted: Wed Aug 03, 2011 11:51 am
by agriffin
Restarting Nagios is a good idea but not strictly necessary as far as I know. Anyway, did that help any performance issues?

Re: GUI running too slow to make changes

Posted: Wed Aug 03, 2011 12:05 pm
by cwscribner
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

Posted: Wed Aug 03, 2011 1:11 pm
by nscott
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.

Re: GUI running too slow to make changes

Posted: Thu Aug 04, 2011 1:51 am
by cwscribner
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

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

Posted: Thu Aug 04, 2011 3:09 am
by pzusa
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

Re: GUI running too slow to make changes

Posted: Thu Aug 04, 2011 8:57 am
by cwscribner
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

Posted: Thu Aug 04, 2011 9:07 am
by mguthrie
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.

Code: Select all

cd /usr/local/nagiosxi/scripts/
./reconfigure_nagios.sh 2> reconfig.txt
(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:

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log | tee subsys.txt
And then execute the final stage of the wizard.