Use process name and username as key instead of pid and uid

Names are more reliable across multiple machines
This commit is contained in:
emanuele-f 2019-05-30 18:04:38 +02:00
parent b691f4c5f5
commit 793dcab32c
12 changed files with 66 additions and 49 deletions

View file

@ -54,10 +54,10 @@ local traffic_profile = _GET["traffic_profile"]
-- System host parameters
local hosts = _GET["hosts"]
local user = _GET["username"]
local username = _GET["username"]
local host = _GET["host"]
local pid = tonumber(_GET["pid"])
local name = _GET["pid_name"]
local pid_name = _GET["pid_name"]
-- Get from redis the throughput type bps or pps
local throughput_type = getThroughputType()
@ -173,12 +173,12 @@ if not isEmptyString(vlan) then
pageinfo["vlanIdFilter"] = tonumber(vlan)
end
if not isEmptyString(uid) then
pageinfo["uidFilter"] = tonumber(uid)
if not isEmptyString(username) then
pageinfo["usernameFilter"] = username
end
if not isEmptyString(pid) then
pageinfo["pidFilter"] = tonumber(pid)
if not isEmptyString(pid_name) then
pageinfo["pidnameFilter"] = pid_name
end
if not isEmptyString(container) then