From 6e4d7159378259a521e467504509de871381d078 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 27 Nov 2018 14:08:14 +0100 Subject: global-functions: add identity tag in $SendNotification ... and send subject in telegram message. --- check-routeros-update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'check-routeros-update') 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" . \ -- cgit v1.2.3-54-g00ecf