aboutsummaryrefslogtreecommitdiffstats
path: root/check-certificates.rsc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-04-19 22:05:15 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-04-19 22:05:43 +0200
commitfb9feea5950caec1c9bd7b9a3188cc312bf61956 (patch)
tree457063c1b8b6cc7547b1114288f0c39a42d558db /check-certificates.rsc
parentbe0bbe80d942c16200022c13538f1d0147211552 (diff)
check-certificates: add certificate name in notification subject
Diffstat (limited to 'check-certificates.rsc')
-rw-r--r--check-certificates.rsc4
1 files changed, 2 insertions, 2 deletions
diff --git a/check-certificates.rsc b/check-certificates.rsc
index 98a6cab..2b76873 100644
--- a/check-certificates.rsc
+++ b/check-certificates.rsc
@@ -158,7 +158,7 @@ $WaitFullyConnected;
}
$SendNotification2 ({ origin=$0; silent=true; \
- subject=([ $SymbolForNotification "lock-with-ink-pen" ] . "Certificate renewed"); \
+ subject=([ $SymbolForNotification "lock-with-ink-pen" ] . "Certificate renewed: " . ($CertVal->"name")); \
message=("A certificate on " . $Identity . " has been renewed.\n\n" . [ $FormatInfo $CertVal ]) });
$LogPrintExit2 info $0 ("The certificate " . ($CertVal->"name") . " has been renewed.") false;
} on-error={
@@ -176,7 +176,7 @@ $WaitFullyConnected;
:local State [ $IfThenElse (($CertVal->"expired") = true) "expired" "is about to expire" ];
$SendNotification2 ({ origin=$0; \
- subject=([ $SymbolForNotification "warning-sign" ] . "Certificate warning!"); \
+ subject=([ $SymbolForNotification "warning-sign" ] . "Certificate warning: " . ($CertVal->"name")); \
message=("A certificate on " . $Identity . " " . $State . ".\n\n" . [ $FormatInfo $CertVal ]) });
$LogPrintExit2 info $0 ("The certificate " . ($CertVal->"name") . " " . $State . \
", it is invalid after " . ($CertVal->"invalid-after") . ".") false;