Skip to content

Commit 4cb3e82

Browse files
committed
Add Container Hostname to Certificate Expiry notification
Signed-off-by: Sid Sun <sid@sidsun.com>
1 parent 57e8a2e commit 4cb3e82

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

next_tag.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.23.16-1
1+
1.23.16-2

server/model/monitor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1520,7 +1520,7 @@ class Monitor extends BeanModel {
15201520
for (let notification of notificationList) {
15211521
try {
15221522
log.debug("monitor", "Sending to " + notification.name);
1523-
await Notification.send(JSON.parse(notification.config), `[${this.name}][${this.url}] ${certType} certificate ${certCN} will be expired in ${daysRemaining} days`);
1523+
await Notification.send(JSON.parse(notification.config), `[${os.hostname()}] [${this.name}][${this.url}] ${certType} certificate ${certCN} will be expired in ${daysRemaining} days`);
15241524
sent = true;
15251525
} catch (e) {
15261526
log.error("monitor", "Cannot send cert notification to " + notification.name);

0 commit comments

Comments
 (0)