mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Minor fix to improve robustness of alerts re arming
This commit is contained in:
parent
2ec5c8e798
commit
64e98766e7
1 changed files with 2 additions and 1 deletions
|
|
@ -158,7 +158,8 @@ function re_arm_alert(alarm_source, timespan, alarmed_metric, ifname)
|
|||
end
|
||||
if verbose then io.write('re_arm_minutes: '..re_arm_minutes..'\n') end
|
||||
-- we don't care about key contents, we just care about its exsistance
|
||||
ntop.setCache(re_arm_key, "dummy", re_arm_minutes * 60)
|
||||
ntop.setCache(re_arm_key, "dummy",
|
||||
re_arm_minutes * 60 - 5 --[[ subtract 5 seconds to make sure the limit is obeyed --]])
|
||||
end
|
||||
|
||||
function is_alert_re_arming(alarm_source, timespan, alarmed_metric, ifname)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue