aboutsummaryrefslogtreecommitdiffstats
path: root/netwatch-syslog
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2022-05-12 11:03:06 +0200
committerGravatar Christian Hesse <mail@eworm.de>2022-05-12 11:03:06 +0200
commit48f0a2d21118a7bff7d598e84d9f606fb30bf07a (patch)
treefb9746502335552880823e9445cd4201414bb8eb /netwatch-syslog
parent93ec9afe558ef6eba5d513fab359bb5f6618666d (diff)
parenta71a3d5466548d05d27d31c446c62afdf2412070 (diff)
Merge branch 'scripts' into ros-v7-path-syntax
Diffstat (limited to 'netwatch-syslog')
-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 ];
}