mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-21 01:54:34 +00:00
Fixes for the 'all' hook
This commit is contained in:
parent
76c4736b73
commit
eafa80da09
5 changed files with 21 additions and 6 deletions
|
|
@ -10,5 +10,4 @@ if ntop.isPro() then
|
|||
require "5min"
|
||||
end
|
||||
|
||||
-- Run hourly scripts
|
||||
ntop.checkSystemScripts5Min()
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ local function snmp_device_run_user_scripts(snmp_device)
|
|||
granularity = granularity,
|
||||
alert_entity = iface_entity,
|
||||
user_script = script,
|
||||
conf = conf,
|
||||
conf = conf.script_conf,
|
||||
}))
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ for hook, config in pairs(hooks_config) do
|
|||
end
|
||||
|
||||
result.hooks[hook] = table.merge(config, {
|
||||
label = label,
|
||||
label = label or "",
|
||||
})
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ ntop.checkSystemScriptsMin()
|
|||
--require "snmp_utils"
|
||||
--run_5min_snmp_caching(600)
|
||||
--dofile(dirs.installdir .. "/pro/scripts/callbacks/system/5min.lua")
|
||||
--ntop.checkSNMPDeviceAlerts5Min()
|
||||
ntop.checkSNMPDeviceAlerts5Min()
|
||||
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/footer.lua")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue