Browse Source

Merge pull request #1736 from hnyman/conf-collectd

collectd: Clarify config file example/placeholder
Jo-Philipp Wich 9 years ago
parent
commit
12aa19a9bc
2 changed files with 25 additions and 76 deletions
  1. 1
    1
      utils/collectd/Makefile
  2. 24
    75
      utils/collectd/files/collectd.conf

+ 1
- 1
utils/collectd/Makefile View File

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
9 9
 
10 10
 PKG_NAME:=collectd
11 11
 PKG_VERSION:=5.5.0
12
-PKG_RELEASE:=3
12
+PKG_RELEASE:=4
13 13
 
14 14
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 15
 PKG_SOURCE_URL:=http://collectd.org/files/

+ 24
- 75
utils/collectd/files/collectd.conf View File

@@ -1,90 +1,39 @@
1
-#
2
-# OpenWrt Config file for collectd(1).
3
-# Please read collectd.conf(5) for a list of options.
4
-# http://collectd.org/
5
-#
1
+# Config file for collectd. More info: https://collectd.org/
2
+# Note: Luci statistics will generate a new config and overwrite this file.
6 3
 
7 4
 #Hostname   "localhost"
8 5
 #FQDNLookup  true
9
-BaseDir     "/var/lib/collectd"
10
-PIDFile     "/var/run/collectd.pid"
11
-#PluginDir  "/usr/lib/collectd"
12
-#TypesDB    "/usr/share/collectd/types.db"
6
+BaseDir "/var/run/collectd"
7
+Include "/etc/collectd/conf.d"
8
+PIDFile "/var/run/collectd.pid"
9
+PluginDir "/usr/lib/collectd"
10
+TypesDB "/usr/share/collectd/types.db"
13 11
 Interval    30
14 12
 ReadThreads 2
15 13
 
16
-#LoadPlugin syslog
17
-#LoadPlugin logfile
18
-
19
-#<Plugin syslog>
20
-#	LogLevel info
21
-#</Plugin>
22
-
23
-#<Plugin logfile>
24
-#	LogLevel info
25
-#	File STDOUT
26
-#	Timestamp true
27
-#</Plugin>
28
-
29
-LoadPlugin cpu
30
-LoadPlugin df
31
-LoadPlugin disk
32 14
 LoadPlugin interface
33 15
 LoadPlugin load
34
-LoadPlugin memory
35
-LoadPlugin network
36 16
 #LoadPlugin ping
37
-#LoadPlugin processes
38
-#LoadPlugin rrdtool
39
-#LoadPlugin serial
40
-LoadPlugin wireless
41
-
42
-#<Plugin df>
43
-#	FSType tmpfs
44
-#	IgnoreSelected true
45
-#	ReportByDevice false
46
-#	ReportReserved false
47
-#	ReportInodes false
48
-#</Plugin>
49
-
50
-#<Plugin disk>
51
-#	Disk "/^[hs]d[a-f][0-9]?$/"
52
-#	IgnoreSelected false
53
-#</Plugin>
54
-
55
-#<Plugin interface>
56
-#	Interface "eth0"
57
-#	Interface "br-lan"
58
-#	IgnoreSelected false
59
-#</Plugin>
17
+LoadPlugin rrdtool
18
+
19
+<Plugin rrdtool>
20
+	DataDir "/tmp/rrd"
21
+	RRARows 100
22
+	RRASingle true
23
+	RRATimespan 3600
24
+	RRATimespan 86400
25
+	RRATimespan 604800
26
+	RRATimespan 2678400
27
+	RRATimespan 31622400
28
+</Plugin>
60 29
 
61
-<Plugin network>
62
-#	Server "ff18::efc0:4a42" "25826"
63
-	Server "239.192.74.66" "25826"
64
-#	Listen "ff18::efc0:4a42" "25826"
65
-#	Listen "239.192.74.66" "25826"
66
-#	TimeToLive "128"
67
-#	Forward false
68
-#	CacheFlush 1800
69
-#	ReportStats false
30
+<Plugin interface>
31
+	IgnoreSelected false
32
+	Interface "br-lan"
70 33
 </Plugin>
71 34
 
72 35
 #<Plugin ping>
73 36
 #	Host "host.foo.bar"
74
-#	Interval 1.0
75
-#	Timeout 0.9
76
-#	TTL 255
77
-#	SourceAddress "1.2.3.4"
78
-#	Device "eth0"
79
-#	MaxMissed -1
80
-#</Plugin>
81
-
82
-#<Plugin processes>
83
-#	Process "name"
84
-#</Plugin>
85
-
86
-#<Plugin rrdtool>
87
-#	DataDir "/var/lib/collectd/rrd"
88
-#	CacheTimeout 120
89
-#	CacheFlush   900
37
+#	Interval 30
38
+#	TTL 127
90 39
 #</Plugin>