mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Enhanced the host Lua API for host checks
This commit is contained in:
parent
cb4a100b3b
commit
4212c6225d
8 changed files with 232 additions and 15 deletions
|
|
@ -34,6 +34,7 @@ function dump_flow()
|
|||
rsp.l7_proto_name = flow.l7_proto_name()
|
||||
rsp.direction = flow.direction()
|
||||
|
||||
io.write("----------------------------\n")
|
||||
tprint(rsp)
|
||||
end
|
||||
|
||||
|
|
@ -44,7 +45,7 @@ end
|
|||
|
||||
-- the function below shows an example of how an alert is triggered
|
||||
function trigger_dummy_alert()
|
||||
local score = 100
|
||||
local score = 102
|
||||
local message = "dummy alert message"
|
||||
|
||||
flow.triggerAlert(score, message)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue