Update healtchcheck
This commit is contained in:
parent
bf51f8957d
commit
957892a0bc
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue