/system/watchdog
watchdog
Reboots the router when the system stops responding (the software watchdog timer) or when one IP address stops answering pings (the ping watchdog), and writes a support output file after a software failure. See Watchdog.
system/watchdog
Type: Settings Directory
当系统停止响应(软件看门狗计时器)或某个 IP 地址停止应答 ping(ping watchdog)时重启路由器,并在软件故障后写入支持输出文件。请参阅 看门狗。
| 参数 | 类型 | 描述 |
|---|---|---|
watch-address | alt { ip: ipAddr , ipv6: composite { address: ip6Addr , interface: [ iface_enum] } } | ping watchdog 要 ping 的地址。路由器会在 ping-timeout 内发送六次 ping,当六次都失败时重启。none 会关闭 ping watchdog。请使用可靠在线且可通过要监视的链路到达的地址,例如网关,或对于 VPN,使用远端的隧道地址。如果它一直不可达,路由器会在每次启动后再次重启,大约每隔 ping-start-after-boot 加上 ping-timeout。默认值:none。 |
watchdog-timer | bool | 系统无响应一分钟时路由器是否重启。默认值:yes。 |
ping-start-after-boot | time | 启动后 ping watchdog 向 watch-address 发送第一次 ping 之前的时间。对于已运行超过此时间的路由器,设置 watch-address 会立即开始 ping。请将其设置得长于被监视链路在启动后恢复所需的时间。较旧的导出将其称为 no-ping-delay。默认值:5m。 |
ping-timeout | time | ping watchdog 向 watch-address 发送六次 ping 的时间段,每隔 ping-timeout 除以六发送一次。当六次都失败时,路由器重启。默认值:1m。 |
automatic-supout | bool | 软件发生故障时路由器是否写入 autosupout.rif。之前的文件会重命名为 autosupout.old.rif。ping watchdog 重启不会写入该文件。默认值:yes。 |
auto-send-supout | bool | 路由器是否将自动支持输出文件通过电子邮件发送到 send-email-to。默认值:no。 |
send-email-to | string | 当 auto-send-supout=yes 时,自动支持输出文件发送到的电子邮件地址。 |
send-email-from | string | 包含自动支持输出文件的电子邮件的发件人地址。未设置时,使用 /tool/e-mail 中的值。 |
send-smtp-server | alt { ipv4: ipAddr , fqdn: string } | 发送包含自动支持输出文件的电子邮件的 SMTP 服务器,以 IPv4 地址或名称表示。未设置时,使用 /tool/e-mail 中的值。 |