jj24_43946
Jun 17, 2011Nimbostratus
Help 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