summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8e50e5d)
raw | patch | inline | side by side (parent: 8e50e5d)
author | Jonathan Huot <jonathan.huot@gmail.com> | |
Thu, 2 Aug 2012 15:56:05 +0000 (18:56 +0300) | ||
committer | Florian Forster <octo@collectd.org> | |
Sun, 26 Aug 2012 05:56:40 +0000 (07:56 +0200) |
Fixed issue collectd#110
Signed-off-by: Florian Forster <octo@collectd.org>
Signed-off-by: Florian Forster <octo@collectd.org>
src/varnish.c | patch | blob | history |
diff --git a/src/varnish.c b/src/varnish.c
index 357b5f11d0033d7f7efd1384e7ce666ba2bf3a70..de60e39c7b21759f0fdefb062d3d74475df90fed 100644 (file)
--- a/src/varnish.c
+++ b/src/varnish.c
vd = VSM_New();
VSC_Setup(vd);
+ if (VSM_n_Arg(vd, conf->instance) == -1)
+ {
+ ERROR ("Varnish plugin : unable to load statistics from instance");
+ return (-1);
+ }
if (VSC_Open (vd, /* diag = */ 1))
{
ERROR ("varnish plugin: Unable to load statistics.");