mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-06-21 01:15:42 +02:00
doc/netwatch-notify: document hooks
This commit is contained in:
parent
a79461aff2
commit
8dadde23f3
1 changed files with 6 additions and 0 deletions
|
@ -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.
|
||||
|
||||
---
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue