mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-15 04:24:29 +02:00
doc/netwatch-notify: add sections
This commit is contained in:
parent
dd19aea362
commit
42c203291a
1 changed files with 8 additions and 0 deletions
|
@ -38,6 +38,8 @@ 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" ];
|
/ tool netwatch add comment="notify, hostname=example.com" host=[ :resolve "example.com" ];
|
||||||
|
|
||||||
|
### Hooks
|
||||||
|
|
||||||
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, note that some characters need extra escaping:
|
comment, note that some characters need extra escaping:
|
||||||
|
@ -48,10 +50,14 @@ 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
|
||||||
notification is sent.
|
notification is sent.
|
||||||
|
|
||||||
|
### Count threshould
|
||||||
|
|
||||||
The count threshould (default is 5 checks) is configurable as well:
|
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;
|
/ tool netwatch add comment="notify, hostname=example.com, count=10" host=104.18.144.11;
|
||||||
|
|
||||||
|
### Parents & dependencies
|
||||||
|
|
||||||
If the host is behind another checked host add a dependency, this will
|
If the host is behind another checked host add a dependency, this will
|
||||||
suppress notification if the parent host is down:
|
suppress notification if the parent host is down:
|
||||||
|
|
||||||
|
@ -61,6 +67,8 @@ suppress notification if the parent host is down:
|
||||||
Note that every configured parent in a chain increases the check count
|
Note that every configured parent in a chain increases the check count
|
||||||
threshould by one.
|
threshould by one.
|
||||||
|
|
||||||
|
### Update from DNS
|
||||||
|
|
||||||
The host address can be updated dynamically. Give extra parameter `resolve`
|
The host address can be updated dynamically. Give extra parameter `resolve`
|
||||||
with a resolvable name:
|
with a resolvable name:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue