Skip to content

Commit

Permalink
monodb: mysql-health/pgsql-health: use --checkNote on monokit redmine…
Browse files Browse the repository at this point in the history
… issue update
  • Loading branch information
kreatoo committed Sep 16, 2024
1 parent 0ef9fef commit 70d3e11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/monodb/mysql-health.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,11 @@ function check_cluster_status() {
print_colour "Cluster size" "$no_cluster/$CLUSTER_SIZE"
elif [ -z "$no_cluster" ]; then
alarm_check_down "cluster_size" "Couldn't get cluster size: $no_cluster/$CLUSTER_SIZE"
monokit redmine issue update --service "mysql-cluster-size" --message "Couldn't get cluster size with command: \"mysql -sNe \"SHOW STATUS WHERE Variable_name = 'wsrep_cluster_size';\"\""
monokit redmine issue update --service "mysql-cluster-size" --message "Couldn't get cluster size with command: \"mysql -sNe \"SHOW STATUS WHERE Variable_name = 'wsrep_cluster_size';\"\"" --checkNote
print_colour "Cluster size" "Couln't get" "error"
else
alarm_check_down "cluster_size" "Cluster size is not accurate: $no_cluster/$CLUSTER_SIZE"
monokit redmine issue update --service "mysql-cluster-size" --message "MySQL cluster size is $no_cluster at $IDENTIFIER_REDMINE"
monokit redmine issue update --service "mysql-cluster-size" --message "MySQL cluster size is $no_cluster at $IDENTIFIER_REDMINE" --checkNote
print_colour "Cluster size" "$no_cluster/$CLUSTER_SIZE" "error"
fi

Expand Down
2 changes: 1 addition & 1 deletion scripts/monodb/pgsql-health.sh
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ function cluster_status() {
elif [[ $j -eq 0 ]]; then
monokit redmine issue close --service "pgsql-cluster-size" --message "Patroni cluster size is $((i - j)) at $IDENTIFIER_REDMINE"
else
monokit redmine issue update --service "pgsql-cluster-size" --message "Patroni cluster size is $((i - j)) at $IDENTIFIER_REDMINE"
monokit redmine issue update --service "pgsql-cluster-size" --message "Patroni cluster size is $((i - j)) at $IDENTIFIER_REDMINE" --checkNote
fi
}

Expand Down

0 comments on commit 70d3e11

Please sign in to comment.