NRPE: Command 'mysql_processlist' not defined
Posted: Mon Apr 03, 2017 11:37 am
ok so this might be a really easy fixed that i am overlooking
but those not make any sense the physical file is there so it not missing
i can run it manually and received valid info but if i have nagios run it it show
log file received valid data
"NRPE: Command 'mysql_processlist' not defined"
my command.cfg
# 'mysql_processlist’ command definition
define command{
command_name mysql_processlist
command_line $USER1$/mysql_processlist -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$
}
service.cfg
define service{
use generic-service
service_description Check Mysql Processlist
check_command check_nrpe!mysql_processlist! -a '-w 50 -c 100'
max_check_attempts 3
check_interval 5
retry_interval 1
check_period 24x7
hostgroups MySql
contacts nagiosadmin
servicegroups MySql
}
NRPE.cfg
command[mysql_processlist]=/usr/local/nagios/libexec/mysql_processlist -u xxx -p xxxxxx -w 50 -c 100
but those not make any sense the physical file is there so it not missing
i can run it manually and received valid info but if i have nagios run it it show
log file received valid data
"NRPE: Command 'mysql_processlist' not defined"
my command.cfg
# 'mysql_processlist’ command definition
define command{
command_name mysql_processlist
command_line $USER1$/mysql_processlist -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$
}
service.cfg
define service{
use generic-service
service_description Check Mysql Processlist
check_command check_nrpe!mysql_processlist! -a '-w 50 -c 100'
max_check_attempts 3
check_interval 5
retry_interval 1
check_period 24x7
hostgroups MySql
contacts nagiosadmin
servicegroups MySql
}
NRPE.cfg
command[mysql_processlist]=/usr/local/nagios/libexec/mysql_processlist -u xxx -p xxxxxx -w 50 -c 100