Forum Discussion
Detecting monitor all min Value
I currently have a python script that pulls some pool info via icontrol and I can't seem to find the option under LocalLB::Pool to grab the value for Availability Requirements. This value specify the number of monitors that must report a pool member as being available before that member is defined as being in an up state.
e.g. monitor all min 2 of monnitor1 monitor2 monintor3
Is there such a method in icontrol to retrieve this value?
Thanks!
Edit:
I was able to resolve this by checking for the monitor type of MONITOR_RULE_TYPE_M_OF_N and the quorum value
(LocalLB.Pool.MonitorAssociation){
pool_name = "test_pool"
monitor_rule =
(LocalLB.MonitorRule){
type = "MONITOR_RULE_TYPE_M_OF_N"
quorum = 2
monitor_templates[] =
"Http", "tcp"
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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