diff options
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | 2013-04-28 16:10:47 +0200 |
---|---|---|
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | 2013-04-28 16:10:47 +0200 |
commit | 6a3c0b7a378345df71c5c8a68affdc652195a93e (patch) | |
tree | a415331c447d71eb4266b6a5942d8621fc5ec86a | |
parent | 8d6e19d19fd932849769a43f0861d90c44199f2b (diff) | |
download | collectd-6a3c0b7a378345df71c5c8a68affdc652195a93e.tar.gz collectd-6a3c0b7a378345df71c5c8a68affdc652195a93e.tar.xz collectd-6a3c0b7a378345df71c5c8a68affdc652195a93e.zip |
Uee external config file for rrdtool plugin
-rw-r--r-- | collectd.spec | 14 | ||||
-rw-r--r-- | rrdtool.conf | 6 |
2 files changed, 10 insertions, 10 deletions
diff --git a/collectd.spec b/collectd.spec index 466e549..b3b0f50 100644 --- a/collectd.spec +++ b/collectd.spec @@ -19,6 +19,7 @@ Source93: mysql.conf Source94: nginx.conf Source95: sensors.conf Source96: snmp.conf +Source97: rrdtool.conf Patch0: %{name}-include-collectd.d.patch @@ -428,26 +429,19 @@ cp %{SOURCE93} %{buildroot}%{_sysconfdir}/collectd.d/mysql.conf cp %{SOURCE94} %{buildroot}%{_sysconfdir}/collectd.d/nginx.conf cp %{SOURCE95} %{buildroot}%{_sysconfdir}/collectd.d/sensors.conf cp %{SOURCE96} %{buildroot}%{_sysconfdir}/collectd.d/snmp.conf +cp %{SOURCE97} %{buildroot}%{_sysconfdir}/collectd.d/rrdtool.conf # configs for subpackaged plugins %ifnarch s390 s390x -for p in dns ipmi libvirt nut perl ping postgresql rrdtool +for p in dns ipmi libvirt nut perl ping postgresql %else -for p in dns ipmi libvirt perl ping postgresql rrdtool +for p in dns ipmi libvirt perl ping postgresql %endif do %{__cat} > %{buildroot}%{_sysconfdir}/collectd.d/$p.conf <<EOF LoadPlugin $p EOF done -%{__cat} >> %{buildroot}%{_sysconfdir}/collectd.d/rrdtool.conf <<EOF -<Plugin rrdtool> - DataDir "/var/lib/collectd/rrd" - CacheTimeout 120 - CacheFlush 900 -</Plugin> -EOF - # *.la files shouldn't be distributed. rm -f %{buildroot}/%{_libdir}/{collectd/,}*.la diff --git a/rrdtool.conf b/rrdtool.conf new file mode 100644 index 0000000..f58406c --- /dev/null +++ b/rrdtool.conf @@ -0,0 +1,6 @@ +LoadPlugin rrdtool +<Plugin rrdtool> + DataDir "/var/lib/collectd/rrd" + CacheTimeout 120 + CacheFlush 900 +</Plugin> |