Skip to content

Commit

Permalink
results only on erro
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyclenerd committed Oct 16, 2022
1 parent 0551994 commit 7e3ac46
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions check_replication_status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 7e3ac46

Please sign in to comment.