Update healtchcheck

This commit is contained in:
Micke Nordin 2023-09-27 14:33:37 +02:00
parent bf51f8957d
commit 957892a0bc
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -408,7 +408,7 @@ data:
) )
healthcheck.sh: | healthcheck.sh: |
#!/bin/bash #!/bin/bash
num_servers=$(mysql -NB -u admin -h 127.0.0.1 -P 6032 -e "select count(*) from main.mysql_servers") num_servers=$(mysql -NB -u admin -h 127.0.0.1 -P 6032 -e "select count(*) from main.mysql_servers where hostgroup_id = 10")
if [[ ${num_servers} -lt 1 ]]; then if [[ ${num_servers} -lt 1 ]]; then
exit 1 exit 1
fi fi