Added semi-permanent thpt stats to interface

This commit is contained in:
MatteoBiscosi 2021-12-21 22:37:55 +01:00
parent 6ff500f9f8
commit be9d3b5560
9 changed files with 144 additions and 6 deletions

View file

@ -188,6 +188,14 @@ function dumpInterfaceStats(ifid)
},
}
local download_stats = ifstats["stats"]["download_stats"]
local upload_stats = ifstats["stats"]["upload_stats"]
res["download_upload_chart"] = {
download = download_stats,
upload = upload_stats,
}
if ntop.isnEdge() and ifstats.type == "netfilter" and ifstats.netfilter then
res["netfilter"] = ifstats.netfilter
end