mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Use check_module key instead of script name
This commit is contained in:
parent
899b580cc4
commit
ee3a5e7413
2 changed files with 5 additions and 3 deletions
|
|
@ -814,7 +814,7 @@ function alerts_api.load_check_modules(subdir, str_granularity)
|
|||
local modname = string.sub(fname, 1, string.len(fname) - 4)
|
||||
local check_module = require(modname)
|
||||
|
||||
if check_module.check_function then
|
||||
if check_module.check_function and check_module.key then
|
||||
if check_module.granularity and str_granularity then
|
||||
-- When the module specify one or more granularities
|
||||
-- at which checks have to be run, the module is only
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue