Varnish Cache

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
benben
Posts: 2
Joined: Tue Feb 19, 2008 1:11 pm

Varnish Cache

Post by benben »

Hi there,

I was wondering if anyone knew if of any work being done on a plugin for Varnish (http://varnish.projects.linpro.no/)

I noticed that there is a plugin for munin and thought it might be easy to do for cacti?
(http://muninexchange.projects.linpro.no ... 4&phid=220)

If anyone would be interested in helping me, drop a message...

Thanks - Ben
User avatar
johnrembo
Cacti User
Posts: 216
Joined: Mon Apr 24, 2006 3:33 am

Re: Varnish Cache

Post by johnrembo »

benben wrote:Hi there,

I was wondering if anyone knew if of any work being done on a plugin for Varnish (http://varnish.projects.linpro.no/)

I noticed that there is a plugin for munin and thought it might be easy to do for cacti?
(http://muninexchange.projects.linpro.no ... 4&phid=220)

If anyone would be interested in helping me, drop a message...

Thanks - Ben
to save your valued time you should check cactiEz http://cactiusers.org/wiki/CactiEZ,
which uses eAccelerator as well as cacti Boost plugin http://forums.cacti.net/about24107.html

i doubt Varnish could introduce anything new...
benben
Posts: 2
Joined: Tue Feb 19, 2008 1:11 pm

Post by benben »

I think you misunderstand what I am trying to do - I already have a cacti install and varnish running. I just would like to graph varnish statistics with cacti.
YoMarK
Cacti User
Posts: 89
Joined: Fri Feb 02, 2007 8:36 am
Location: Eindhoven/The Netherlands

Post by YoMarK »

That's not really a plugin, but a template.
Since i haven't got Varnish running, I can't make such a Template, but it can't be to difficult.
What you could do(there are multiple ways to do the same thing):

1) Modify the scripts you posted so it writes the values to a textfile to a path accessible by your cactiserver, for example in you wwwroot of the server running Varnish.
2) Schedule the scripts so the textfile is refreshed every 5 minutes.
3) Create a script on your cactiserver that fetches the textfile, and prints the values just like any other cacti script.
4) You could then create a Data Input Method, Data Template and Graph Template(like in the Howto's).
Last edited by YoMarK on Wed Feb 20, 2008 2:32 pm, edited 1 time in total.
User avatar
johnrembo
Cacti User
Posts: 216
Joined: Mon Apr 24, 2006 3:33 am

Post by johnrembo »

benben wrote:I think you misunderstand what I am trying to do - I already have a cacti install and varnish running. I just would like to graph varnish statistics with cacti.
i realy did misunderstood :-?

try asking at scripts & templates section http://forums.cacti.net/viewforum.php?f=12
or write a simple parser to get results from web-page,file or whatever
dmuntean
Posts: 8
Joined: Wed Feb 18, 2009 6:46 am
Contact:

Post by dmuntean »

I have uploaded varnish cache statistics script and templates I did myself here http://forums.cacti.net/viewtopic.php?t=31260
Xumet
Posts: 18
Joined: Thu Mar 16, 2006 12:02 pm

Post by Xumet »

Hi! I've created a new template:

http://forums.cacti.net/viewtopic.php?p=182152
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests