mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Reworks flow alerts with JSON and extra info
This commit is contained in:
parent
40ee069b4e
commit
aeeb0fa261
14 changed files with 160 additions and 194 deletions
|
|
@ -1162,6 +1162,9 @@ function getFlowLabel(flow, show_macs, add_hyperlinks)
|
|||
if(flow["cli.systemhost"] == true) then
|
||||
cli_name = cli_name.." <i class='fa fa-flag' aria-hidden='true'></i>"
|
||||
end
|
||||
if(flow["cli.blacklisted"] == true) then
|
||||
cli_name = cli_name.." <i class='fa fa-ban' aria-hidden='true' title='Blacklisted'></i>"
|
||||
end
|
||||
cli_name = cli_name.."</A>"
|
||||
|
||||
srv_name = "<A HREF=\""..ntop.getHttpPrefix().."/lua/host_details.lua?"..hostinfo2url(flow,"srv") .. "\">"
|
||||
|
|
@ -1169,6 +1172,9 @@ function getFlowLabel(flow, show_macs, add_hyperlinks)
|
|||
if(flow["srv.systemhost"] == true) then
|
||||
srv_name = srv_name.." <i class='fa fa-flag' aria-hidden='true'></i>"
|
||||
end
|
||||
if(flow["srv.blacklisted"] == true) then
|
||||
srv_name = srv_name.." <i class='fa fa-ban' aria-hidden='true' title='Blacklisted'></i>"
|
||||
end
|
||||
srv_name = srv_name.."</A>"
|
||||
|
||||
if cli_port then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue