GUI running too slow to make changes

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

GUI running too slow to make changes

Post 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.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: GUI running too slow to make changes

Post 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.
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: GUI running too slow to make changes

Post 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.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: GUI running too slow to make changes

Post by agriffin »

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

Post 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.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: GUI running too slow to make changes

Post 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.
Nicholas Scott
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

Post 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/
pzusa
Posts: 34
Joined: Fri Jun 24, 2011 9:54 am

Re: GUI running too slow to make changes

Post 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
cwscribner
Posts: 316
Joined: Thu Mar 31, 2011 9:54 am
Location: Patten, ME
Contact:

Re: GUI running too slow to make changes

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: GUI running too slow to make changes

Post 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.
Locked