Problems executing check_mysql plugin

Posted by Brian on Server Fault See other posts from Server Fault or by Brian
Published on 2011-02-21T18:10:07Z Indexed on 2011/02/22 15:27 UTC
Read the original article Hit count: 276

Filed under:
|

I'm attempting to test out the check_mysql plugin for Nagios using the command line. It works great when I'm just checking localhost but when I try to specify a different server (using the -H argument) I keep getting the following error message:

CRITICAL - Unable to connect to mysql://nagios_user@{remoteServerHostname}/ - Access denied for user 'nagios_user'@'{localServerHostName}' (using password: YES)

It looks like it's trying to connect to the database using the localhost server even though I've specified a different host name. I've already set up this user on the remote database and they have correct permissions. I'm just trying to figure out why the script keeps inserting the localhost server name instead of the remote one.

© Server Fault or respective owner

Related posts about mysql

Related posts about nagios