diff --git a/lib/mysql-role.sh b/lib/mysql-role.sh index 158dab5..1ca4fe9 100755 --- a/lib/mysql-role.sh +++ b/lib/mysql-role.sh @@ -265,7 +265,7 @@ monitor_gtid() { node_status=$(jq -n \ --arg host "$HOST" \ - --arg port "$PORT" \ + --arg port "${MYSQL_EXTERNAL_PORT}" \ --arg last_seen "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \ --arg gtid "$gtid_position" \ --arg role "$current_role" \