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:
Marco Tranchida 2021-11-18 17:15:07 +01:00 committed by GitHub
parent 2ff0cccdfa
commit 98aa892aab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 320 additions and 1 deletions

View 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