Intermittent Operations Screen error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Intermittent Operations Screen error

Post by rkennedy »

Looks like Postgres is now hitting the max connections, which is different from before.

Can you run locate postgresql.conf and then open that file, take a look at the max_connections field and double that. Then, restart postgresql, and it should stop returning that error now.
Former Nagios Employee
Greg
Posts: 60
Joined: Thu Apr 11, 2013 7:38 pm

Re: Intermittent Operations Screen error

Post by Greg »

I have modified the postgresql.conf file, and restarted the service. Will once again monitor the error log for further issues.
Greg
Posts: 60
Joined: Thu Apr 11, 2013 7:38 pm

Re: Intermittent Operations Screen error

Post by Greg »

It appears that we are once again receiving the "too many connections" errors. I had previously increased the mysql "max_connections" from 151 to 300; do the connections need to be increased even further? I expect 5~10 users to simultaneously be using the Operations Page (set to refresh every 10 seconds), is 300 connections really too low to support our needs?

Code: Select all

[Fri Jun 03 13:43:04 2016] [error] [client xxx.xxx.xxx.55] 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.php
[Fri Jun 03 13:45:04 2016] [error] [client xxx.xxx.xxx.44] 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.php
[Fri Jun 03 13:45:05 2016] [error] [client xxx.xxx.xxx.44] 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.php
[Fri Jun 03 13:45:05 2016] [error] [client xxx.xxx.xxx.55] 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.php
[Fri Jun 03 13:47:07 2016] [error] [client xxx.xxx.xxx.55] 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.php
[Fri Jun 03 13:47:08 2016] [error] [client xxx.xxx.xxx.44] 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.php
[Fri Jun 03 13:48:04 2016] [error] [client xxx.xxx.xxx.44] 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.php
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Intermittent Operations Screen error

Post by Box293 »

How long is a piece of string? Every customers environment needs adjusting differently based on their needs.

It would increase to 1000 and see how it goes from there.

In this KB article, it explains how to check how many connections it peaks at, as well as the number of connected threads. This information will better help understand your operating baseline and help determine if you need to increase it (instead of relying on errors in logs):
https://support.nagios.com/kb/article.php?id=513

Does this help?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Greg
Posts: 60
Joined: Thu Apr 11, 2013 7:38 pm

Re: Intermittent Operations Screen error

Post by Greg »

Morning,
The provided support article looks to have been precisely the information I was looking for. I've increased the connections again, and set up monitoring to gain additional visibility into the issue. Really appreciate the assistance.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Intermittent Operations Screen error

Post by lmiltchev »

I am glad we were able to help! Is it safe to mark this topic as "resolved", and lock it?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Greg
Posts: 60
Joined: Thu Apr 11, 2013 7:38 pm

Re: Intermittent Operations Screen error

Post by Greg »

Monitoring show that we have been stable a 399 connections. I believe it should be fine to resolve this thread. Thanks again for the assistance.
Locked