mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Fixes to associate pool ids with alerts
This commit is contained in:
parent
42b7d8e7e9
commit
ceba04f92c
4 changed files with 18 additions and 10 deletions
|
|
@ -4,11 +4,12 @@
|
|||
|
||||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/pools/?.lua;" .. package.path
|
||||
|
||||
local json = require("dkjson")
|
||||
local alert_endpoints = require("alert_endpoints_utils")
|
||||
local alert_consts = require("alert_consts")
|
||||
local alert_entity_pools = require "alert_entity_pools"
|
||||
local pools_alert_utils = require "pools_alert_utils"
|
||||
local os_utils = require("os_utils")
|
||||
local do_trace = false
|
||||
|
||||
|
|
@ -122,7 +123,7 @@ end
|
|||
--! @param entity_info data returned by one of the entity_info building functions
|
||||
local function addAlertPoolInfo(entity_info, alert_json)
|
||||
if alert_json then
|
||||
local pool_id = alert_entity_pools.get_entity_pool_id(entity_info)
|
||||
local pool_id = pools_alert_utils.get_entity_pool_id(entity_info)
|
||||
alert_json.pool_id = pool_id
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue