mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
fix system view and add rtt host from host_details
This commit is contained in:
parent
be0c0a9566
commit
7479582210
113 changed files with 324 additions and 158 deletions
|
|
@ -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>")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue