Finding out number of healthy backends

Caunter, Stefan scaunter at
Tue Nov 23 15:05:48 CET 2010

Use the health check page, not varnish itself. 

The health checks hit a page and checks if the webapp can build a page
within a reasonable time frame. 

Put something in it to notify you that it failed.


Stefan Caunter :: Senior Systems Administrator :: TOPS

e: scaunter at  ::  m: (416) 561-4871


From: varnish-misc-bounces at
[mailto:varnish-misc-bounces at] On Behalf Of Guido
Sent: November-23-10 1:33 AM
To: Glen Kelly
Cc: varnish-misc at
Subject: Re: Finding out number of healthy backends


We build a nagios check using:

varnishadm -T localhost:6082 | grep \ is

This works fine.

2010/11/22 Glen Kelly <Glen.Kelly at>

Is there any way of using varnishstat to determine the number of healthy


I currently use 'varnishstat -1 -f n_backend' but this only returns the
number of backends, not the number of healthy backends.


I am using Nagios to monitor our environment and want to be able to
monitor when we lose a backend. I already am monitoring the backends
directly so I have that covered but I want to also monitor when varnish
thinks it has lost a backend. i.e. monitoring at multiple levels


If this is not current achievable how do I go about requesting this
feature to be added to varnish?


Regards Glen


Error! Filename not specified.

P Do you need to print this? Consider the environment, prevent paper

The information in this transmission may be confidential and/or
protected by legal professional privilege, and is intended only for the
person or persons to whom it is addressed. If you are not such a person,
you are warned that any disclosure, copying or dissemination of the
information is unauthorised. If you have received the transmission in
error, please immediately contact this office by telephone, fax or
email, to inform us of the error and to enable arrangements to be made
for the destruction of the transmission, or its return at our cost. No
liability is accepted for any unauthorised use of the information
contained in this transmission. 


varnish-misc mailing list
varnish-misc at


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list