Implement eBPF flows view and improve containers/pods pages

This commit is contained in:
emanuele-f 2019-04-26 15:34:53 +02:00
parent fdc7772519
commit 939ca8c166
20 changed files with 339 additions and 90 deletions

View file

@ -1545,7 +1545,7 @@ function flowinfo2process(process, host_info_to_url)
clean_name = t[#t]
-- proc_name = string.format("<i class='fa fa-terminal'></i> %s", clean_name)
proc_name = string.format("<A HREF='%s/lua/process_details.lua?%s&pid_name=%s&pid=%u'><i class='fa fa-terminal'></i> %s</A>",
proc_name = string.format("<A HREF='%s/lua/process_details.lua?%s&pid_name=%s&pid=%u'>%s</A>",
ntop.getHttpPrefix(),
host_info_to_url,
full_clean_name,
@ -1565,7 +1565,8 @@ function flowinfo2process(process, host_info_to_url)
clean_user_name)
end
fmt = string.format("[%s]", table.concat({proc_user_name, proc_name}, ' '))
--fmt = table.concat({proc_user_name, proc_name}, ' ')
fmt = proc_name
end
return fmt
@ -3627,12 +3628,6 @@ end
-- ###########################################
function shortenContainer(container)
return container:sub(1, 12)
end
-- ###########################################
--
-- IMPORTANT
-- Leave it at the end so it can use the functions