pkgs/openwrt/uci-config: add /etc/collectd.conf
This commit is contained in:
parent
b595016136
commit
3ce7ee7411
|
@ -324,6 +324,27 @@ in
|
||||||
__SH__
|
__SH__
|
||||||
chmod a+rx /usr/sbin/wifi-on-link.sh
|
chmod a+rx /usr/sbin/wifi-on-link.sh
|
||||||
/etc/init.d/cron restart
|
/etc/init.d/cron restart
|
||||||
|
|
||||||
|
cat > /etc/collectd.conf <<COLLECTD
|
||||||
|
Hostname "${hostName}"
|
||||||
|
FQDNLookup false
|
||||||
|
Interval 10
|
||||||
|
|
||||||
|
BaseDir "/var/run/collectd"
|
||||||
|
Include "/etc/collectd/conf.d"
|
||||||
|
PIDFile "/var/run/collectd.pid"
|
||||||
|
PluginDir "/usr/lib/collectd"
|
||||||
|
TypesDB "/usr/share/collectd/types.db"
|
||||||
|
|
||||||
|
LoadPlugin cpu
|
||||||
|
LoadPlugin load
|
||||||
|
LoadPlugin interface
|
||||||
|
LoadPlugin iwinfo
|
||||||
|
LoadPlugin network
|
||||||
|
<Plugin network>
|
||||||
|
Server "${config.site.net.serv.hosts6.dn42.stats}" "25826"
|
||||||
|
</Plugin>
|
||||||
|
COLLECTD
|
||||||
''}
|
''}
|
||||||
|
|
||||||
for svc in dnsmasq uhttpd ; do
|
for svc in dnsmasq uhttpd ; do
|
||||||
|
|
Loading…
Reference in New Issue
Block a user