Added link to asn stats and name to ASN (#9345)

This commit is contained in:
Matteo Biscosi 2025-07-08 18:17:52 +02:00
parent 357553b2ae
commit cbd5ce4e04
3 changed files with 101 additions and 146 deletions

View file

@ -195,8 +195,9 @@ local function build_interface_exporter(criteria, tot_bytes_exp_if,
exporter_nodes[data.exporter_ip] = exporter_node_id
end
nprobe_stats = search_probe(data.exporter_ip)
local url = "#"
if ntop.isEnterprise() then
if ntop.isEnterprise() and nprobe_stats then
url = ntop.getHttpPrefix() ..
'/lua/pro/enterprise/exporter_details.lua?ip=' .. exporter_ip ..
'&exporter_uuid=' .. nprobe_stats.exporter_uuid ..