luci-app-statistics: set logfile as first item in collectd.conf
Force logfile plugin to be evaluated first so that it gets placed first in the collectd.conf file. Reference to https://collectd.org/wiki/index.php/Plugin:LogFile Fixes #1219 Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
This commit is contained in:
parent
2dc60d2b44
commit
afa7a14caf
1 changed files with 3 additions and 1 deletions
|
@ -461,8 +461,10 @@ preprocess = {
|
||||||
|
|
||||||
section("collectd")
|
section("collectd")
|
||||||
|
|
||||||
|
section("logfile")
|
||||||
|
|
||||||
for plugin in pairs(plugins) do
|
for plugin in pairs(plugins) do
|
||||||
if plugin ~= "collectd" then
|
if (plugin ~= "collectd") and (plugin ~= "logfile") then
|
||||||
section( plugin )
|
section( plugin )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue