Shell script `default/percona-clustercheck'

Install cluster health check script

clustermin install xinetd cd /tmp clustermin get clustercheck.sh > clustercheck chmod +x clustercheck sudo mv clustercheck /usr/bin/ cat <<EOF | sudo tee /etc/xinetd.d/mysqlchk > /dev/null # default: on # description: mysqlchk service mysqlchk { disable = no flags = REUSE socket_type = stream port = 9200 # This port used by xinetd for clustercheck wait = no user = nobody server = /usr/bin/clustercheck server_args = clustercheckuser {{ randomize('clustercheckuser' ~ cluster.uuid) }} 1 log_on_failure += USERID only_from = 0.0.0.0/0 per_source = UNLIMITED } EOF grep -q "mysqlchk" /etc/services || echo "mysqlchk 9200/tcp" | sudo tee -a /etc/services > /dev/null sudo systemctl restart xinetd