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 )
Nagios frontend Hangs ( intermittent issue)
Nagios frontend Hangs ( intermittent issue)
You do not have the required permissions to view the files attached to this post.
Re: Nagios frontend Hangs ( intermittent issue)
Physical server? Virtual server? CPUs? Memory? Free disk space?
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
Re: Nagios frontend Hangs ( intermittent issue)
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios frontend Hangs ( intermittent issue)
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
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)
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
the restart mysql or mariadb
Try adding the following to /etc/my.cnf under the [mysqld] line
Code: Select all
max-connections=500Code: Select all
systemctl restart mariadb | service mysql restartRe: Nagios frontend Hangs ( intermittent issue)
Open the /etc/php.ini file, and change this line:
to this:
Save, exit, and restart apache:
Next time apache hangs, check the log for errors. Post the output on the forum. Thanks!
Code: Select all
display_errors = OffCode: Select all
display_errors = OnCode: Select all
service httpd restartBe sure to check out our Knowledgebase for helpful articles and solutions!