mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Use process name and username as key instead of pid and uid
Names are more reliable across multiple machines
This commit is contained in:
parent
b691f4c5f5
commit
793dcab32c
12 changed files with 66 additions and 49 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue