Forum Discussion
Michel_van_der_
Nimbostratus
Jul 05, 2006Default node monitor?
On a load balancer, when I go to:
Local Traffic -> Nodes -> Default Monitor
I can set up a default monitor for my nodes.
How do I do the same in iControl?
Thanks, Michel
13 Replies
- Look in the LocalLB::NodeAddress interface for the monitor_association methods. You'll first have to either create a new template or use one of the default templates if you are happy with the default values.
-Joe - Michel_van_der_
Nimbostratus
So, if I want to monitor all nodes with tcp, what do I set the address_type and ipaddress to (for node_address)? What about monitor_rule?
Thanks. - The only issue I see is that the monitor_templates member of the monitor rule structure is an array and you are passing in a single value. It should look something like this:
'monitor_templates' => ['icmp']
With that being said, with those changes it didn't seem to be working for me so it could be an issue with the server code implementing this feature. I'd suggest you open a support case to get some developers to look at it.
-Joe - Michel_van_der_
Nimbostratus
Thanks for your help (I hate when I make dumb mistakes...). I now get:
I'll have someone raise a support case with the example code tomorrow or Monday. Is there any specific place I should direct the ticket to?SOAP Error: SOAP-ENV:Server; Exception caught in LocalLB::NodeAddress::set_monitor_association() Exception: Common::OperationFailed primary_error_code : 16908342 (0x01020036) secondary_error_code : 0 error_string : 01020036:3: The requested node address (0.0.0.0) was not found.
Thanks, Michel - I would just state that the method is not working correctly and that it should ignore the address field when the ATYPE_STAR_ADDRESS option is selected.
-Joe - Loc_Pham_101863Historic F5 AccountThis problem is tracked by CR 66499, and should be fixed in 9.4.0.
Thanks,
Loc - Michel_van_der_
Nimbostratus
I tried to check that CR in the tech.f5.com web-site, but it does not show up. I tried this on a box recently patched to 9.2.4 19 and it still appears to be a problem.
Any insights? - The CR was applied to 9.4.0, not 9.2.4. I've just checked the CR's state and it's set to Verified Fixed for 9.4.0 build 297.0.
-Joe - Can you post your code? The code above in the thread is for set_monitor_association() yet your error is from get_monitor_association().
-Joe - samstep
Cirrocumulus
Joe, yes the problem I am having is with the get_monitor_association()
here is the code snippet in PHP5....$monitor_assoc=$soap->get_monitor_association(array(array('address_type'=>'ATYPE_STAR_ADDRESS', 'ipaddress'=>'0.0.0.0')));
This throws the error message mentioned above - "Operation Failed.The requested node address (none) was not found"
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