mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Stateful host alerts now 'require' a lua API
This commit is a companion of professional version commit
commit 2b6e5358a71179a728edc0a8e591ffb883d626ab
Date: Mon Aug 1 22:07:37 2016 +0200
Refactors stateful host alerts to provide an API
This commit is contained in:
parent
e674c73a2e
commit
f1d3dbb455
1 changed files with 4 additions and 3 deletions
|
|
@ -8,11 +8,11 @@
|
|||
--[[ place functions that you want to override in stateful_alert_utils here --]]
|
||||
|
||||
function delete_stateful_alert_configuration(alert_source, ifname)
|
||||
return nil -- overridden in pro/scripts/lua/modules/stateful_alert_utils.lua
|
||||
return nil
|
||||
end
|
||||
|
||||
function refresh_stateful_alert_configuration(alert_source, ifname, timespan, alerts_string)
|
||||
return nil -- overridden in pro/scripts/lua/modules/stateful_alert_utils.lua
|
||||
return nil
|
||||
end
|
||||
|
||||
--[[ functions that can be overridden in stateful_alert_utils go above this point --]]
|
||||
|
|
@ -21,7 +21,8 @@ dirs = ntop.getDirs()
|
|||
if (ntop.isEnterprise()) then
|
||||
package.path = dirs.installdir .. "/pro/scripts/lua/modules/?.lua;" .. package.path
|
||||
-- overrides alert utils with the enterprise version of alerts
|
||||
require "stateful_alert_utils"
|
||||
-- require "stateful_alert_utils"
|
||||
require "stateful_host_alert_api"
|
||||
end
|
||||
|
||||
local verbose = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue