mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Remove alert_endpoints_utils (no longer required). Doc update.
This commit is contained in:
parent
b3ddfacf07
commit
d55e4dc441
6 changed files with 16 additions and 129 deletions
|
|
@ -20,7 +20,6 @@ local data_retention_utils = require "data_retention_utils"
|
|||
local page_utils = require("page_utils")
|
||||
local ts_utils = require("ts_utils")
|
||||
local influxdb = require("influxdb")
|
||||
local alert_endpoints = require("alert_endpoints_utils")
|
||||
local plugins_utils = require("plugins_utils")
|
||||
local nindex_utils = nil
|
||||
local info = ntop.getInfo()
|
||||
|
|
@ -371,28 +370,6 @@ end
|
|||
|
||||
-- ================================================================================
|
||||
|
||||
function printExternalAlertsReport()
|
||||
if alerts_disabled then return end
|
||||
|
||||
print('<form method="post" id="external_alerts_form">')
|
||||
print('<table class="table">')
|
||||
|
||||
local available_endpoints = plugins_utils.getLoadedAlertEndpoints()
|
||||
|
||||
for _, endpoint in ipairs(available_endpoints) do
|
||||
if(endpoint.printPrefs) then
|
||||
endpoint.printPrefs(alert_endpoints, subpage_active, true --[[ showElements ]])
|
||||
end
|
||||
end
|
||||
|
||||
print('<tr><th colspan=2 style="text-align:right;"><button type="submit" class="btn btn-primary" style="width:115px" disabled="disabled">'..i18n("save")..'</button></th></tr>')
|
||||
print('</table>')
|
||||
print [[<input name="csrf" type="hidden" value="]] print(ntop.getRandomCSRFValue()) print [[" />
|
||||
</form> ]]
|
||||
end
|
||||
|
||||
-- ================================================================================
|
||||
|
||||
function printProtocolPrefs()
|
||||
print('<form method="post">')
|
||||
|
||||
|
|
@ -1549,10 +1526,6 @@ if(tab == "alerts") then
|
|||
printAlerts()
|
||||
end
|
||||
|
||||
if(tab == "ext_alerts") then
|
||||
printExternalAlertsReport()
|
||||
end
|
||||
|
||||
if(tab == "protocols") then
|
||||
printProtocolPrefs()
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue