mirror of
https://github.com/ntop/ntopng.git
synced 2026-08-22 06:43:23 +00:00
Visualises traffic profile information on historical tables
Traffic profile is queried from the database and possibly shown as an extra field in the INFO column for historical data
This commit is contained in:
parent
82ef2489a9
commit
1ba346fc46
3 changed files with 9 additions and 3 deletions
|
|
@ -44,7 +44,9 @@ function getInterfaceTopFlows(interface_id, version, host_or_profile, l7proto, l
|
|||
sql = "select IP_SRC_ADDR, IP_DST_ADDR"
|
||||
end
|
||||
|
||||
follow = " ,L4_SRC_PORT,L4_DST_PORT,VLAN_ID,PROTOCOL,FIRST_SWITCHED,LAST_SWITCHED,PACKETS,BYTES,idx,L7_PROTO,INFO from flowsv"..version.."_"..interface_id.." where FIRST_SWITCHED <= "..end_epoch.." and FIRST_SWITCHED >= "..begin_epoch
|
||||
follow = " ,L4_SRC_PORT,L4_DST_PORT,VLAN_ID,PROTOCOL,FIRST_SWITCHED,LAST_SWITCHED,PACKETS,BYTES,idx,L7_PROTO,INFO"
|
||||
if ntop.isPro() then follow = follow..",PROFILE" end
|
||||
follow = follow.." from flowsv"..version.."_"..interface_id.." where FIRST_SWITCHED <= "..end_epoch.." and FIRST_SWITCHED >= "..begin_epoch
|
||||
|
||||
if((l7proto ~= "") and (l7proto ~= "-1")) then follow = follow .." AND L7_PROTO="..l7proto end
|
||||
if((l4proto ~= "") and (l4proto ~= "-1")) then follow = follow .." AND PROTOCOL="..l4proto end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue