Fix URLs on SNMP alert stats page.

This commit is contained in:
Nicolo Maio 2023-10-24 17:42:00 +02:00
parent 8f6fbafc79
commit 02b201ce61
3 changed files with 8 additions and 3 deletions

View file

@ -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"]
}