mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Add support for custom flow alerts in user scripts
This commit is contained in:
parent
862bc0dddd
commit
2fdc860ed2
11 changed files with 222 additions and 38 deletions
|
|
@ -2638,7 +2638,7 @@ function getFlowStatus(status, flowstatus_info, alert, no_icon)
|
|||
elseif(status == flow_consts.status_normal) then
|
||||
res = i18n(flow_consts.flow_status_types[flow_consts.status_normal].i18n_title)
|
||||
elseif(flow_consts.flow_status_types[status] ~= nil) then
|
||||
res = i18n(flow_consts.flow_status_types[status].i18n_title)
|
||||
res = i18n(flow_consts.flow_status_types[status].i18n_title) or flow_consts.flow_status_types[status].i18n_title
|
||||
end
|
||||
|
||||
return res
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue