varnish

Probing if Varnish is Alive

If you probe on varnish service status to check if it is alive, this can be setup as below. Put it in "vcl_recv" block:

  # Check if Varnish is alive
  if (req.url == "/varnish_status") {
    error 200 "OK";
  }

Then check for http "200 OK" in the response code.

Comment