netwatch
List RouterOS host reachability monitors to inspect up/down status, intervals, comments, and script-presence flags for failover diagnostics.
Instructions
List Netwatch host monitors (/tool/netwatch): host, status
(up/down), interval, since, comment, disabled, plus
has-up-script/has-down-script booleans.
Netwatch is the usual way a RouterOS device itself watches a gateway or peer's reachability (e.g. to drive a failover script on down/up) - this is read-only groundwork for future failover tooling; see README's "VPN & routing diagnostics".
The up-script/down-script fields are surfaced only as presence
booleans (has-up-script/has-down-script), never as the raw
script body, which can contain arbitrary RouterOS commands (e.g.
route/credential changes) that don't belong in a read tool's
output.
Returns an empty list (never an error) for a device with no Netwatch entries configured.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |