Small (hopefully helpful) script to monitor Varnish's uptime

Dridi Boukelmoune dridi.boukelmoune at zenika.com
Fri Jan 23 19:18:38 CET 2015


On Fri, Jan 23, 2015 at 6:36 PM, Jennings III, Raymond
<raymond.jennings at nytimes.com> wrote:
> /usr/bin/varnishstat -1 | /bin/grep 'uptime' | /bin/awk '{ print $2}'
>>/var/nyt/logs/varnish/varnish_uptime

You don't need grep!

varnishstat -1 -f uptime | awk '{print $2}'



More information about the varnish-misc mailing list