fix system view and add rtt host from host_details

This commit is contained in:
gabryon99 2020-03-23 17:38:22 +01:00
parent be0c0a9566
commit 7479582210
113 changed files with 324 additions and 158 deletions

View file

@ -22,6 +22,7 @@ local host = _GET["host"]
if(host_info["host"] == nil) then
sendHTTPContentTypeHeader('text/html')
page_utils.manage_system_interface()
page_utils.print_header()
dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua")
print("<div class=\"alert alert-danger\"><img src=".. ntop.getHttpPrefix() .. "/img/warning.png> Host parameter is missing (internal error ?)</div>")
@ -72,6 +73,7 @@ host = interface.getHostInfo(host_info["host"], host_info["vlan"])
if(host == nil) then
sendHTTPContentTypeHeader('text/html')
page_utils.manage_system_interface()
page_utils.print_header()
dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua")
print("<div class=\"alert alert-danger\"><img src=".. ntop.getHttpPrefix() .. "/img/warning.png> Host ".. host_info["host"] .. " Vlan" ..host_info["vlan"].." cannot be found (expired ?)</div>")