From ba076db93e9bca8b4412b1ed39d4213db49a8773 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 10 Oct 2018 12:49:03 +0200 Subject: check-routeros-update: send notification on auto-update --- check-routeros-update | 3 +++ 1 file changed, 3 insertions(+) (limited to 'check-routeros-update') diff --git a/check-routeros-update b/check-routeros-update index fe81489..0c39daa 100644 --- a/check-routeros-update +++ b/check-routeros-update @@ -34,6 +34,9 @@ "&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") \ + ("Version " . $latestversion . " is assumed safe for " . $channel . \ + ", updating on " . $identity . "..."); / system package update install; :error "Waiting for system to reboot."; } -- cgit v1.2.3-54-g00ecf