Git Product home page Git Product logo

Comments (4)

viable-hartman avatar viable-hartman commented on September 27, 2024

Just a follow up strings on the Varnish 5.2.1 api lib shows:

strings /lib64/libvarnishapi.so.1.0.6 | grep LIBVARNISHAPI
LIBVARNISHAPI_2.0
LIBVARNISHAPI_2.0

...so /lib64/libvarnishapi.so.1: version `LIBVARNISHAPI_1.0' will of course fail, but the merged pull request here: #134 seems to indicate this should work for 5.2, but I'm not sure how that's possible when 5.2 uses LIBVARNISHAPI_2.0 and the stackdriver agent is still looking for LIBVARNISHAPI_1.0

from collectd.

viable-hartman avatar viable-hartman commented on September 27, 2024

Just another follow up, I think the issue is that your version of the stackdriver varnish.so plugin is compiled against the wrong varnish libs. I extracted the varnish.so lib from this Fedora RPM, http://download-ib01.fedoraproject.org/pub/fedora/linux/updates/29/Everything/x86_64/Packages/c/collectd-varnish-5.8.1-1.fc29.x86_64.rpm,

and it works just fine with my Varnish 5.2.1 and appears to reference the correct lib LIBVARNISHAPI_2.0

from collectd.

viable-hartman avatar viable-hartman commented on September 27, 2024

I just confirmed. It looks like the varnish.so library deployed with stackdriver collectd is compiled against Varnish 3 or 4. I compiled it against Varnish 5 loaded as follows:

Add in the varnish 5 repo.

curl -s https://packagecloud.io/install/repositories/varnishcache/varnish5/script.rpm.sh | bash

Add varnish 5 and libraries needed for collectd compile...

yum -y update
&& yum -y install varnish varnish-devel varnish-libs varnish-libs-devel varnish-modules

Compile Collectd

cd /tmp
&& git clone https://github.com/stackdriver/collectd.git
&& cd collectd/
&& ./build.sh
&& ./configure --prefix=/opt/stackdriver/collectd --enable-varnish
&& make
&& make install
&& rm -rf /tmp/collectd
&& mv /opt/stackdriver/collectd/lib/collectd/varnish.so /root/build/varnish.so

and varnish.so is just fine. So its definitely the version of Varnish libs compiled against.

from collectd.

jkohen avatar jkohen commented on September 27, 2024

I'm glad you were able to solve the issue. Support for Varnish in our agent has been deprecated, so we won't be updating the plugin for Varnish 5. For more details, see https://cloud.google.com/monitoring/agent/plugins/varnish

from collectd.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.