Comments (4)
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.
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.
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.
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)
- Recover from transient GCE metadata server failures HOT 8
- Please submit mongodb collectd plugin changes upstream HOT 10
- set monitored resource in stackdriver agent HOT 1
- Support for Debian 10 buster? HOT 8
- No data is available in the monitoring HOT 8
- Exception collecting Disk metrics: ZeroDivisionError('float division by zero',)
- write_gcm: Server response (CollectdTimeseriesRequest) contains errors
- Arch install fail: "This version of libsensors is not supported yet. Please report this." lm_sensors = 3.6.0 HOT 1
- Error write_gcm: can not take infinite value for swap/percent/value on machines without swap
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from collectd.