Closing Mysql sessions from monitoring Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
evisus
Posts: 82
Joined: Tue Apr 26, 2016 1:19 pm

Closing Mysql sessions from monitoring Nagios

Post by evisus »

Hi all!!. I would like to know how Nagios manages the closing of sessions to Mysql from the plugins. Our DBA calls us for many open sessions that originate from our Nagios server and that has been causing problems

Thank you
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Closing Mysql sessions from monitoring Nagios

Post by benjaminsmith »

Hello @evisus,

You may have an issue with corrupted database tables. Log into the server as root and run the following command to check and repair the database.

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh
If the issue persists, please send us your system profile for us to review.

Thanks.

To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share in a private message or upload it to the post/ticket, and then reply to this post to bring it up in the queue.
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!
evisus
Posts: 82
Joined: Tue Apr 26, 2016 1:19 pm

Re: Closing Mysql sessions from monitoring Nagios

Post by evisus »

Hello @benjaminsmith.

I think I've explained myself wrong, I'm sorry.

Nagios is monitoring a MySQL database on a remote server. According to the DBA, nagios is leaving sessions open to MySQL and that is causing problems.

My question is whether the plugin used in the Nagios XI Wizard closes sessions to MySQL when finished running the plugins

Thank you!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Closing Mysql sessions from monitoring Nagios

Post by benjaminsmith »

Hi @evisus,

What do you have your check interval set at for those services?

Also, the plugin used by the wizard is check_mysql_health,. The latest version is 2.2.2, and you may want to upgrade as it's possible you maybe hitting a bug.

To check the version:

Code: Select all

cd /usr/local/nagios/libexec
./check_mysql_health -V
Upgrade instructions are found in the readme file of the plugin archive.
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!
evisus
Posts: 82
Joined: Tue Apr 26, 2016 1:19 pm

Re: Closing Mysql sessions from monitoring Nagios

Post by evisus »

Thank you.

The interval is 5 minutes.

We are going to update the plugins.

I will be reporting results
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Closing Mysql sessions from monitoring Nagios

Post by benjaminsmith »

We are going to update the plugins.
I will be reporting results
Sounds good. We'll wait for your reply.
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!
Locked