mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Trigger External Host alerts directly from Lua (also for inactive hosts) (fix #7170)
This commit is contained in:
parent
2ec229a8c5
commit
64ab8b6bae
3 changed files with 25 additions and 10 deletions
|
|
@ -33,11 +33,12 @@ host_alert_external_script.meta = {
|
|||
-- @param one_param The first alert param
|
||||
-- @param another_param The second alert param
|
||||
-- @return A table with the alert built
|
||||
function host_alert_external_script:init(metric, value, operator, threshold)
|
||||
-- Call the parent constructor
|
||||
function host_alert_external_script:init(message)
|
||||
self.super:init()
|
||||
|
||||
self.alert_type_params = alert_creators.createThresholdCross(metric, value, operator, threshold)
|
||||
self.alert_type_params = {
|
||||
message = message
|
||||
}
|
||||
end
|
||||
|
||||
-- #######################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue