Implements DB interoperability b/w ntopng and nProbe

This commit is contained in:
Simone Mainardi 2017-08-11 16:51:10 +02:00
parent e0d7ac9ade
commit a86f3dd36e
10 changed files with 117 additions and 11 deletions

View file

@ -176,7 +176,13 @@ else
flow["PROTOCOL"] = base.."&protocol=&port=&host=&l4proto="..flow["PROTOCOL"].."'>"..pname.."</A>"
flow["L7_PROTO"] = base.."&port=&host=&l4proto=&protocol="..flow["L7_PROTO"].."'>"..getApplicationLabel(interface.getnDPIProtoName(tonumber(flow["L7_PROTO"]))).."</A>"
flow["FLOW_URL"] = base.."&row_id="..flow["idx"].."&version="..ip_version.."'><span class='label label-info'>Info</span></A>"
-- nProbe/related database doesn't handle idx so we have to disable the info
if flow["idx"] ~= "-1" then
flow["FLOW_URL"] = base.."&row_id="..flow["idx"].."&version="..ip_version.."'><span class='label label-info'>Info</span></A>"
else
flow["FLOW_URL"] = "<span class='label label-default'>Info</span></A>"
end
if flow["PROFILE"] ~= nil and flow["PROFILE"] ~="" then
flow["INFO"] = "<span class='label label-primary'>"..flow["PROFILE"].."</span>&nbsp;"..flow["INFO"]