mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Fixes checks edition availability
This commit is contained in:
parent
3081d8d63b
commit
9fae2c44c9
1 changed files with 4 additions and 1 deletions
|
|
@ -617,11 +617,14 @@ local function init_check(check, mod_fname, full_path, script, script_type, subd
|
|||
check.default_enabled = ternary(check.default_enabled == false, false, true --[[ a nil value means enabled ]])
|
||||
check.script = script
|
||||
check.script_type = script_type
|
||||
check.edition = script and script.edition
|
||||
check.category = checkCategory(check.category)
|
||||
-- A user script is assumed to be able to generate alerts if it has a flag or an alert id specified
|
||||
check.num_filtered = tonumber(ntop.getCache(string.format(NUM_FILTERED_KEY, subdir, mod_fname))) or 0 -- math.random(1000,2000)
|
||||
|
||||
if script then
|
||||
check.edition = check.edition or script.edition or ""
|
||||
end
|
||||
|
||||
if subdir == "host" then
|
||||
check.hooks = {min = true}
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue