Nagios MySQL Monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Tzogii13
Posts: 9
Joined: Wed Jul 23, 2014 2:54 pm

Nagios MySQL Monitoring

Post by Tzogii13 »

I have question regarding Nagios MySQL Monitoring. At the moment I can monitor MySQL, however it is showing everything as critical. When I try and run my commands from the command line I keep getting this error and I am not sure why.

OUTPUT: CRITICAL - cannot connect to information_schema. Access denied for user 'root'@'dhcp-0-1e-4c-8a-79-d5.cpe.powergate.ca' (using password: YES)

Thanks in advance
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios MySQL Monitoring

Post by tmcdonald »

Do you allow root logins on that MySQL server?

http://serverfault.com/questions/238277 ... sql-plugin
Former Nagios employee
Tzogii13
Posts: 9
Joined: Wed Jul 23, 2014 2:54 pm

Re: Nagios MySQL Monitoring

Post by Tzogii13 »

Sorry, what do you mean?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios MySQL Monitoring

Post by tmcdonald »

From the article I linked:
The default setting for a MySQL server is to deny access from clients with IP addresses other than the server address. To get around this, run the following command on your server:

Code: Select all

# mysql -u root
mysql> grant select on [DB name you're checking].* to 'nagios_user'@'[Nagios server IP address or hostname]' identified by '[password for nagios_user]';
mysql> flush privileges;  
This will need to be done on the remote MySQL server in order for the Nagios server to run queries on it.
Former Nagios employee
Locked