mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
doc/netwatch-notify: hint on escaping, with example
This commit is contained in:
parent
bccb7c3452
commit
d80a7efb7c
|
@ -40,9 +40,9 @@ The hosts to be checked have to be added to netwatch with specific comment:
|
||||||
|
|
||||||
It is possible to run an up hook command (`up-hook`) or down hook command
|
It is possible to run an up hook command (`up-hook`) or down hook command
|
||||||
(`down-hook`) when a notification is triggered. This has to be added in
|
(`down-hook`) when a notification is triggered. This has to be added in
|
||||||
comment:
|
comment, note that some characters need extra escaping:
|
||||||
|
|
||||||
/ tool netwatch add comment="notify, hostname=poe-device, down-hook=/ interface ethernet poe power-cycle en21;" host=10.0.0.20;
|
/ tool netwatch add comment=("notify, hostname=device, down-hook=/ interface ethernet \\{ disable \\\"en2\\\"; enable \\\"en2\\\"; \\}") host=10.0.0.20;
|
||||||
|
|
||||||
Also there is a `pre-down-hook` that fires at two thirds of failed checks
|
Also there is a `pre-down-hook` that fires at two thirds of failed checks
|
||||||
required for the notification. The idea is to fix the issue before a
|
required for the notification. The idea is to fix the issue before a
|
||||||
|
|
Loading…
Reference in a new issue