diff --git a/nagios/bin/pmp-check-mysql-replication-delay b/nagios/bin/pmp-check-mysql-replication-delay index 1f02585..20bae29 100755 --- a/nagios/bin/pmp-check-mysql-replication-delay +++ b/nagios/bin/pmp-check-mysql-replication-delay @@ -73,7 +73,7 @@ main() { else NOW_FUNC='UNIX_TIMESTAMP(UTC_TIMESTAMP)' fi - if [ "${OPT_SRVID}" == "MASTER" ]; then + if [ "${OPT_SRVID}" = "MASTER" ]; then if [ "${MYSQL_CONN}" = 0 ]; then OPT_SRVID=$(awk '/Master_Server_Id/{print $2}' "${TEMP_SLAVEDATA}") fi diff --git a/nagios/bin/pmp-check-mysql-ts-count b/nagios/bin/pmp-check-mysql-ts-count index 06ea3f4..4bef803 100755 --- a/nagios/bin/pmp-check-mysql-ts-count +++ b/nagios/bin/pmp-check-mysql-ts-count @@ -61,10 +61,10 @@ main() { exit 1 fi fi - if [ "${OPT_TARGET}" == "kills" ]; then + if [ "${OPT_TARGET}" = "kills" ]; then OPT_TABLE="${OPT_TABLE:-percona.kill_log}" OPT_TIMESTAMP="${OPT_TIMESTAMP:-timestamp}" - elif [ "${OPT_TARGET}" == "fkerrors" ]; then + elif [ "${OPT_TARGET}" = "fkerrors" ]; then OPT_TABLE="${OPT_TABLE:-percona.foreign_key_errors}" OPT_TIMESTAMP="${OPT_TIMESTAMP:-ts}" else