CONFIG OBJECT ROUTER GATEWAY ADD

Level

object+modify

History

Appears in 2 0 0
Added value ALL to monitor in 4 3 0

Description

Add a new gateway (principal or backup) to a router object

Usage

name=<routername> type=<principalgateway|backupgateway> host=<host> [check=<host|group>] [pos=<position> (0 or default: end of list)] [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 ADD name=my_router host=my_gw Type=principalgateway check=host_behind_my_gw