mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-13 03:24:28 +02:00
check-certificates: pass origin to $SendNotification2
This commit is contained in:
parent
c640823881
commit
ebd3dbedcb
1 changed files with 4 additions and 2 deletions
|
@ -95,7 +95,8 @@ $WaitFullyConnected;
|
||||||
/ certificate set $CertNew name=($CertVal->"name");
|
/ certificate set $CertNew name=($CertVal->"name");
|
||||||
}
|
}
|
||||||
|
|
||||||
$SendNotification2 ({ subject=([ $SymbolForNotification "lock-with-ink-pen" ] . "Certificate renewed"); \
|
$SendNotification2 ({ origin=$0; \
|
||||||
|
subject=([ $SymbolForNotification "lock-with-ink-pen" ] . "Certificate renewed"); \
|
||||||
message=("A certificate on " . $Identity . " has been renewed.\n\n" . \
|
message=("A certificate on " . $Identity . " has been renewed.\n\n" . \
|
||||||
"Name: " . ($CertVal->"name") . "\n" . \
|
"Name: " . ($CertVal->"name") . "\n" . \
|
||||||
"CommonName: " . ($CertNewVal->"common-name") . "\n" . \
|
"CommonName: " . ($CertNewVal->"common-name") . "\n" . \
|
||||||
|
@ -118,7 +119,8 @@ $WaitFullyConnected;
|
||||||
} else={
|
} else={
|
||||||
:local State [ $IfThenElse (($CertVal->"expired") = true) "expired" "is about to expire" ];
|
:local State [ $IfThenElse (($CertVal->"expired") = true) "expired" "is about to expire" ];
|
||||||
|
|
||||||
$SendNotification2 ({ subject=([ $SymbolForNotification "warning-sign" ] . "Certificate warning!"); \
|
$SendNotification2 ({ origin=$0; \
|
||||||
|
subject=([ $SymbolForNotification "warning-sign" ] . "Certificate warning!"); \
|
||||||
message=("A certificate on " . $Identity . " " . $State . ".\n\n" . \
|
message=("A certificate on " . $Identity . " " . $State . ".\n\n" . \
|
||||||
"Name: " . ($CertVal->"name") . "\n" . \
|
"Name: " . ($CertVal->"name") . "\n" . \
|
||||||
"CommonName: " . ($CertVal->"common-name") . "\n" . \
|
"CommonName: " . ($CertVal->"common-name") . "\n" . \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue