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
Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit afa7a14caf
)
This commit is contained in:
parent
a9bddc408a
commit
d2dc32af31
1 changed files with 3 additions and 1 deletions
|
@ -467,8 +467,10 @@ preprocess = {
|
|||
|
||||
section("collectd")
|
||||
|
||||
section("logfile")
|
||||
|
||||
for plugin in pairs(plugins) do
|
||||
if plugin ~= "collectd" then
|
||||
if (plugin ~= "collectd") and (plugin ~= "logfile") then
|
||||
section( plugin )
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue