Required permissions for check_mysql_health

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Required permissions for check_mysql_health

Post by WillemDH »

hello,

I'm trying to get the mysql wizard working, but I keep getting

Code: Select all

OUTPUT: CRITICAL - cannot connect to information_schema. Access denied for user 'nagiosUser'@'nagiosserver' (using password: YES)
The user has select, insert, update privileges. Anything else the user needs to be able to monitor the mysql?

Grtz

Willem
Nagios XI 5.8.1
https://outsideit.net
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Required permissions for check_mysql_health

Post by slansing »

Are you running this against your local XI server? Or against some other nagios database remotely? Did you replace the username and password you used with:
'nagiosUser'@'nagiosserver'
If not, is that what you have changed the username and password to for the mysql DB in the correct places?
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Required permissions for check_mysql_health

Post by WillemDH »

I'm trying to monitor the mysql DB of our LAMP environment, this is not the mysql DB of the Nagios server. The user 'nagiosUser'@'nagiosserver' is just an example.
Nagios XI 5.8.1
https://outsideit.net
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Required permissions for check_mysql_health

Post by scottwilkerson »

From the plugins's website
In order to be able to collect the needed information from the database a database user with specific privileges is required:

Code: Select all

GRANT usage ON *.* TO 'nagios'@'nagiosserver' IDENTIFIED BY 'nagiospassword'
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Required permissions for check_mysql_health

Post by WillemDH »

Got this myql checks up and running in the meantime. Thread can be closed. Tx
Nagios XI 5.8.1
https://outsideit.net
Locked