netwatch-notify: support dynamic address update

This commit is contained in:
Christian Hesse 2021-05-06 12:55:05 +02:00
parent 9d19313eee
commit cfb31e844c
6 changed files with 28 additions and 3 deletions

View file

@ -52,6 +52,15 @@ suppress notification if the parent host is down:
Note that every configured parent in a chain increases the check count
threshould by one.
The host address can be updated dynamically. Give extra parameter `resolve`
with a resolvable name:
/ tool netwatch add comment="notify, hostname=example.com, resolve=example.com";
But be warned: Dynamic updates will probably cause issues if the name has
more than one record in dns - a high rate of configuration changes (and flash
writes) at least.
Also notification settings are required for e-mail and telegram.
Tips & Tricks