-- -- (C) 2018 - ntop.org -- local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" local page_utils = require("page_utils") local ebpf_utils = require "ebpf_utils" sendHTTPContentTypeHeader('text/html') page_utils.print_header() local page = _GET["page"] if isEmptyString(page) then page = "process_ndpi" end dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua") local pid = _GET["pid"] local name_key = _GET["pid_name"] or "no name" local host_info = url2hostinfo(_GET) local ifstats = interface.getStats() local refresh_rate local have_nedge = ntop.isnEdge() if have_nedge then refresh_rate = 5 else refresh_rate = getInterfaceRefreshRate(ifstats["id"]) end if not pid or not name_key then print("
"..i18n("processes_stats.missing_pid_name_message").."