Page 1 of 1

Nagios frontend Hangs ( intermittent issue)

Posted: Tue Aug 06, 2019 3:32 am
by rajsshah
Hi Team
We are facing a strange issue , where in sometime nagios frontend hangs at https://<CNAME_OF_NAGIOS>/nagiosxi

I chcecked the io/stat , httpd server-status , everything looks fine , but this is intermittent issue .

The issue is also not with DNS , because even if I Access with direct IP it hangs .
Steps to reproduce :
https://<IP_NAGIOS> - this always works and gives you front page
when you click on "Access Nagios XI" blue icon the request goes to waiting state and does nothing .

I also ran it via wget in loop and sometime it works some time it hangs .

The issue gets resolved after I restart http server , which is strange , because the health of http server is fins during issue . ( see http status snap during the issue )

Re: Nagios frontend Hangs ( intermittent issue)

Posted: Tue Aug 06, 2019 7:36 am
by eloyd
Physical server? Virtual server? CPUs? Memory? Free disk space?

Re: Nagios frontend Hangs ( intermittent issue)

Posted: Tue Aug 06, 2019 9:56 am
by mbellerue
When this issue occurs, are there any errors in /var/log/httpd/error_log or ssl_error_log?

Re: Nagios frontend Hangs ( intermittent issue)

Posted: Wed Aug 07, 2019 2:14 am
by rajsshah
Hi
It is a virtual server hosted on Azure RHEL 7.5 , 16GB memory , 4 CPU.

Filesystem Size Used Avail Use% Mounted on
/dev/drbd0 231G 3.1G 228G 2% /appl

I donot see any error in httpd logs file which points to this issue .. some random logs in the file are below.

[Tue Aug 06 10:37:47.051449 2019] [:error] [pid 116903] [client XXXXX:35060] PHP Notice: Undefined offset: 0 in /appl/nagiosxi/html/api/includes/utils.inc.php on line 58

Re: Nagios frontend Hangs ( intermittent issue)

Posted: Wed Aug 07, 2019 11:59 am
by scottwilkerson
One possible cause could be if you are hitting a max connection limit in mysql. Restarting apache would drop any open connections which would explain why that resolved the issue, and the front page doesn't make and DB connections

Try adding the following to /etc/my.cnf under the [mysqld] line

Code: Select all

max-connections=500
the restart mysql or mariadb

Code: Select all

systemctl restart mariadb | service mysql restart

Re: Nagios frontend Hangs ( intermittent issue)

Posted: Wed Aug 07, 2019 12:02 pm
by lmiltchev
Open the /etc/php.ini file, and change this line:

Code: Select all

display_errors = Off
to this:

Code: Select all

display_errors = On
Save, exit, and restart apache:

Code: Select all

service httpd restart
Next time apache hangs, check the log for errors. Post the output on the forum. Thanks!