mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
34 lines
910 B
Lua
34 lines
910 B
Lua
--
|
|
-- (C) 2019-24 - ntop.org
|
|
--
|
|
|
|
-- Companion scripts (in addition to i18n)
|
|
-- scripts/callbacks/status_defs/status_unidirectional_traffic.lua
|
|
-- scripts/callbacks/interface/flow/udp.lua
|
|
|
|
local checks = require("checks")
|
|
local alerts_api = require "alerts_api"
|
|
local alert_consts = require("alert_consts")
|
|
local flow_alert_keys = require "flow_alert_keys"
|
|
|
|
-- #################################################################
|
|
|
|
local script = {
|
|
-- Script category
|
|
category = checks.check_categories.network,
|
|
|
|
-- This script is only for alerts generation
|
|
alert_id = flow_alert_keys.flow_alert_ndpi_unidirectional_traffic,
|
|
|
|
default_value = {
|
|
},
|
|
|
|
gui = {
|
|
i18n_title = "flow_checks_config.unidirectional_traffic",
|
|
i18n_description = "flow_checks_config.unidirectional_traffic_description",
|
|
}
|
|
}
|
|
|
|
-- #################################################################
|
|
|
|
return script
|