How to monitor varnish with snmp

Angelo Höngens A.Hongens at
Fri Oct 1 19:47:57 CEST 2010

I extended net-snmp with two scripts, to return some counters:

$ cat /usr/local/share/snmp/scripts/
/usr/local/bin/varnishstat -1 -f cache_hit | awk '{ print $2 }'

$ cat /usr/local/share/snmp/scripts/
/usr/local/bin/varnishstat -1 -f client_req | awk '{ print $2 }'

These are then imported into cacti, and I can calculate the hit ratio and requests/sec. I'm interested to hear from the Varnish guru's if they suggest any more counter worth graphing:

[Description: Description: NMT-NLB-04 - Varnish - Cache hit ratio]<http://wol-cac-01/graph.php?action=view&local_graph_id=1778&rra_id=all>

[Description: Description: NMT-NLB-04 - Varnish client HTTP requests]<http://wol-cac-01/graph.php?action=view&local_graph_id=1774&rra_id=all>


With kind regards,

Angelo Höngens

Systems Administrator

tourism internet software solutions

Ringbaan Oost 2b
5013 CA Tilburg
T: +31 (0)13 5811088
F: +31 (0)13 5821239

mailto:A.Hongens at

From: varnish-misc-bounces at [mailto:varnish-misc-bounces at] On Behalf Of Angie T. Muhammad
Sent: vrijdag 1 oktober 2010 18:53
To: marcos.corvalan at
Cc: varnish-misc at
Subject: Re: How to monitor varnish with snmp

I am so much interested in the same topic. I tried creating my own OIDs and getting the output of a shell script into them, but failed, the OID never resturned any value. May any body give us a simple guidance ?
On Tue, Sep 14, 2010 at 6:55 PM, <marcos.corvalan at<mailto:marcos.corvalan at>> wrote:
Hi everyone:
How can I monitor data with snmp from varnish process.
Since now thanks a lots.


Marcos Corvalan
Infraestructura IT
Tronador 4890 - 8 piso Capital Federal | Buenos Aires
Argentina | CP 1430 | Tel +54 11 5352-8000 Ext 8426
email marcos.corvalan| msn marcoscorvalan_04 at<mailto:marcoscorvalan_04 at>
Mobile : +54 11 37701933

varnish-misc mailing list
varnish-misc at<mailto:varnish-misc at>

All the best,
Angie T. Muhammad
Linux Systems Engineer
Al Masry Al Youm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 19319 bytes
Desc: image001.png
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 24373 bytes
Desc: image002.png
URL: <>

More information about the varnish-misc mailing list