Added new module snmp_mapping for handling interface information coming from nprobe via ZMQ

This commit is contained in:
Luca Deri 2022-11-18 19:33:56 +01:00
parent 6f1c8039ec
commit f77e4ad3ea
5 changed files with 108 additions and 67 deletions

View file

@ -1223,6 +1223,15 @@ function format_portidx_name(device_ip, portidx, short_version, shorten_string)
})
)
end
else
-- No SNMP configured: last resort use exporters
local snmp_mappings = require "snmp_mappings"
local res = snmp_mappings.get_iface_name(device_ip, portidx)
if(res ~= nil) then
idx_name = res
end
end
end
end