From bccb7c3452466aea0f8c1790643b3aeb21e9b1af Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 9 Jul 2021 11:27:26 +0200 Subject: netwatch-notify: implement pre-down hook --- doc/netwatch-notify.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/netwatch-notify.md b/doc/netwatch-notify.md index 199f050..14efe0b 100644 --- a/doc/netwatch-notify.md +++ b/doc/netwatch-notify.md @@ -44,6 +44,10 @@ comment: / tool netwatch add comment="notify, hostname=poe-device, down-hook=/ interface ethernet poe power-cycle en21;" 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 +notification is sent. + The count threshould (default is 5 checks) is configurable as well: / tool netwatch add comment="notify, hostname=example.com, count=10" host=104.18.144.11; -- cgit v1.2.3-70-g09d2