From 7e3ac46d3a3dc547fcd49db1e1babea752c86854 Mon Sep 17 00:00:00 2001 From: Nils Date: Sun, 16 Oct 2022 19:43:52 +0200 Subject: [PATCH] results only on erro --- check_replication_status.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/check_replication_status.sh b/check_replication_status.sh index 23c4497..8e4d7d1 100644 --- a/check_replication_status.sh +++ b/check_replication_status.sh @@ -22,10 +22,6 @@ if ! mysql -e 'SHOW REPLICA STATUS \G' | grep 'Running:\|Source:\|Error:' > "/tm echo "Login failed" > "/tmp/mysql_replication_status.txt" fi -# displaying results, just in case you want to see them -echo "Results:" -cat "/tmp/mysql_replication_status.txt" - # Check parameters MY_REPLICA_IO_RUNNING=$(grep -c "Replica_IO_Running: Yes" "/tmp/mysql_replication_status.txt") MY_REPLICA_SQL_RUNNING=$(grep -c "Replica_SQL_Running: Yes" "/tmp/mysql_replication_status.txt")