WEB UI becomes unresponsive after config apply

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
gdolidze
Posts: 154
Joined: Tue Apr 07, 2015 10:07 am

Re: WEB UI becomes unresponsive after config apply

Post by gdolidze »

php -v
PHP 5.3.3 (cli) (built: Aug 11 2016 20:33:53)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies



The only thing that comes to my mind is that, we tried to upgrade thought the WEB UI interface but it gave me issues so then i manually upgraded the server.
We didn't do any other updates.


I added the opcache.fast_shutdown=0 and the issue still exists.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: WEB UI becomes unresponsive after config apply

Post by tgriep »

The php version looks good.

Are you still seeing the zend_mm_heap errors and the timeout errors in the /var/log/httpd/error_log file?

In the XI GUI, go to the Admin > System Settings menu and if the hostname is used in the Program and External URL, change it to the IP address instead of the hostname.

Code: Select all

http://xxx.xxx.xxx.xxx/nagiosxi/
Update the settings and close out your browser and clear it's cache.
Then login to the XI sever using the IP address, does it respond faster?
Be sure to check out our Knowledgebase for helpful articles and solutions!
gdolidze
Posts: 154
Joined: Tue Apr 07, 2015 10:07 am

Re: WEB UI becomes unresponsive after config apply

Post by gdolidze »

The zend_mm_heaps seem to be gone.

We always used ip address instead of hostname.

The issues still seems to be happening.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: WEB UI becomes unresponsive after config apply

Post by tgriep »

Can you post the following files so we can view them?

Code: Select all

/etc/hosts
/etc/httpd/conf/httpd.conf
/etc/httpd/conf.d/nagiosxi.conf
/etc/httpd/conf.d/ssl.conf
Also, disable the Arcserve agent on the server and see if that helps out in the performance of the system.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: WEB UI becomes unresponsive after config apply

Post by tgriep »

One more thing, disable the fail2ban-server daemon that is running on the server and see if that helps as well.
Be sure to check out our Knowledgebase for helpful articles and solutions!
gdolidze
Posts: 154
Joined: Tue Apr 07, 2015 10:07 am

Re: WEB UI becomes unresponsive after config apply

Post by gdolidze »

I have stoped both arcserv and fail2ban.

Here are the files you asked for as well.
You do not have the required permissions to view the files attached to this post.
gdolidze
Posts: 154
Joined: Tue Apr 07, 2015 10:07 am

Re: WEB UI becomes unresponsive after config apply

Post by gdolidze »

The 4th file.

turning of those agent didn't fix the issue.
It just says, Your request was not processed in a timely manner. It may still execute, as the server may be temporary busy.


We are thinking of maybe doing a migration.
Do you guys have a procedure for this.
Also does the migration copy over the service history for the graphs and charts.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: WEB UI becomes unresponsive after config apply

Post by tgriep »

It looks like the Apache rewrite rule in in the /etc/httpd/conf.d/nagiosxi.conf file twice and that could be causing the issue.
Edit that file and remove one of the following sections.

Code: Select all

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule nagiosxi/api/v1/(.*)$ /usr/local/nagiosxi/html/api/v1/index.php?request=$1 [QSA,NC,L]
</IfModule>
Then restart Apache by running

Code: Select all

service httpd restart
See if that helps out on the performance.

Take a look at this KB article for the migration procedure.
https://support.nagios.com/kb/article.php?id=180
Be sure to check out our Knowledgebase for helpful articles and solutions!
gdolidze
Posts: 154
Joined: Tue Apr 07, 2015 10:07 am

Re: WEB UI becomes unresponsive after config apply

Post by gdolidze »

The issue wasn't fixed.
still get, Your request was not processed in a timely manner. It may still execute, as the server may be temporary busy.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: WEB UI becomes unresponsive after config apply

Post by tgriep »

I think the zend_heap issue may still be happening but the message is not in the log file anymore.
Can you run the following commands and post the output?

Code: Select all

grep "date.timezone" /etc/php.ini
ls -l /etc/localtime
php -r 'echo date("D M j G:i:s T Y")."\n";'
date
Also, can you post the following files so we can view them?

Code: Select all

/etc/php.ini
/var/log/httpd/error_log
Thanks.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked