aboutsummaryrefslogtreecommitdiffstats
path: root/check-routeros-update
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-04-03 21:30:43 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-04-03 21:30:43 +0200
commitb35c0b8a6f6373201cc9e252a8647935ad54ee19 (patch)
tree3a0f435d99f4f6772871ae00077a5554e8170839 /check-routeros-update
parent27b2fffaaf2529759795b031acea9c8e6980a4ac (diff)
always write warnings and errors to log
Diffstat (limited to 'check-routeros-update')
-rw-r--r--check-routeros-update6
1 files changed, 4 insertions, 2 deletions
diff --git a/check-routeros-update b/check-routeros-update
index ba420da..4d1cf8f 100644
--- a/check-routeros-update
+++ b/check-routeros-update
@@ -22,7 +22,8 @@
:if ([ / system package print count-only where name="wireless" disabled=no ] > 0) do={
:if ([ / interface wireless cap get enabled ] = true && \
[ / caps-man manager get enabled ] = false) do={
- :error "System is managed by CAPsMAN, not checking.";
+ :log warning "System is managed by CAPsMAN, not checking.";
+ :error "Warning: See log for details.";
}
}
@@ -64,8 +65,9 @@
}
:if ($SentRouterosUpdateNotification = $LatestVersion) do={
- :error ("Already sent the RouterOS update notification for version " . \
+ :log info ("Already sent the RouterOS update notification for version " . \
$LatestVersion . ".");
+ :error "Already sent notification.";
}
$SendNotification ("RouterOS update notification") \