Add ability to report resolved IP address for unreachable hosts

This commit is contained in:
emanuele-f 2020-04-27 15:46:03 +02:00
parent 7d98cc9dbe
commit 00c5e9f909
7 changed files with 28 additions and 15 deletions

View file

@ -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 = ""