Fix mysql httpchk
This commit is contained in:
parent
c5cadadeeb
commit
743e8201f0
|
@ -322,7 +322,7 @@ return="503 Service Unavailable"
|
||||||
# Mysql is up but replication is not ok, return a 404
|
# Mysql is up but replication is not ok, return a 404
|
||||||
# You may want to comment this line in master/master mode
|
# You may want to comment this line in master/master mode
|
||||||
# It disable server (NOLB status) when replication is down or lagging
|
# It disable server (NOLB status) when replication is down or lagging
|
||||||
/usr/lib/nagios/plugins/check_mysql -f /etc/mysql/debian.cnf --check-slave -c 60 >/dev/null || return="404 OK"
|
/usr/lib/nagios/plugins/check_mysql -f /etc/mysql/debian.cnf --check-slave -c 60 >/dev/null || return="404 Not Found"
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
HTTP/1.0 ${return}
|
HTTP/1.0 ${return}
|
||||||
|
|
Loading…
Reference in a new issue