mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Define new alert cloud_disconnected
This commit is contained in:
parent
d8955d355f
commit
dab5aeba99
6 changed files with 81 additions and 1 deletions
|
|
@ -130,6 +130,10 @@ local function processStoreAlertFromQueue(alert)
|
|||
alert.dropped)
|
||||
|
||||
type_info:set_score_error()
|
||||
elseif (alert.alert_id == "cloud_disconnected") then
|
||||
entity_info = alert_entity_builders.systemEntity("cloud")
|
||||
type_info = alert_consts.alert_types.alert_cloud_disconnected.new()
|
||||
type_info:set_score_warning()
|
||||
else
|
||||
traceError(TRACE_ERROR, TRACE_CONSOLE, "Unknown alert type " .. (alert.alert_id or ""))
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue