Remove historical flow explorer link for score alerts

Host having an high score does not imply that the host has alerted flows. When no
flow alerts are present, adding a link to the explorer is wrong.
This commit is contained in:
emanuele-f 2020-03-25 15:40:33 +01:00
parent 4ef8407386
commit 611dc3d499

View file

@ -147,8 +147,6 @@ for _key,_value in ipairs(alerts) do
if(ntop.isEnterprise()) then
if (status == "historical-flows") then
record["column_explorer"] = getExplorerLink(_value["cli_addr"], _value["srv_addr"], _value["alert_tstamp"])
elseif(_value["alert_subtype"] == "host_score") then
record["column_explorer"] = getExplorerLink(nil, hostkey2hostinfo(_value["alert_entity_val"]).host, _value["alert_tstamp"])
end
end