mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-08-03 17:54:35 +02:00
global-functions: add identity tag in $SendNotification
... and send subject in telegram message.
This commit is contained in:
parent
c4f8c1ad52
commit
6e4d715937
9 changed files with 13 additions and 11 deletions
|
@ -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" . \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue