On Wed, 16 Nov 2011, Marc Fournier wrote:
Excerpts from Simon Lyall's message of Mon Nov 14 22:50:37 +0100 2011:

We're running collectd using version 4.10 from EPEL on RHEL/Centos.

There is a varnish plugin recently released with collectd but it requires
version 5.10 of collectd which is fairly recently released and doesn't
have rpms (I'd prefer not to build my own).

1. I was wondering if anybody has a backported varnish plugin for collectd
    4.10 or any other solution? I came across this post in the archives:

I have done exactly this a few months ago. I just pushed the patch to:
https://github.com/mfournier/collectd/tree/varnish-on-4.10.2

Not sure if the plugin is up to date with the one found in 5.x though...

Thanks Marc, I didn't have any luck getting the plugin to work (it worked enough to complain when I did syntax errors but didn't output any data and there are some problems with running the python plugin so I eneded up writing a little script in bash and running it via the collectd exec plugin.

I've attached it in case anyone wants it. Seems to work and should be compatable with the 5.x collectd plugin (see evil 1-liner in the script).

--
Simon Lyall  |  Very Busy  |  Web: http://www.darkmere.gen.nz/
"To stay awake all night adds a day to your life" - Stilgar | eMT.

Attachment: varnish-collectd.sh
Description: Bourne shell script

_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to