mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Use new user scripts config and gui
The user scripts configuration can now be configured from the "User Scripts" entry under the cog icon. It allows the creation of multiple configuration presets to be applied to hosts, networks and interfaces.
This commit is contained in:
parent
538ebc741a
commit
d037f9a9a4
18 changed files with 533 additions and 542 deletions
|
|
@ -38,9 +38,17 @@ end
|
|||
|
||||
-- The function below ia called once (#pragma once)
|
||||
function teardown()
|
||||
local all_modules = syslog_modules.modules
|
||||
|
||||
for mod_name, syslog_module in pairs(syslog_modules) do
|
||||
local script = all_modules[mod_name]
|
||||
|
||||
if syslog_module.teardown ~= nil then
|
||||
syslog_module.teardown()
|
||||
local conf = user_scripts.getTargetHookConfig(syslog_conf, script)
|
||||
|
||||
if conf.enabled then
|
||||
syslog_module.teardown(conf.script_conf)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue