diff options
author | Christian Hesse <mail@eworm.de> | 2019-01-09 17:38:55 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-01-09 17:38:55 +0100 |
commit | df7cb1b88b9d59e01ad82f3d9400fb306d564b7f (patch) | |
tree | fcb443f116f6d9e652f40effcc8bb9877005efce | |
parent | e51daf276182dbd733f8eeec6122230790744e7b (diff) |
check-certificates: shorten key for detailed infos
-rw-r--r-- | check-certificates | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/check-certificates b/check-certificates index 72a6fa8..4b26a11 100644 --- a/check-certificates +++ b/check-certificates @@ -63,11 +63,11 @@ $SendNotification ("Certificate renewed") \ ("A certificate on " . $Identity . " has been renewed.\n\n" . \ - "Certificate Name: " . $CertName . "\n" . \ - "Common Name: " . $CommonName . "\n" . \ - "Fingerprint: " . $FingerPrint . "\n" . \ - "Issuer: " . $Issuer . "\n" . \ - "Validity: " . $InvalidBefore . " to " . $InvalidAfter); + "Name: " . $CertName . "\n" . \ + "Common Name: " . $CommonName . "\n" . \ + "Fingerprint: " . $FingerPrint . "\n" . \ + "Issuer: " . $Issuer . "\n" . \ + "Validity: " . $InvalidBefore . " to " . $InvalidAfter); :log info ("The certificate " . $CertName . " has been renewed."); } on-error={ :local InvalidBefore [ / certificate get $Cert invalid-before ]; @@ -76,11 +76,11 @@ $SendNotification ("Certificate warning!") \ ("A certificate on " . $Identity . " is about to expire.\n\n" . \ - "Certificate Name: " . $CertName . "\n" . \ - "Common Name: " . $CommonName . "\n" . \ - "Fingerprint: " . $FingerPrint . "\n" . \ - "Issuer: " . $Issuer . "\n" . \ - "Validity: " . $InvalidBefore . " to " . $InvalidAfter); + "Name: " . $CertName . "\n" . \ + "Common Name: " . $CommonName . "\n" . \ + "Fingerprint: " . $FingerPrint . "\n" . \ + "Issuer: " . $Issuer . "\n" . \ + "Validity: " . $InvalidBefore . " to " . $InvalidAfter); :log warning ("The certificate " . $CertName . " is about to expire in " . $ExpiresAfter . "."); } } else={ |