mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 17:00:10 +00:00
Adds support for alert other issues stored in Clickhouse
Addresses #6065
This commit is contained in:
parent
3cb50f789b
commit
600a155a44
2 changed files with 14 additions and 2 deletions
|
|
@ -38,7 +38,13 @@ end
|
|||
interface.select(ifid)
|
||||
|
||||
-- Fetch the results
|
||||
local alerts, recordsFiltered = flow_alert_store:select_request(nil, "*, hex(alerts_map) alerts_map")
|
||||
local alerts, recordsFiltered
|
||||
if ntop.isClickHouseEnabled() then
|
||||
alerts, recordsFiltered = flow_alert_store:select_request(nil, "*")
|
||||
else
|
||||
-- SQLite need conversion to HEX
|
||||
alerts, recordsFiltered = flow_alert_store:select_request(nil, "*, hex(alerts_map) alerts_map")
|
||||
end
|
||||
|
||||
for _, _value in ipairs(alerts or {}) do
|
||||
res[#res + 1] = flow_alert_store:format_record(_value, no_html)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue