aboutsummaryrefslogtreecommitdiffstats
path: root/doc/netwatch-notify.md
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2020-07-06 15:54:02 +0200
committerGravatar Christian Hesse <mail@eworm.de>2020-07-06 15:54:02 +0200
commit8dadde23f3eab2918a9d02e58ba4156f0a77d079 (patch)
tree3d263cf810e1d473a369a3608b5f8af191f1f2df /doc/netwatch-notify.md
parenta79461aff2b4f18ed8b18f72388cb4c1573bad8e (diff)
doc/netwatch-notify: document hooks
Diffstat (limited to 'doc/netwatch-notify.md')
-rw-r--r--doc/netwatch-notify.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/netwatch-notify.md b/doc/netwatch-notify.md
index 51768ff..f2ce7b4 100644
--- a/doc/netwatch-notify.md
+++ b/doc/netwatch-notify.md
@@ -29,6 +29,12 @@ The hosts to be checked have to be added to netwatch with specific comment:
/ tool netwatch add comment="notify, hostname=example.com" host=[ :resolve "example.com" ] timeout=5s;
+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:
+
+ / tool netwatch add comment="notify, hostname=poe-device, down-hook=/ interface ethernet poe power-cycle en21;" host=10.0.0.20 timeout=5s;
+
Also notification settings are required for e-mail and telegram.
---