Nagios frontend Hangs ( intermittent issue)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rajsshah
Posts: 30
Joined: Thu Dec 06, 2018 8:00 am

Nagios frontend Hangs ( intermittent issue)

Post 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 )
You do not have the required permissions to view the files attached to this post.
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Nagios frontend Hangs ( intermittent issue)

Post by eloyd »

Physical server? Virtual server? CPUs? Memory? Free disk space?
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Nagios frontend Hangs ( intermittent issue)

Post by mbellerue »

When this issue occurs, are there any errors in /var/log/httpd/error_log or ssl_error_log?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
rajsshah
Posts: 30
Joined: Thu Dec 06, 2018 8:00 am

Re: Nagios frontend Hangs ( intermittent issue)

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios frontend Hangs ( intermittent issue)

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios frontend Hangs ( intermittent issue)

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked