check_mysql_health unable to apply configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nms_system_support
Posts: 39
Joined: Tue Jun 17, 2014 2:58 am

check_mysql_health unable to apply configuration

Post by nms_system_support »

Hello

I create a service to check MySQL on a server and as you can see from the run_check.jpg the command is working successfully. But when I am trying to apply the configuration I get an error -> check failed_configuration.jpg

Is it because we haven't installed the MySQL plugin at the client?

Thank you
You do not have the required permissions to view the files attached to this post.
455157
Posts: 50
Joined: Mon Sep 10, 2012 7:35 pm

Re: check_mysql_health unable to apply configuration

Post by 455157 »

Hello,

As a starting point, I'd recommend that you investigate the items noted in the bottom red box in your screenshot.

It looks like max_attempts, check_interval, etc... may have an invalid value on the mysql_uptime service on the host noted.

What do you see if you navigate to that service in the Core Config Manager, in the Check Settings tab?

Once there are valid values there, you can try to apply configuration again.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: check_mysql_health unable to apply configuration

Post by benjaminsmith »

Thanks @455157. Let us know if you're able to correct those errors and apply configuration, looks like check_mysql_health is returning valid results.

By the way, if you'd like to know more about those specific values, check out the object definition documentation for Nagios:

Object Definitions
https://assets.nagios.com/downloads/nag ... tions.html
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!
nms_system_support
Posts: 39
Joined: Tue Jun 17, 2014 2:58 am

Re: check_mysql_health unable to apply configuration

Post by nms_system_support »

Hi,

Thanks both. Its quite strange. I tried on another nagios and I get the same error.

Even though I tried to create a new service just to check service mysqld and I get error again. When I use a service that I already have for localhost I don't get any error!

So what I did is to add it with vi at the .cfg file manually. and it works!

But I cannot see the service now at GUI
You do not have the required permissions to view the files attached to this post.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: check_mysql_health unable to apply configuration

Post by benjaminsmith »

Hi @nms_system_support,
So what I did is to add it with vi at the .cfg file manually. and it works!
But I cannot see the service now at GUI
Configurations manually loaded in the static directory are loaded loaded into Nagios Core but these are not shown in the CCM (Core Configuration Manager) in Nagios XI.

Can you send me your system profile, and I can review the configuration files for you. To send your 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 upload it to a cloud storage of your choice. You can share a link with me in a personal message.
After you upload the profile please post something in this thread to bring it up in the support 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!
Locked