diff options
author | Christian Hesse <mail@eworm.de> | 2018-11-27 14:08:14 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2018-11-28 21:19:39 +0100 |
commit | 6e4d7159378259a521e467504509de871381d078 (patch) | |
tree | 9fcf9938cbf64949f5022a268b9249e3b0cbba17 /check-routeros-update | |
parent | c4f8c1ad52cd629f39009848610d31b320bfda03 (diff) |
global-functions: add identity tag in $SendNotification
... and send subject in telegram message.
Diffstat (limited to 'check-routeros-update')
-rw-r--r-- | check-routeros-update | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/check-routeros-update b/check-routeros-update index caafe3f..ee7afb5 100644 --- a/check-routeros-update +++ b/check-routeros-update @@ -32,7 +32,7 @@ "&latest=" . $latestversion) output=user as-value ]; :if ($result->"status" = "finished" && $result->"data" = $latestversion) do={ :log info ("Version " . $latestversion . " is assumed safe, updating..."); - $SendNotification ("[" . $identity . "] RouterOS update notification") \ + $SendNotification ("RouterOS update notification") \ ("Version " . $latestversion . " is assumed safe for " . $channel . \ ", updating on " . $identity . "..."); / system package update install; @@ -45,7 +45,7 @@ $latestversion . "."); } - $SendNotification ("[" . $identity . "] RouterOS update notification") \ + $SendNotification ("RouterOS update notification") \ ("There is a RouterOS update available\n\n" . \ "Routerboard: " . $model . "\n" . \ "Serial number: " . $serialnumber . "\n" . \ |