author | Florian Forster <octo@collectd.org> | |
Sat, 25 May 2013 18:15:59 +0000 (20:15 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Sat, 25 May 2013 18:15:59 +0000 (20:15 +0200) |
src/collectd.conf.pod | patch | blob | history | |
src/varnish.c | patch | blob | history |
diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod
index 18e7f53c78e1136d2903dac26abe61df9d23f989..58e104a4173b6bdde36dd562511435a4ba4864e0 100644 (file)
--- a/src/collectd.conf.pod
+++ b/src/collectd.conf.pod
=head2 Plugin C<varnish>
-The Varnish plugin collects information about Varnish, an HTTP accelerator.
+The I<varnish plugin> collects information about Varnish, an HTTP accelerator.
+
+Synopsis:
+
+ <Plugin "varnish">
+ <Instance "example">
+ CollectCache true
+ CollectConnections true
+ CollectBackend true
+ CollectSHM true
+ CollectESI false
+ CollectFetch false
+ CollectHCB false
+ CollectSMA false
+ CollectSMS false
+ CollectSM false
+ CollectTotals false
+ CollectWorkers false
+ </Instance>
+ </Plugin>
+
+The configuration consists of one or more E<lt>B<Instance>E<nbsp>I<Name>E<gt>
+blocks. I<Name> is the parameter passed to "varnishd -n". If left empty, it
+will collectd statistics from the default "varnishd" instance (this should work
+fine in most cases).
+
+Inside each E<lt>B<Instance>E<gt> blocks, the following options are recognized:
=over 4
diff --git a/src/varnish.c b/src/varnish.c
index 602f47af6231f59d40b51ccbd86800d1ca31bf3d..5de3389d862eb41828b5fb73a55f1d5fe2197104 100644 (file)
--- a/src/varnish.c
+++ b/src/varnish.c
else
{
WARNING ("Varnish plugin: Ignoring unknown "
- "configuration option: \"%s\"",
+ "configuration option: \"%s\". Did "
+ "you forget to add an <Instance /> "
+ "block around the configuration?",
child->key);
}
}