i 'm still new in nagios ,
i have some servers which mysql service is running on them ,
i want to check this service on them ,
i have seen the check_mysql plugin in libexec subdirectory of nagios,
but i don’t know how to use it from command line ,
ofcourse i want to define it in checkcommand.cfg file too,
would you help me ?
oh i think NRPE and NCSA are for remotely checking local check command,isn’t it ?
but check_mysql could be checked on network without NRPE or NCSA .yeah?
anyway i used it and will write it here with hope to be usefull for other newbies like myself.
But for ourself, as we have a lot of mysql servers to check, we did following:
we created a “scriptwrapper” that reads
config file where is defined all params for check_mysql script:
hm, I don’t really understand what do you mean.
if you can get the access to the mysql database from the Nagios server with help of “mysql” client, you can use the same username for nagios pluging.
I didn’t specify USER3,$USER4 for my config, because I use the config file where all necessary data are configured, and you can pass the user/password from the service config file, for this you should use $ARG1$ etc.
$USER3$ and $USER4$ and so-on are defined in the resource.cfg file and are hidden from the services.cfg file. That can be important when you want to hide login information from the eyes of those that have access to view the config files from the website cgi pages.