mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Add ability to report resolved IP address for unreachable hosts
This commit is contained in:
parent
7d98cc9dbe
commit
00c5e9f909
7 changed files with 28 additions and 15 deletions
|
|
@ -42,7 +42,7 @@ local function thresholdCrossFormatter(ifid, alert, info)
|
|||
local numeric_ip = info.ip
|
||||
local ip_label = host and host.label or numeric_ip
|
||||
|
||||
if numeric_ip ~= ip_label then
|
||||
if numeric_ip ~= host.host then
|
||||
numeric_ip = string.format("(%s)", numeric_ip)
|
||||
else
|
||||
numeric_ip = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue