mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 17:00:10 +00:00
Fix flow and all alerts from SQLite
This commit is contained in:
parent
17178a1506
commit
a20cb09d4d
2 changed files with 15 additions and 5 deletions
|
|
@ -26,10 +26,16 @@ local all_alert_store = classes.class(alert_store)
|
|||
-- ##############################################
|
||||
|
||||
function all_alert_store:init(args)
|
||||
local table_name = "all_alerts"
|
||||
|
||||
self.super:init()
|
||||
|
||||
-- This is a VIEW, not a table, but still available in SQL
|
||||
self._table_name = "all_alerts_view"
|
||||
if ntop.isClickHouseEnabled() then
|
||||
table_name = "all_alerts_view"
|
||||
end
|
||||
|
||||
-- This is a VIEW, not a real table, but still available in SQL
|
||||
self._table_name = table_name
|
||||
self._alert_entity = nil -- No entity
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -28,12 +28,16 @@ local flow_alert_store = classes.class(alert_store)
|
|||
-- ##############################################
|
||||
|
||||
function flow_alert_store:init(args)
|
||||
local table_name = "flow_alerts"
|
||||
|
||||
self.super:init()
|
||||
|
||||
-- self._table_name = "flow_alerts"
|
||||
-- Alerts from historical flows (see also RecipientQueue::enqueue)
|
||||
self._table_name = "flow_alerts_view"
|
||||
if ntop.isClickHouseEnabled() then
|
||||
-- Alerts from historical flows (see also RecipientQueue::enqueue)
|
||||
table_name = "flow_alerts_view"
|
||||
end
|
||||
|
||||
self._table_name = table_name
|
||||
self._alert_entity = alert_entities.flow
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue