-- -- (C) 2013-17 - ntop.org -- dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" sendHTTPHeader('text/html; charset=iso-8859-1') ntop.dumpFile(dirs.installdir .. "/httpdocs/inc/header.inc") active_page = "about" dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua") if(_GET["ntopng_license"] ~= nil) then ntop.setCache('ntopng.license', _GET["ntopng_license"]) ntop.checkLicense() end info = ntop.getInfo() print("

"..info["product"].." Runtime Status

") print("\n") if(info["pro.systemid"] and (info["pro.systemid"] ~= "")) then print("\n") end vers = string.split(info["version.git"], ":") if((vers ~= nil) and (vers[2] ~= nil)) then ntopng_git_url = ""..info["version"].."" else ntopng_git_url = info["version"] end print("\n") print("\n") print("\n") print("\n") print("
System Id".. info["pro.systemid"].."
Version"..ntopng_git_url) if(info["pro.release"] == false) then print(" - Community") else print(" - Pro Small Business") end if(info["version.embedded_edition"] == true) then print("/Embedded") end print(" Edition
Platform"..info["platform"].." - "..info["bits"] .." bit
Startup Linentopng "..info["command_line"].."
Last Log Trace\n") for i=1,32 do msg = ntop.listIndexCache("ntopng.trace", i) if(msg ~= nil) then print(msg.."
\n") end end print("
\n") dofile(dirs.installdir .. "/scripts/lua/inc/footer.lua")