static int MonitorInterval = 10
static int OfflineMonitorInterval = 60
static int MonitorTimeout = 60
static str ArgList[] = { Device, NetworkHosts, LinkTestRatio,
IgnoreLinkStatus, NetworkTimeout, OnlineTestRepeatCount,
OfflineTestRepeatCount, NoBroadcast, DefaultRouter, Failback }
int OfflineTestRepeatCount = 3
MultiNICB monitor agent function calls a VCS trigger in case of an interface going up or down. The agent passes the following arguments to the script:
The agent also sends a notification (which may be received via SNMP or SMTP) to indicate that status of an interface changed. The notification is sent using "health of a cluster resource declined" and "health of a cluster resource improved" traps. These traps are mentioned in the VCS User's Guide. A sample mnicb_postchange trigger is provided with the agent. You can customize this sample script as needed or write one from scratch.
The sample script does the following:
The following is an example VCS configuration.
UserNames = { admin = "cDRpdxPmHpzS." }
SystemList = { north = 0, south = 1 }
AutoStartList = { north, south }
Device @north = { lan0 = 0, lan4 = 1 }
Device @south = { lan0 = 0, lan4 = 1 }
NetworkHosts = { "192.1.0.1" }