mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Migrate C flow status alerts to Lua user scripts
- Alerts and flow status cleanup - Community flow user scripts migration - Implement scripts filters by l7 proto and packet interface only - Migrate flow2statusinfojson - Lower flow periodic update to 30 seconds if there is flow activity - Display flow scripts without a gui section
This commit is contained in:
parent
bfdf5773d3
commit
b3a8c6d49a
37 changed files with 1071 additions and 1287 deletions
|
|
@ -237,9 +237,8 @@ for _key, value in ipairs(flows_stats) do -- pairsByValues(vals, funct) do
|
|||
|
||||
local column_proto_l4 = ''
|
||||
|
||||
-- NOTE: an alerted flow *may* have an invalid status set
|
||||
local status_info = flow_consts.getStatusDescription(value["flow.status"], flow2statusinfo(value))
|
||||
if value["flow.alerted"] then
|
||||
if value["alerted_status"] then
|
||||
local status_info = flow_consts.getStatusDescription(value["alerted_status"], flow2statusinfo(value))
|
||||
column_proto_l4 = "<i class='fa fa-warning' style='color: #B94A48' title='"..noHtml(status_info) .."'></i> "
|
||||
elseif value["status_map"] and value["flow.status"] ~= flow_consts.status_types.status_normal.status_id then
|
||||
local title = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue