Fixes unexpected servers alert messages

This commit is contained in:
Simone Mainardi 2021-04-27 11:47:35 +02:00
parent 9b85af0280
commit 9da49da88f
4 changed files with 4 additions and 4 deletions

View file

@ -43,7 +43,7 @@ end
-- @param alert_type_params Table `alert_type_params` as built in the `:init` method
-- @return A human-readable string
function alert_unexpected_dhcp_server.format(ifid, alert, alert_type_params)
return(i18n("unexpected_dhcp.status_unexpected_dhcp_description", { server=alert_type_params.server_ip} ))
return(i18n("unexpected_dhcp.status_unexpected_dhcp_description", { server=alert.srv_ip} ))
end
-- #######################################################

View file

@ -43,7 +43,7 @@ end
-- @param alert_type_params Table `alert_type_params` as built in the `:init` method
-- @return A human-readable string
function alert_unexpected_dns_server.format(ifid, alert, alert_type_params)
return(i18n("unexpected_dns.status_unexpected_dns_description", { server=alert_type_params.server_ip} ))
return(i18n("unexpected_dns.status_unexpected_dns_description", { server=alert.srv_ip} ))
end
-- #######################################################

View file

@ -43,7 +43,7 @@ end
-- @param alert_type_params Table `alert_type_params` as built in the `:init` method
-- @return A human-readable string
function alert_unexpected_ntp_server.format(ifid, alert, alert_type_params)
return(i18n("unexpected_ntp.status_unexpected_ntp_description", { server=alert_type_params.server_ip} ))
return(i18n("unexpected_ntp.status_unexpected_ntp_description", { server=alert.srv_ip} ))
end
-- #######################################################

View file

@ -34,7 +34,7 @@ end
-- #######################################################
function alert_unexpected_smtp_server.format(ifid, alert, alert_type_params)
return(i18n("unexpected_smtp.status_unexpected_smtp_description", { server=alert_type_params.server_ip} ))
return(i18n("unexpected_smtp.status_unexpected_smtp_description", { server=alert.srv_ip} ))
end
-- #######################################################