HI All,
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?
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... or localhosts.cfg (nagios verion 3.0)
define service{
use generic-service ; Name
of service template
hostgroup_name mysql_servers
service_description MYSQL
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 3
retry_check_interval 1
contact_groups admins
notification_interval 30
notification_period 24x7
notification_options w,u,c,r
check_command check_mysql
}
Thanks!Dinesh Jadhav9867011640"Do not worry about anything; instead
PRAY ABOUT EVERYTHING."
Philippians 4:6
Bollywood news, movie reviews, film trailers and more! Go to
http://in.movies.yahoo.com/
[Non-text portions of this message have been removed]