aboutsummaryrefslogtreecommitdiffstats
path: root/check-routeros-update
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-02-19 22:56:28 +0100
committerGravatar Christian Hesse <mail@eworm.de>2019-02-19 22:56:28 +0100
commit5f7c7274573ae290205aa984e8029c586db0e16e (patch)
treef5f72eade68a19638901a5638417fd3528a10a5c /check-routeros-update
parent5f210eb1ec6f92b86dcbb694b18eff86fe2f9db3 (diff)
check-routeros-update: give board name and model
Diffstat (limited to 'check-routeros-update')
-rw-r--r--check-routeros-update4
1 files changed, 3 insertions, 1 deletions
diff --git a/check-routeros-update b/check-routeros-update
index f0b06a1..2a482bd 100644
--- a/check-routeros-update
+++ b/check-routeros-update
@@ -23,6 +23,7 @@
:if ($InstalledVersion != $LatestVersion) do={
:local Channel [ / system package update get channel ];
+ :local BoardName [ / system resource get board-name ];
:local Model [ / system routerboard get model ];
:local SerialNumber [ / system routerboard get serial-number ];
@@ -56,7 +57,8 @@
$SendNotification ("RouterOS update notification") \
("There is a RouterOS update available\n\n" . \
- "Routerboard: " . $Model . "\n" . \
+ "Board name: " . $BoardName . "\n" . \
+ "Model: " . $Model . "\n" . \
"Serial number: " . $SerialNumber . "\n" . \
"Hostname: " . $Identity . "\n" . \
"Channel: " . $Channel . "\n" . \