diff --git a/clustercheck b/clustercheck index 86ebb77..8bf5c05 100755 --- a/clustercheck +++ b/clustercheck @@ -24,17 +24,19 @@ then # Shell return-code is 0 /bin/echo -en "HTTP/1.1 200 OK\r\n" /bin/echo -en "Content-Type: text/plain\r\n" + /bin/echo -en "Connection: close\r\n" + /bin/echo -en "Content-Length: 40\r\n" /bin/echo -en "\r\n" /bin/echo -en "Percona XtraDB Cluster Node is synced.\r\n" - /bin/echo -en "\r\n" exit 0 else # Percona XtraDB Cluster node local state is not 'Synced' => return HTTP 503 # Shell return-code is 1 /bin/echo -en "HTTP/1.1 503 Service Unavailable\r\n" /bin/echo -en "Content-Type: text/plain\r\n" + /bin/echo -en "Connection: close\r\n" + /bin/echo -en "Content-Length: 44\r\n" /bin/echo -en "\r\n" /bin/echo -en "Percona XtraDB Cluster Node is not synced.\r\n" - /bin/echo -en "\r\n" exit 1 fi