mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Add require_attention to all alert families on SQLite. Cleanup SQLite schema
This commit is contained in:
parent
2da5925181
commit
6f9d0690c6
4 changed files with 127 additions and 104 deletions
|
|
@ -362,6 +362,7 @@ function alerts_api.trigger(entity_info, type_info, when, cur_alerts)
|
|||
|
||||
triggered.ifid = ifid
|
||||
triggered.action = "engage"
|
||||
triggered.require_attention = true
|
||||
|
||||
-- Emit the notification only if the notification hasn't already been emitted.
|
||||
-- This is to avoid alert storms when ntopng is restarted. Indeeed,
|
||||
|
|
@ -450,6 +451,7 @@ function alerts_api.release(entity_info, type_info, when, cur_alerts)
|
|||
|
||||
released.ifid = ifid
|
||||
released.action = "release"
|
||||
triggered.require_attention = true
|
||||
|
||||
addAlertPoolAndNetworkInfo(entity_info, released)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue