[collectd] Varnish plugin

Marc Fournier marc.fournier at camptocamp.com
Tue Jun 8 10:45:51 CEST 2010


Hello,

> Other than that, there are two new "features": The configure script now
> uses pkg-config to determine the correct C- and LD-flags. Unfortunately,
> the Debian package is broken in this respect so that building under
> Debian currently needs some hands-on hacking fixing. I opened bug
> reports but I doubt this will be fixed soon – a similar bug report has
> been open since November 2009 :(

I'm no longer able to build the varnish plugin using your branch. I suppose
this is related to this issue you mention ?

A few relevant pieces below:

$ git checkout 24da3d76
Previous HEAD position was e73f418... Varnish plugin: Added SM Monitor
HEAD is now at 24da3d7... configure.in: Use pkg-config to check for libvarnishapi.
$ ./build.sh
+ autoheader
+ aclocal
+ libtoolize --ltdl --copy --force
+ automake --add-missing --copy
+ autoconf

$ ./configure --prefix /opt/collectd --disable-all-plugins --enable-varnish
[...]
    libvarnish  . . . . . no (symbol VSL_OpenStats not found)
[...]
    varnish . . . . . . . no (dependency error)
[...]
configure: error: "Some plugins are missing dependencies - see the summary above for details"

$ ./configure --prefix /opt/collectd --disable-all-plugins --enable-varnish --with-libvarnish=/usr/include/
[...]
    libvarnish  . . . . . /usr/include/
[...]
    varnish . . . . . . . no (dependency error)
[...]
configure: error: "Some plugins are missing dependencies - see the summary above for details"

$ rpm -ql varnish-libs-devel-2.1.2-1.el5
/usr/include/varnish
/usr/include/varnish/shmlog.h
/usr/include/varnish/shmlog_tags.h
/usr/include/varnish/stat_field.h
/usr/include/varnish/stats.h
/usr/include/varnish/varnishapi.h
/usr/lib64/libvarnish.so
/usr/lib64/libvarnishapi.so
/usr/lib64/libvarnishcompat.so
/usr/lib64/libvcl.so
/usr/lib64/pkgconfig/varnishapi.pc
/usr/share/doc/varnish-libs-devel-2.1.2
/usr/share/doc/varnish-libs-devel-2.1.2/LICENSE

$ pkg-config --libs varnishapi
-lvarnishapi

$ grep VSL_OpenStats /usr/include/varnish/*
/usr/include/varnish/varnishapi.h:struct varnish_stats *VSL_OpenStats(const char *varnish_name);


This problem occurs on RHEL 5.5 (latest stable release) as well as debian
squeeze (testing).

Can you elaborate on the "hands-on fixing" you mentioned ?


> Unfortunately I'm flying blind because I don't have a Varnish instance
> running anywhere. It'd be awesome if you could test the changes for me.

I was about to do that, when I run into this build problem ;-)
I'll test Jérôme's branch meanwhile and let you know of any other issues I
encounter.

Marc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20100608/ae7a1e6c/attachment.pgp 


More information about the collectd mailing list