Forum Discussion
Pallavi_Tadepal
Nimbostratus
Mar 07, 2006Invalid Monitor Rule Type
While registering to BigIP, the following error occurred:
LocalLB::Pool::set_monitor_association()
Exception: Common::OperationFailed
primary_error_code : 16908289 (0x01020001)
secondary_error_code : 0
error_string : Invalid monitor rule type
I am at a loss as to the reason. Please HELP!!!
7 Replies
Sort By
- What are you passing in for the MonitorRuleType?
enum MonitorRuleType { MONITOR_RULE_TYPE_UNDEFINED, MONITOR_RULE_TYPE_NONE, MONITOR_RULE_TYPE_SINGLE, MONITOR_RULE_TYPE_AND_LIST, MONITOR_RULE_TYPE_M_OF_N, }; struct MonitorRule { MonitorRuleType type; long quorum; String [] monitor_templates; }; struct MonitorAssociation { String pool_name; MonitorRule monitor_rule; }; void LocalLB::Pool::set_monitor_association( MonitorAssociation[] monitor_associations );
- Pallavi_Tadepal
Nimbostratus
Joe, - You are not initializing the rule variable. You will need to fill in it's type, quorum, and monitor_templates variables to your specifics.
- Pallavi_Tadepal
Nimbostratus
Joe, - Honestly, I have no clue how it has worked. I just looked at the code and if the value of the rule type is not specifically one of MONITOR_RULE_TYPE_SINGLE, MONITOR_RULE_TYPE_AND_LIST, or MONITOR_RULE_TYPE_M_OF_N then this error is thrown. I don't see how your client code could have defaulted to one of these values before and not now. You might want to print out the value of the rule type from the uninitialized value and see what it shows. It probably defaults to the first possible value of MONITOR_RULE_TYPE_UNDEFINED which equates to zero in the enum.
- Pallavi_Tadepal
Nimbostratus
The mystery of how it worked before will never be really solved I guess. Thank you for the input on the other aspects. - Anytime...
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