mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Remove C++ implementation of External Alert (replaced by Lua implementation)
This commit is contained in:
parent
b40ef3c0b9
commit
737ea7be5e
12 changed files with 4 additions and 307 deletions
|
|
@ -55,12 +55,10 @@ interface.select(ifid)
|
|||
local host_key = hostinfo2hostkey(hostinfo)
|
||||
score = tonumber(score)
|
||||
|
||||
-- Option 1. Trigger alert through the C check
|
||||
-- Note: This expects that the host is live, otherwise the alert is not triggered
|
||||
-- interface.triggerExternalHostAlert(host_key, score, info)
|
||||
-- Notes:
|
||||
-- - This triggers the alert directly from Lua
|
||||
-- - This does not require the host to be live, however some metadata may be missing as it is not augmented with host data from C++
|
||||
|
||||
-- Option 2. Trigger alert directly from Lua
|
||||
-- Note: This does not require the host to be live, however some metadata may be missing
|
||||
local alert = alert_consts.alert_types.host_alert_external_script.new(info)
|
||||
alert:set_score(score)
|
||||
alert:set_subtype(host_key)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue