mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Fixes flow alerts missing from external alert endpoints
This commit is contained in:
parent
fc308260be
commit
d5df15d123
1 changed files with 4 additions and 0 deletions
|
|
@ -2833,6 +2833,10 @@ function processAlertNotifications(now, periodic_frequency, force_export)
|
|||
message.rowid = nil
|
||||
message.table_name = nil
|
||||
message = table.merge(message, res[1])
|
||||
|
||||
-- silly but necessary due to the AlertsManager::notifyFlowAlert
|
||||
message.alert_entity = alert_consts.alert_entities.flow.entity_id -- silly but necessary due to the AlertsManager::notifyFlowAlert
|
||||
message.alert_entity_val = "flow"
|
||||
json_message = json.encode(message)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue