Reworks flow alerts with JSON and extra info

This commit is contained in:
Simone Mainardi 2017-12-13 20:18:39 +01:00
parent 40ee069b4e
commit aeeb0fa261
14 changed files with 160 additions and 194 deletions

View file

@ -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