NagiosXI loses connection to MySQL

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
KPoulsen
Posts: 5
Joined: Wed Oct 07, 2015 6:53 am

NagiosXI loses connection to MySQL

Post by KPoulsen »

Hi,
After upgrading to 5.2.7 my Nagios loses connection to MySQL every few minutes.
I tried running the repair_databases.sh pr request of GUI when connection is lost, but to no prevail.

I would rather not have to roll back to an earlier backup, but I am at a loss on how to proceed.

I attached the profile from admin -> system profile.

Hope any of you have any idea how to get the system stable again :)

Regards
Kevin
Last edited by lmiltchev on Mon Apr 18, 2016 10:38 am, edited 2 times in total.
Reason: deleted profile as it may contain sensitive information.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NagiosXI loses connection to MySQL

Post by ssax »

Looks like you're getting too many connections:

Code: Select all

mysql_pconnect(): Too many connections
Try editing your /etc/my.cnf and under the [mysqld] section set:

Code: Select all

max_connections=500
Restart the services:

Code: Select all

service nagios stop
service ndo2db stop
service mysqld restart
service ndo2db start
service nagios start
Let us know if that resolves the issue for you.
KPoulsen
Posts: 5
Joined: Wed Oct 07, 2015 6:53 am

Re: NagiosXI loses connection to MySQL

Post by KPoulsen »

Thank you,

I have implemented the changes and so far so good.
I'll be back later with a final verdict :)
KPoulsen
Posts: 5
Joined: Wed Oct 07, 2015 6:53 am

Re: NagiosXI loses connection to MySQL

Post by KPoulsen »

Hi again,

Nagios have been running all day with no missing connection to MySQL.
Thank you and this topic can be marked as resolved :D
Locked