mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Added Fin Scan check (#5903)
This commit is contained in:
parent
8a5aa3bbb6
commit
7b51a4ca61
15 changed files with 322 additions and 4 deletions
43
scripts/lua/modules/check_definitions/host/fin_scan.lua
Normal file
43
scripts/lua/modules/check_definitions/host/fin_scan.lua
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
--
|
||||
-- (C) 2019-22 - ntop.org
|
||||
--
|
||||
|
||||
local checks = require("checks")
|
||||
local host_alert_keys = require "host_alert_keys"
|
||||
|
||||
local fin_scan = {
|
||||
-- Script category
|
||||
category = checks.check_categories.network,
|
||||
|
||||
default_enabled = false,
|
||||
alert_id = host_alert_keys.host_alert_fin_scan,
|
||||
|
||||
-- The default threshold value. The format is specific of the
|
||||
-- "threshold_cross" input builder
|
||||
default_value = {
|
||||
operator = "gt",
|
||||
threshold = 256,
|
||||
},
|
||||
|
||||
-- Allow user script configuration from the GUI
|
||||
gui = {
|
||||
i18n_title = "entity_thresholds.fin_scan_title",
|
||||
i18n_description = "entity_thresholds.fin_scan_description",
|
||||
|
||||
-- The input builder to use to draw the gui
|
||||
input_builder = "threshold_cross",
|
||||
|
||||
-- Specific parameters of this input builder
|
||||
i18n_field_unit = checks.field_units.fin_min,
|
||||
-- max allowed threshold value
|
||||
field_max = 65535,
|
||||
-- min allowed threshold value
|
||||
field_min = 1,
|
||||
-- threshold check operator. "gt" for ">", "lt" or "<"
|
||||
field_operator = "gt";
|
||||
}
|
||||
}
|
||||
|
||||
-- #################################################################
|
||||
|
||||
return fin_scan
|
||||
Loading…
Add table
Add a link
Reference in a new issue