CONFIG OBJECT ROUTER GATEWAY UPDATE
Level
object,modify
History
Appears in 2.0.0
Added value ALL to monitor in 4.3.0
Description
Update a gateway (principal or backup) from a router object
Usage
name=<routername> type=<principalgateway|backupgateway> pos=<position> [host=<host>] [check=<host|group>] [weight=<int>] [monitor=<all|icmp|none>] [comment=<comment>]
- monitor=all means this gateway use monitoring;
- monitor=none means this gateway is not monitored;
Remark
The value ICMP for monitor is kept for backward compatibility and is equivalent to the value ALL
Returns
Error Code
Example
CONFIG OBJECT ROUTER GATEWAY UPDATE name=my_router type=principalgateway pos=3 check=host_behind_my_gw