diff --git a/http_src/vue/page-alert-stats.vue b/http_src/vue/page-alert-stats.vue index 02475992c8..94bb930891 100644 --- a/http_src/vue/page-alert-stats.vue +++ b/http_src/vue/page-alert-stats.vue @@ -653,7 +653,12 @@ function click_button_historical_flows(event) { function click_button_snmp_info(event) { const alert = event.row; - const href = `${http_prefix}/lua/pro/enterprise/snmp_device_details.lua?host=${alert.ip}&snmp_port_idx=${alert.port.value}`; + let href = ``; + if (alert.port.value != null) { + href = `${http_prefix}/lua/pro/enterprise/snmp_interface_details.lua?host=${alert.ip}&snmp_port_idx=${alert.port.value}`; + } else { + href = `${http_prefix}/lua/pro/enterprise/snmp_device_details.lua?host=${alert.ip}`; + } window.open(href, "_blank"); } diff --git a/httpdocs/dist b/httpdocs/dist index 304fc2fbb5..b194b38f17 160000 --- a/httpdocs/dist +++ b/httpdocs/dist @@ -1 +1 @@ -Subproject commit 304fc2fbb51dc47e26f45b0056cc06aac2f69f5c +Subproject commit b194b38f178cfa8b60514ca3ef3d4325bb4a67cd diff --git a/scripts/lua/modules/alert_store/snmp_device_alert_store.lua b/scripts/lua/modules/alert_store/snmp_device_alert_store.lua index 2b165d0933..aef85d32f9 100644 --- a/scripts/lua/modules/alert_store/snmp_device_alert_store.lua +++ b/scripts/lua/modules/alert_store/snmp_device_alert_store.lua @@ -181,7 +181,7 @@ function snmp_device_alert_store:format_record(value, no_html) record[RNAME.IP.name] = value["ip"] record[RNAME.NAME.name] = snmp_utils.get_snmp_device_sysname(value["ip"]) or "" record[RNAME.PORT.name] = { - value = value["ip"] .. "_" .. value["port"], + value = value["port"], label = value["port_name"] or value["port"] }