Page 1 of 1

config mysql

Posted: Tue Dec 15, 2015 4:33 am
by berhan30
Problem: Please select a mode
I installed plugin check_mysql_health in the bath (usr/lib/nagios/plugins)
by the command:

define command{
command_name check_mysql_health
command_line $USER1$/check_mysql_health -H $ARG1$ –port $ARG2$ –username $ARG3$ –password $ARG4$ –mode $ARG5$
}

and service

define service{
use local-service
host_name *****
service_description MySQL connection-time
check_command check_mysql_health!x.x.x.x!xxxx!nagios!nagios!connection-time!
}

define service{
use local-service
host_name ****
service_description MySQL Open File1s
check_command check_mysql_health!x.x.x.x!xxxx!nagios!nagios!open-files!
}
define service{
use local-service
host_name ****
service_description MySQL UP Time
check_command check_mysql_health!x.x.x.x!xxxx!nagios!nagios!uptime!
}
but i had the result message : 'Please select a mode '
please help me.

Re: config mysql

Posted: Tue Dec 15, 2015 10:45 am
by rkennedy
For reference, what version of core are you running and what is the exact link to the plugin you downloaded?

Does your password contain any special characters?

Re: config mysql

Posted: Tue Dec 15, 2015 9:57 pm
by Box293
berhan30 wrote:define command{
command_name check_mysql_health
command_line $USER1$/check_mysql_health -H $ARG1$ –port $ARG2$ –username $ARG3$ –password $ARG4$ –mode $ARG5$
}
I suspect the arguments are supposed to be --

Code: Select all

$USER1$/check_mysql_health --hostname $ARG1$ –-port $ARG2$ –-username $ARG3$ –-password $ARG4$ –-mode $ARG5$