Fixes for the 'all' hook

This commit is contained in:
emanuele-f 2020-01-22 16:54:33 +01:00
parent 76c4736b73
commit eafa80da09
5 changed files with 21 additions and 6 deletions

View file

@ -10,5 +10,4 @@ if ntop.isPro() then
require "5min"
end
-- Run hourly scripts
ntop.checkSystemScripts5Min()

View file

@ -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

View file

@ -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

View file

@ -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")