When using the Operations Screen from the home menu, the message "Could not connect to the database!" is intermittently displayed instead of the expected screen of host/service issues. When the issue was first seen, we had been running 2014R2.7, and as part of troubleshooting have upgraded to 5.2.7. Database repairs have been completed both before and after the upgrade. Running a tail on /var/log/httpd/error_log, the follow error is seen repeatedly (for various client IPs):
Code: Select all
[error] [client xxx.xxx.xxx.xxx] PHP Warning: mysql_connect(): Too many connections in /usr/local/nagiosxi/html/includes/components/opscreen/merlin.php on line 28, referer: http://172.21.0.138/nagiosxi/includes/components/opscreen/opscreen.phpCode: Select all
Nagios XI Installation Profile
System:
Nagios XI Version : 5.2.7
localhost.localdomain 2.6.32-279.5.1.el6.i686 i686
CentOS release 6.3 (Final)
Gnome is not installed
Apache Information
PHP Version: 5.3.3
Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
Server Name: 172.21.0.138
Server Address: 172.21.0.138
Server Port: 80
Date/Time
PHP Timezone: America/Anchorage
PHP Time: Tue, 24 May 2016 13:28:20 -0800
System Time: Tue, 24 May 2016 13:28:20 -0800
Nagios XI Data
License ends in: NUTVRS
nagios (pid 7949) is running...
NPCD running (pid 1728).
ndo2db (pid 7805) is running...
CPU Load 15: 3.54
Total Hosts: 1300
Total Services: 3735
Function 'get_base_uri' returns: http://172.21.0.138/nagiosxi/
Function 'get_base_url' returns: http://172.21.0.138/nagiosxi/
Function 'get_backend_url(internal_call=false)' returns: http://172.21.0.138/nagiosxi/includes/components/profile/profile.php
Function 'get_backend_url(internal_call=true)' returns: http://localhost/nagiosxi/backend/