Skip to content

Commit 13efa59

Browse files
DaanHooglandDaan Hoogland
andauthored
Router health check notification mail to show router name next to UUID (#6130)
* alerrt message altered * review feedback and format Co-authored-by: Daan Hoogland <dahn@onecht.net>
1 parent 3e4e417 commit 13efa59

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/src/main/java/com/cloud/network/router/VirtualNetworkApplianceManagerImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@ private void handleFailingChecks(DomainRouterVO router, List<String> failingChec
12151215
return;
12161216
}
12171217

1218-
String alertMessage = "Health checks failed: " + failingChecks.size() + " failing checks on router " + router.getUuid();
1218+
String alertMessage = String.format("Health checks failed: %d failing checks on router %s / %s", failingChecks.size(), router.getName(), router.getUuid());
12191219
_alertMgr.sendAlert(AlertType.ALERT_TYPE_DOMAIN_ROUTER, router.getDataCenterId(), router.getPodIdToDeployIn(),
12201220
alertMessage, alertMessage);
12211221
s_logger.warn(alertMessage + ". Checking failed health checks to see if router needs recreate");
@@ -1227,6 +1227,8 @@ private void handleFailingChecks(DomainRouterVO router, List<String> failingChec
12271227
String failedCheck = failingChecks.get(i);
12281228
if (i == 0) {
12291229
failingChecksEvent.append("Router ")
1230+
.append(router.getName())
1231+
.append(" / ")
12301232
.append(router.getUuid())
12311233
.append(" has failing checks: ");
12321234
}

0 commit comments

Comments
 (0)