On 7/2/07, Jake Solid <[EMAIL PROTECTED]> wrote: > > I use the NRPE deamon my Nagios server to monitor a remote mysql database. > > I have the following entry in the nrpe.cfg of my remote server that runs > mysql: > > command[check_mysql]=/usr/lib64/nagios/plugins/check_mysql > -d my_database -u root -p mypassword
Why are you using your root user to test the database? All you really need to do is grant USAGE rights to test user and then not give them rights to anything else. From here, you can use your resource file to put the password in there, and with proper permissions, only root and the nagios user can read that file. -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null