check_mysql
Marc Powell
marc at ena.com
Wed Oct 15 21:33:37 CEST 2008
On Oct 15, 2008, at 2:00 PM, jeremiah wrote:
> I want nagios to automatically check mysql services on my servers.
> However when i view the web interface i see that staus is UNKNOWN
> and it
> displays the usage for check_mysql. In what file am i supposed to put
> the arguments for this command?
Based on your command{} definition, they should be in your service
definition.
> Here is what i have so far in commands.cfg
>
> define command{
> command_name check_mysql
> command_line $USER1$/check_mysql -H $HOSTADDRESS$ -P $ARG1$
> -u $ARG2$ -p $ARG3$
> }
>
> and my services.cf file...
>
> define service{
> [chop]
> check_command check_mysql
> }
check_command should be something like --
check_command check_mysql!<arguments for -P>!<arguments for -u>!
<arguments for -p>
See the last half of the Macro Substitution section of http://nagios.sourceforge.net/docs/2_0/macros.html
--
Marc
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
More information about the Users
mailing list