Fix the icon of SNMP interface in the alerts table and add a warning message.

This commit is contained in:
Nicolo Maio 2024-04-18 10:32:13 +02:00
parent 6abc64267e
commit a62bc0db10
3 changed files with 17 additions and 2 deletions

View file

@ -643,6 +643,10 @@ export class DataTableRenders {
}
} else {
if (ip && value) {
if (value.includes(ip)) {
value = value.split("_")[1];
}
let url = NtopUtils.buildURL(`${http_prefix}/lua/pro/enterprise/snmp_interface_details.lua?host=${ip}&snmp_port_idx=${value}`);
content += ` <a href='${url}'data-bs-toggle='tooltip' title=''><i class='fas fa-laptop'></i></a>`;
}