Forum Discussion
jj24_43946
Nimbostratus
Jun 17, 2011Help with LocalLB::Pool/set_monitor_association
Hi again,
I think I'm on the last hurdle here. Trying to associate a health monitor with a pool. I think I've built the DS according to the ref: http://devcentral.f5.com/wiki/default.aspx/iControl/LocalLB__Pool__set_monitor_association.html.
BUILD DS
my ( @MonitorAssociationA, @MonitorAssociationAofA );
my $MonitorRule = {
type => "MONITOR_RULE_TYPE_SINGLE",
quorum => 0,
monitor_templates => [$f5_template_name]
};
my $MonitorAssociation = {
pool_name => $f5_pool_name,
monitor_rule => $MonitorRule
};
push @MonitorAssociationA, $MonitorAssociation;
push @MonitorAssociationAofA, [@MonitorAssociationA];
my $soapResponse = $Pool->set_monitor_association(
SOAP::Data->name(monitor_associations => [@MonitorAssociationAofA])
);
When I run the script, however, I see:
$ ./associateMonitor.pl
SOAP-ENV:Server Could not find element by name: pool_name
The pool_name is definitely defined though:
$VAR1 = [
{
'monitor_rule' => {
'type' => 'MONITOR_RULE_TYPE_SINGLE',
'quorum' => 0,
'monitor_templates' => [
'https_test_pool2_monitor'
]
},
'pool_name' => 'test_pool2_443'
}
];
Once again, any help would be much appreciated. Thanks!
Justin
- jj24_43946
Nimbostratus
Aha, I figured it out. I had a level in the nested array that was empty. Removed that level and it works. Thanks anyway! - Great, it's always better when you figure it out yourself. That way if you get into the problem again, you'll have something to reference.
- Hayato_35605
Nimbostratus
Hi there,- Grain_131632
Nimbostratus
the new structure: $VAR1 = { 'monitor_rule' => { 'type' => 'MONITOR_RULE_TYPE_SINGLE', 'quorum' => '0', 'monitor_templates' => [ 'https' ] }, 'pool_name' => 'testabc-pool' };
- Hayato_35605
Nimbostratus
I've figured it out now! I'm still getting used to it but I'll get there soon! - Jeffro21_47444
Nimbostratus
Hello,
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