From addd4d7d9071b620aea57726a489b5863d2ed1dd Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 21 Sep 2020 21:25:17 +0200 Subject: netwatch-syslog: find the correct netwatch entry --- netwatch-syslog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netwatch-syslog b/netwatch-syslog index 374173a..fee22cc 100644 --- a/netwatch-syslog +++ b/netwatch-syslog @@ -10,7 +10,7 @@ :local Remote [ /system logging action get ([ find where target=remote ]->0) remote ]; -if ([ / tool netwatch get [ find where host=$Remote ] status ] = "up") do={ +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 ]; -- cgit v1.2.3-54-g00ecf