Moved ClickHouse monitor out of the plugins (#6224)

This commit is contained in:
Matteo Biscosi 2022-01-24 15:55:58 +01:00
parent e3b4a21a0f
commit 48ac194118
3 changed files with 21 additions and 0 deletions

View file

@ -3063,6 +3063,20 @@ function getURLPattern()
return "^https?://.+$"
end
-- ##############################################
function getRestUrl(script, is_pro, is_enterprise)
if is_enterprise then
return(ntop.getHttpPrefix() .. "/lua/enterprise/rest/v2/get/" .. script)
elseif is_pro then
return(ntop.getHttpPrefix() .. "/lua/pro/rest/v2/get/" .. script)
else
return(ntop.getHttpPrefix() .. "/lua/rest/v2/get/" .. script)
end
end
-- ##############################################
-- get_mac_classification
function get_mac_classification(m, extended_name)
local short_extended = ntop.getMacManufacturer(m) or {}