config mysql
Posted: Tue Dec 15, 2015 4:33 am
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.
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.