How to monitor varnish with snmp

Angelo Höngens A.Hongens at netmatch.nl
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/NM_VARNISH_TOTALHITS.sh
#!/bin/sh
/usr/local/bin/varnishstat -1 -f cache_hit | awk '{ print $2 }'

$ cat /usr/local/share/snmp/scripts/NM_VARNISH_TOTALREQS.sh
#!/bin/sh
/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

------------------------------------------
NetMatch
tourism internet software solutions

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

mailto:A.Hongens at netmatch.nl
http://www.netmatch.nl
------------------------------------------

From: varnish-misc-bounces at varnish-cache.org [mailto:varnish-misc-bounces at varnish-cache.org] On Behalf Of Angie T. Muhammad
Sent: vrijdag 1 oktober 2010 18:53
To: marcos.corvalan at mercadolibre.com
Cc: varnish-misc at varnish-cache.org
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 mercadolibre.com<mailto:marcos.corvalan at mercadolibre.com>> wrote:
Hi everyone:
How can I monitor data with snmp from varnish process.
Since now thanks a lots.


Saludos/Regards

Marcos Corvalan
Infraestructura IT
Mercadolibre.com
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 hotmail.com<mailto:marcoscorvalan_04 at hotmail.com>
Mobile : +54 11 37701933


_______________________________________________
varnish-misc mailing list
varnish-misc at varnish-cache.org<mailto:varnish-misc at varnish-cache.org>
http://lists.varnish-cache.org/mailman/listinfo/varnish-misc



--
All the best,
Angie T. Muhammad
Linux Systems Engineer
Al Masry Al Youm
http://www.almasryalyoum.com/en
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20101001/ca779802/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 19319 bytes
Desc: image001.png
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20101001/ca779802/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 24373 bytes
Desc: image002.png
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20101001/ca779802/attachment-0007.png>


More information about the varnish-misc mailing list