ntopng/scripts/lua/modules/check_definitions/host/pkt_threshold.lua
Marco Tranchida 98aa892aab
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
2021-11-18 17:15:07 +01:00

33 lines
821 B
Lua

--
-- (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