mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Fixes triggere/release of alerts at mixed granularities
This commit is contained in:
parent
fa10f4b6e1
commit
ab1687fb44
3 changed files with 9 additions and 6 deletions
|
|
@ -49,14 +49,15 @@ function checkAlerts(granularity)
|
|||
return
|
||||
end
|
||||
|
||||
local granularity_id = alert_consts.alerts_granularities[granularity].granularity_id
|
||||
local suppressed_alerts = interface.hasAlertsSuppressed()
|
||||
|
||||
if suppressed_alerts then
|
||||
releaseAlerts(granularity)
|
||||
releaseAlerts(granularity_id)
|
||||
end
|
||||
|
||||
local info = interface.getStats()
|
||||
local cur_alerts = interface.getAlerts(granularity)
|
||||
local cur_alerts = interface.getAlerts(granularity_id)
|
||||
local ifid = interface.getId()
|
||||
local interface_key = "iface_"..ifid
|
||||
local interface_config = config_alerts[interface_key] or {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue