mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Added new module snmp_mapping for handling interface information coming from nprobe via ZMQ
This commit is contained in:
parent
6f1c8039ec
commit
f77e4ad3ea
5 changed files with 108 additions and 67 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue