aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-05-10 15:11:51 +0200
committerGravatar Christian Hesse <mail@eworm.de>2022-05-11 13:48:27 +0200
commitc18821deb5b1a1128ae6b4bb16a53d11affaa356 (patch)
tree1befef7e31abe99434028c8c4a82c7a9d76d25ed
parentb368ee9902eea02c9e4ea4222cc02af0561e6441 (diff)
netwatch-syslog: RouterOS v7 path syntax
-rw-r--r--netwatch-syslog8
1 files changed, 4 insertions, 4 deletions
diff --git a/netwatch-syslog b/netwatch-syslog
index 42e5c52..1d9f37b 100644
--- a/netwatch-syslog
+++ b/netwatch-syslog
@@ -8,10 +8,10 @@
# manage remote logging facilities
# https://git.eworm.de/cgit/routeros-scripts/about/doc/netwatch-syslog.md
-:local Remote [ /system logging action get ([ find where target=remote ]->0) remote ];
+:local Remote [ /system/logging/action/get ([ find where target=remote ]->0) remote ];
-if ([ / tool netwatch get [ find where host=$Remote up-script="netwatch-syslog" down-script="netwatch-syslog" ] status ] = "up") do={
- / system logging set disabled=no [ find where action=remote disabled=yes ];
+if ([ /tool/netwatch/get [ find where host=$Remote up-script="netwatch-syslog" down-script="netwatch-syslog" ] status ] = "up") do={
+ /system/logging/set disabled=no [ find where action=remote disabled=yes ];
} else={
- / system logging set disabled=yes [ find where action=remote disabled=no ];
+ /system/logging/set disabled=yes [ find where action=remote disabled=no ];
}