mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Pools configuration in Recipients (WIP)
This commit is contained in:
parent
6c9dd9f7df
commit
dcd23241c7
17 changed files with 263 additions and 43 deletions
|
|
@ -4,6 +4,7 @@
|
|||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/toasts/?.lua;" .. package.path
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/pools/?.lua;" .. package.path
|
||||
|
||||
require "lua_utils"
|
||||
|
||||
|
|
@ -18,6 +19,9 @@ local alert_severities = require "alert_severities"
|
|||
local endpoint_configs = require("endpoints")
|
||||
local endpoints = endpoint_configs.get_configs(true)
|
||||
|
||||
local host_pools = require "host_pools":create()
|
||||
local interface_pools = require "interface_pools":create()
|
||||
|
||||
if not isAdministratorOrPrintErr() then
|
||||
return
|
||||
end
|
||||
|
|
@ -72,6 +76,10 @@ local context = {
|
|||
endpoint_list = endpoints,
|
||||
can_create_recipient = can_create_recipient,
|
||||
check_categories = checks.check_categories,
|
||||
pools = {
|
||||
host_pools = host_pools:get_all_pools(),
|
||||
interface_pools = interface_pools:get_all_pools(),
|
||||
},
|
||||
alert_severities = alert_severities,
|
||||
filters = {
|
||||
endpoint_types = endpoint_type_filters
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue