aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2021-07-09 11:57:40 +0200
committerGravatar Christian Hesse <mail@eworm.de>2021-07-09 12:46:03 +0200
commitd80a7efb7c5383420e493f9f812b0075c8d09cca (patch)
treef7536873028e7c835240a1d2f213911b9597eb24 /doc
parentbccb7c3452466aea0f8c1790643b3aeb21e9b1af (diff)
doc/netwatch-notify: hint on escaping, with example
Diffstat (limited to 'doc')
-rw-r--r--doc/netwatch-notify.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/netwatch-notify.md b/doc/netwatch-notify.md
index 14efe0b..81e28b0 100644
--- a/doc/netwatch-notify.md
+++ b/doc/netwatch-notify.md
@@ -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
(`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
required for the notification. The idea is to fix the issue before a