From 25b4c7b7c6e837f149a107fbe1030f2dbb83db36 Mon Sep 17 00:00:00 2001 From: Niels Kristensen Date: Mon, 19 Nov 2018 14:27:14 +0100 Subject: [PATCH] Use _position and REPL_DIFFERENCE for altering. --- check_mysql_replication.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_mysql_replication.sh b/check_mysql_replication.sh index 1043217..05389fb 100755 --- a/check_mysql_replication.sh +++ b/check_mysql_replication.sh @@ -86,7 +86,7 @@ iDiff_1=`expr $iMaster_position - $iSlave_1_position` if [ $iDiff_1 -gt $REPL_DIFFERENCE ] then - echo "CRITICAL - master log $iMaster - slave log $iSlave_1 - log positions differ by more than $CRITICAL_VALUE" + echo "CRITICAL - master log $iMaster_position - slave log $iSlave_1_position - log positions differ by more than $REPL_DIFFERENCE" exit $STATE_CRITICAL elif [ "$iSlave_1_status" != "Waiting for master to send event" ] then