mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Add supprot for filtering alerts on hostname. Filter on hostname rather than IP when hostname is available
This commit is contained in:
parent
fbe997a4d9
commit
ad5b7a1250
8 changed files with 68 additions and 8 deletions
|
|
@ -97,6 +97,8 @@ local ip_version = _GET["ip_version"]
|
|||
local host_ip = _GET["ip"]
|
||||
local cli_ip = _GET["cli_ip"]
|
||||
local srv_ip = _GET["srv_ip"]
|
||||
local cli_name = _GET["cli_name"]
|
||||
local srv_name = _GET["srv_name"]
|
||||
local cli_port = _GET["cli_port"]
|
||||
local srv_port = _GET["srv_port"]
|
||||
local l7_proto = _GET["l7_proto"]
|
||||
|
|
@ -293,6 +295,8 @@ widget_gui_utils.register_timeseries_area_chart(CHART_NAME, 0, {
|
|||
ip = host_ip,
|
||||
cli_ip = cli_ip,
|
||||
srv_ip = srv_ip,
|
||||
cli_name = cli_name,
|
||||
srv_name = srv_name,
|
||||
cli_port = cli_port,
|
||||
srv_port = srv_port,
|
||||
l7_proto = l7_proto,
|
||||
|
|
@ -395,6 +399,7 @@ local operators_by_filter = {
|
|||
role = {'eq'},
|
||||
role_cli_srv = {'eq'},
|
||||
text = {'eq','neq'},
|
||||
hostname = {'eq','neq'},
|
||||
}
|
||||
|
||||
local defined_tags = {
|
||||
|
|
@ -426,6 +431,8 @@ local defined_tags = {
|
|||
ip = operators_by_filter.ip,
|
||||
cli_ip = operators_by_filter.ip,
|
||||
srv_ip = operators_by_filter.ip,
|
||||
cli_name = operators_by_filter.hostname,
|
||||
srv_name = operators_by_filter.hostname,
|
||||
cli_port = operators_by_filter.port,
|
||||
srv_port = operators_by_filter.port,
|
||||
role = operators_by_filter.role,
|
||||
|
|
@ -553,6 +560,8 @@ local context = {
|
|||
l7_proto = i18n("tags.l7proto"),
|
||||
cli_ip = i18n("tags.cli_ip"),
|
||||
srv_ip = i18n("tags.srv_ip"),
|
||||
cli_name = i18n("tags.cli_name"),
|
||||
srv_name = i18n("tags.srv_name"),
|
||||
cli_port = i18n("tags.cli_port"),
|
||||
srv_port = i18n("tags.srv_port"),
|
||||
ip_version = i18n("tags.ip_version"),
|
||||
|
|
@ -598,6 +607,8 @@ local context = {
|
|||
ip = host_ip,
|
||||
cli_ip = cli_ip,
|
||||
srv_ip = srv_ip,
|
||||
cli_name = cli_name,
|
||||
srv_name = srv_name,
|
||||
cli_port = cli_port,
|
||||
srv_port = srv_port,
|
||||
l7_proto = l7_proto,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue