mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Reworks active monitoring plugin structure
This commit is contained in:
parent
5317445eda
commit
705807ad9d
44 changed files with 251 additions and 336 deletions
|
|
@ -366,7 +366,7 @@ function alert_utils.getConfigsetAlertLink(alert_json, alert --[[ optional --]])
|
|||
-- This piece of code (exception) has been moved here from formatAlertMessage
|
||||
if(alert_consts.getAlertType(alert.alert_id, alert.entity_id) == "alert_am_threshold_cross") then
|
||||
local plugins_utils = require "plugins_utils"
|
||||
local active_monitoring_utils = plugins_utils.loadModule("active_monitoring", "am_utils")
|
||||
local active_monitoring_utils = require "am_utils"
|
||||
local host = json.decode(alert.json)["host"]
|
||||
|
||||
if host and host.measurement and not host.is_infrastructure then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue