From 1accd8a4d039a9accc4f06140e59cd853590f846 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Wed, 4 Nov 2015 15:11:32 +0200 Subject: [PATCH] Collectd config --- Rakefile | 1 + files/all/etc/collectd.conf | 90 +++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 files/all/etc/collectd.conf diff --git a/Rakefile b/Rakefile index be80a09..c2d31b3 100644 --- a/Rakefile +++ b/Rakefile @@ -29,6 +29,7 @@ end task :hostname, [:name] do |t, args| `sed -i "s//#{args.name}/g" #{OUT_DIR}/#{args.name}/files/etc/config/system` + `sed -i "s//#{args.name}/g" #{OUT_DIR}/#{args.name}/files/etc/collectd.conf` end task :config, [:name] do |t, args| diff --git a/files/all/etc/collectd.conf b/files/all/etc/collectd.conf new file mode 100644 index 0000000..994069d --- /dev/null +++ b/files/all/etc/collectd.conf @@ -0,0 +1,90 @@ +# +# OpenWrt Config file for collectd(1). +# Please read collectd.conf(5) for a list of options. +# http://collectd.org/ +# + +Hostname "" +#FQDNLookup true +BaseDir "/var/lib/collectd" +PIDFile "/var/run/collectd.pid" +#PluginDir "/usr/lib/collectd" +#TypesDB "/usr/share/collectd/types.db" +Interval 10 +ReadThreads 2 + +#LoadPlugin syslog +#LoadPlugin logfile + +# +# LogLevel info +# + +# +# LogLevel info +# File STDOUT +# Timestamp true +# + +LoadPlugin cpu +#LoadPlugin df +#LoadPlugin disk +LoadPlugin interface +LoadPlugin load +#LoadPlugin memory +LoadPlugin network +#LoadPlugin ping +#LoadPlugin processes +#LoadPlugin rrdtool +#LoadPlugin serial +LoadPlugin iwinfo + +# +# FSType tmpfs +# IgnoreSelected true +# ReportByDevice false +# ReportReserved false +# ReportInodes false +# + +# +# Disk "/^[hs]d[a-f][0-9]?$/" +# IgnoreSelected false +# + +# +# Interface "eth0" +# Interface "br-lan" +# IgnoreSelected false +# + + +# Server "ff18::efc0:4a42" "25826" + Server "10.100.0.1" +# Listen "ff18::efc0:4a42" "25826" +# Listen "239.192.74.66" "25826" +# TimeToLive "128" +# Forward false +# CacheFlush 20 + ReportStats true + + +# +# Host "host.foo.bar" +# Interval 1.0 +# Timeout 0.9 +# TTL 255 +# SourceAddress "1.2.3.4" +# Device "eth0" +# MaxMissed -1 +# + +# +# Process "name" +# + +# +# DataDir "/var/lib/collectd/rrd" +# CacheTimeout 120 +# CacheFlush 900 +#