mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Improved tracings
This commit is contained in:
parent
ad716ced36
commit
01719751a6
6 changed files with 19 additions and 12 deletions
|
|
@ -0,0 +1,25 @@
|
|||
--
|
||||
-- (C) 2013-22 - ntop.org
|
||||
--
|
||||
|
||||
--
|
||||
-- This script is a demo of what ntopng can do when enabling
|
||||
-- the 'Custom Script Check' behavioural check under the 'Hosts' page
|
||||
--
|
||||
-- NOTE: this script is called periodically (i.e. every minute) for every host
|
||||
-- that ntopng has in memory
|
||||
--
|
||||
|
||||
|
||||
|
||||
-- the function below shows an example of how a host alert is triggered
|
||||
function trigger_dummy_alert()
|
||||
|
||||
local score = 100
|
||||
local message = "dummy host alert message"
|
||||
|
||||
host.triggerAlert(score, message)
|
||||
end
|
||||
|
||||
-- IMPORTANT: do not forget this return at the end of the script
|
||||
return(0)
|
||||
Loading…
Add table
Add a link
Reference in a new issue