mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Moved ClickHouse monitor out of the plugins (#6224)
This commit is contained in:
parent
e3b4a21a0f
commit
48ac194118
3 changed files with 21 additions and 0 deletions
|
|
@ -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 {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue