diff options
author | Christian Hesse <mail@eworm.de> | 2020-09-21 21:25:17 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2020-09-21 21:25:17 +0200 |
commit | addd4d7d9071b620aea57726a489b5863d2ed1dd (patch) | |
tree | 2a8e01c0a176cd7f64468f95d361e95a7e7d8dd1 | |
parent | 1a28a417f4e10ba38d5ae8a6c5df6d059901bbbf (diff) |
netwatch-syslog: find the correct netwatch entry
-rw-r--r-- | netwatch-syslog | 2 |
1 files changed, 1 insertions, 1 deletions
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 ]; |