mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Temporary fix for threshold value to nil
This commit is contained in:
parent
fe9e3a2ea8
commit
69ebe4e1a6
1 changed files with 4 additions and 0 deletions
|
|
@ -607,6 +607,10 @@ function alerts_api.checkThresholdAlert(params, alert_type, value, attacker, vic
|
|||
local alarmed = false
|
||||
local threshold = threshold_config.threshold or threshold_config.default_contacts
|
||||
|
||||
if not value or not threshold then
|
||||
return
|
||||
end
|
||||
|
||||
local alert = alert_type.new(
|
||||
params.user_script.key,
|
||||
value,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue