Forum Discussion
Brent_West_7733
Mar 01, 2013Historic F5 Account
Determine if a monitor is explicitly set or inherited from pool
When querying the PoolMember interface for get_monitor_associations, iControl shows all associated monitors for a member regardless of wether they are inherited or explicit.
Wondering how the B...
joek_44162
Altostratus
Apr 12, 2013I found that comparing the monitor_templates for the pool (LocalLB.Pool.MonitorAssociation) with the monitor for the member (LocalLB.PoolMember.MemberMonitorAssociation) would allow me to determine if the member has a monitor set inherited or explicit. If inherited, the monitor would match the pool.
(LocalLB.Pool.MonitorAssociation){
pool_name = "pool_test"
monitor_rule =
(LocalLB.MonitorRule){
type = "MONITOR_RULE_TYPE_SINGLE"
quorum = 0
monitor_templates[] =
"tcp",
}
}
(LocalLB.PoolMember.MemberMonitorAssociation){
member =
(LocalLB.MonitorIPPort){
address_type = "ATYPE_EXPLICIT_ADDRESS_EXPLICIT_PORT"
ipport =
(Common.IPPortDefinition){
address = "1.1.1.1"
port = 59595
}
}
monitor_rule =
(LocalLB.MonitorRule){
type = "MONITOR_RULE_TYPE_SINGLE"
quorum = 0
monitor_templates[] =
"tcp_59595",
}
}Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects