mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-08 23:25:13 +00:00
Probe lookup added to exporter navbar when exporter IP is available (#10049)
This commit is contained in:
parent
04a0f60073
commit
a6c39b6734
1 changed files with 7 additions and 1 deletions
|
|
@ -365,13 +365,19 @@ function exporters_utils.printNavbar(ifid, page, ip, probe_uuid, num_exporters)
|
|||
|
||||
if(num_exporters == nil) then num_exporters = 0 end
|
||||
|
||||
|
||||
-- Resolve probe information if available
|
||||
if not isEmptyString(probe_uuid) then
|
||||
nprobe_info = getProbeFromUUID(probe_uuid)
|
||||
if isEmptyString(ip) and nprobe_info then
|
||||
ip = nprobe_info["probe.ip"]
|
||||
end
|
||||
else
|
||||
if not isEmptyString(ip) then
|
||||
local probe,_ = exporters_utils.getProbeUUID(ip)
|
||||
if probe then
|
||||
nprobe_info = getProbeFromUUID(probe)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if nprobe_info then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue