config mysql

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
berhan30
Posts: 15
Joined: Mon Jun 01, 2015 3:22 am

config mysql

Post 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.
monitoring the networks equipment and server : I have two problems
the first: how to configure a router contains more IP address (path).
the 2nd: how to configure a switch without level 2 IP address
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: config mysql

Post 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?
Former Nagios Employee
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: config mysql

Post 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$
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked