summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cd0fc3a)
raw | patch | inline | side by side (parent: cd0fc3a)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 27 Feb 2007 21:13:18 +0000 (22:13 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 27 Feb 2007 21:13:18 +0000 (22:13 +0100) |
.. and the sample config file.
src/collectd.conf.in | patch | blob | history | |
src/collectd.conf.pod | patch | blob | history |
diff --git a/src/collectd.conf.in b/src/collectd.conf.in
index 90e20bad1809ba6c8d630d2df309834d79f0a04c..c564ee2e896fcf61438e6e3305f663d07d227b17 100644 (file)
--- a/src/collectd.conf.in
+++ b/src/collectd.conf.in
#Server ff18::efc0:4a42 25826
#Server 239.192.74.66 25826
-#BaseDir /opt/collectd/var/lib/collectd
-#PIDFile /opt/collectd/var/run/collectd.pid
-#PluginDir /opt/collectd/lib/collectd
+#BaseDir "/opt/collectd/var/lib/collectd"
+#PIDFile "/opt/collectd/var/run/collectd.pid"
+#PluginDir "/opt/collectd/lib/collectd"
@BUILD_MODULE_APACHE_TRUE@LoadPlugin apache
@BUILD_MODULE_APCUPS_TRUE@LoadPlugin apcups
#<Plugin rrdtool>
# CacheTimeout 120
+# CacheFlush 900
+# DataDir "/opt/collectd/var/lib/collectd"
#</Plugin>
## There are two different naming schemes for the sensors plugin, to preserver
diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod
index 5cedace7e6f2fa3346c531ebbbf18f20256991d7..b25384c4ad27d602036491f35e8a21c0c9ec98e0 100644 (file)
--- a/src/collectd.conf.pod
+++ b/src/collectd.conf.pod
=over 4
+=item B<CacheFlush> I<Seconds>
+
+When the C<rrdtool plugin> uses a cache (by setting B<CacheTimeout>, see below)
+it writes all values for a certain RRD-file if the oldest value is older than
+(or equal to) the number of seconds specified. If some RRD-file is not updated
+anymore for some reason (the computer was shut down, the network is broken,
+etc.) some values may still be in the cache. If B<CacheFlush> is set, then the
+entire cache is searched for entries older than B<CacheTimeout> seconds and
+written to disk every I<Seconds> seconds. Since this is kind of expensive and
+does nothing under normal circumstances, this value should not be too small.
+900 seconds might be a good value, though setting this to 7200 seconds doesn't
+normally do much harm either.
+
=item B<CacheTimeout> I<Seconds>
-If this option is set to a value greater than zero, the C<rrdtool>-plugin will
-write values every I<Seconds> seconds to the RRD-files. Writing multiple values
-at once reduces IO-operations and thus lessens the load produced by updating
-the files. The tradeoff is that the graphs kind of "drag behind" and that more
-memory is used.
+If this option is set to a value greater than zero, the C<rrdtool plugin> will
+save values in a cache, as described above. Writing multiple values at once
+reduces IO-operations and thus lessens the load produced by updating the files.
+The tradeoff is that the graphs kind of "drag behind" and that more memory is
+used.
=item B<DataDir> I<Directory>