global-functions: add identity tag in $SendNotification

... and send subject in telegram message.
This commit is contained in:
Christian Hesse 2018-11-27 14:08:14 +01:00
parent c4f8c1ad52
commit 6e4d715937
9 changed files with 13 additions and 11 deletions

View file

@ -36,7 +36,7 @@
:local fingerprint [ / certificate get $cert fingerprint ];
:local invalidbefore [ / certificate get $cert invalid-before ];
:local invalidafter [ / certificate get $cert invalid-after ];
$SendNotification ("[" . $identity . "] Certificate warning!") \
$SendNotification ("Certificate warning!") \
("A certificate on " . $identity . " is about to expire.\n\n" . \
"Certificate Name: " . $certname . "\n" . \
"Common Name: " . $commonname . "\n" . \