Various service and periodicty map improvements

This commit is contained in:
Luca Deri 2020-10-11 16:17:55 +02:00
parent 7616249acd
commit 60a238acb0
9 changed files with 66 additions and 20 deletions

View file

@ -3909,7 +3909,7 @@ end
local cache = {}
function buildHostHREF(ip_address)
function buildHostHREF(ip_address, page)
local stats = cache[ip_address]
if(stats == nil) then
@ -3925,7 +3925,7 @@ function buildHostHREF(ip_address)
local name = stats.name
if((name == nil) or (name == "")) then name = ip_address end
return('<A HREF="'..ntop.getHttpPrefix()..'/lua/host_details.lua?host='..ip_address..'&page=service_map">'..name..'</A>')
return('<A HREF="'..ntop.getHttpPrefix()..'/lua/host_details.lua?host='..ip_address..'&page='..page..'">'..name..'</A>')
end
end