mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Implementazione nuovo check, progetto GR (#6074)
* Add files via upload * Add files via upload * Add files via upload * Add files via upload * Add files via upload * Add files via upload * Add files via upload * Add files via upload * Add files via upload * Update en.lua * Update en.lua * Update ntop_typedefs.h * Update HostChecksStatus.h * Update PktThreshold.cpp
This commit is contained in:
parent
2ff0cccdfa
commit
98aa892aab
11 changed files with 320 additions and 1 deletions
33
scripts/lua/modules/check_definitions/host/pkt_threshold.lua
Normal file
33
scripts/lua/modules/check_definitions/host/pkt_threshold.lua
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
--
|
||||
-- (C) 2019-21 - ntop.org
|
||||
--
|
||||
|
||||
local checks = require("checks")
|
||||
local host_alert_keys = require "host_alert_keys"
|
||||
|
||||
-- #################################################################
|
||||
|
||||
local pkt_threshold = {
|
||||
-- Script category
|
||||
category = checks.check_categories.network,
|
||||
|
||||
default_enabled = false,
|
||||
alert_id = host_alert_keys.host_alert_pkt_threshold,
|
||||
|
||||
default_value = {
|
||||
operator = "gt",
|
||||
threshold = 10000,
|
||||
},
|
||||
|
||||
gui = {
|
||||
i18n_title = "alerts_thresholds_config.pkt_threshold",
|
||||
i18n_description = "alerts_thresholds_config.alert_pkt_threshold_description",
|
||||
i18n_field_unit = checks.field_units.packets,
|
||||
input_builder = "threshold_cross",
|
||||
field_operator = "gt";
|
||||
},
|
||||
}
|
||||
|
||||
-- #################################################################
|
||||
|
||||
return pkt_threshold
|
||||
Loading…
Add table
Add a link
Reference in a new issue