Script to make a proxy (ie HAProxy) capable of monitoring Percona XtraDB Cluster nodes properly. The clustercheck script is distributed under the BSD license.
BSD 3-Clause "New" or "Revised" License
173
stars
108
forks
source link
error after update /etc/sysconfig/clustercheck #20
hi.
after you edit file six days ago, i use script check not running. compare 2 file:
before: MYSQL_USERNAME="${1-clustercheckuser}" MYSQL_PASSWORD="${2-clustercheckpassword!}" AVAILABLE_WHEN_DONOR=${3:-0} ERR_FILE="${4:-/dev/null}" AVAILABLE_WHEN_READONLY=${5:-1} DEFAULTS_EXTRA_FILE=${6:-/etc/my.cnf}
After (now): set -e
if [ -f /etc/sysconfig/clustercheck ]; then . /etc/sysconfig/clustercheck fi
MYSQL_USERNAME="${MYSQL_USERNAME:=-clustercheckuser}" MYSQL_PASSWORD="${MYSQL_PASSWORD-clustercheckpassword!}" AVAILABLE_WHEN_DONOR=${AVAILABLE_WHEN_DONOR:-0} ERR_FILE="${ERR_FILE:-/dev/null}" AVAILABLE_WHEN_READONLY=${AVAILABLE_WHEN_READONLY:-1} DEFAULTS_EXTRA_FILE=${DEFAULTS_EXTRA_FILE:-/etc/my.cnf}
i don't have file /etc/sysconfig/clustercheck, script is not running. i must edit same old file, it is running normal.