|
@@ -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>
|