/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh: line 19: mysql: command not found

[root@test ~]# tail -f /tmp/zabbix_agentd.log 

/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh: line 19: mysql: command not found
vi /var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh: line

RES=`/usr/local/mysql/bin/mysql -uroot -p‘123456‘ -e ‘SHOW SLAVE STATUS\G‘ | egrep ‘Slave_IO_Running|Slave_SQL_Running‘ | awk -F: ‘{print $2}‘ | tr ‘\n‘ ‘,‘`
if [ "$RES" = " Yes, Yes," ]; then
echo 1
else
echo 0
fi
"/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh" 43L, 1279C written
[root@test ~]# tail -f /tmp/zabbix_agentd.log

/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh: line 19: mysql: command not found
/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh: line 19: mysql: command not found
/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh: line 19: mysql: command not found

Warning: Using a password on the command line interface can be insecure.
Warning: Using a password on the command line interface can be insecure.
Warning: Using a password on the command line interface can be insecure.

/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh: line 19: mysql: command not found

上一篇:iOS.KVC.setValue:forKey:


下一篇:编写一个ComputerAverage抽象类,类中有一个抽象方法求平均分average,可以有参数。定义 Gymnastics 类和 School 类,它们都是 ComputerAverage 的子类。Gymnastics 类中计算选手的平均成绩的方法是去掉一个最低分,去掉一个最高分,然后求平均分;School 中计算平均分的方法是所有科目的分数之和除以总科目数。 要求:定义ComputerAv