Forum Discussion
JCMATTOS_41723
Nimbostratus
Jun 04, 2008LB_Failure logging?
We have a LTM 9.4.3 and are trying to utilize this script we found on devcentral. But we keep getting this error message. Any ideas? Thx!
when LB_FAILED {
set poolname [LB::...
JCMATTOS_41723
Nimbostratus
Jun 05, 2008I pasted it right into the LTM and still same error...Is there maybe another irule which will give me the same result but config differently? We are trying to generate a log that displays the name of the pools and servers that are down or unavailable? Thx!
Thu Jun 5 09:36:27 PDT 2008 tmm tmm[1935] 01220001 TCL error: LB-Alert2 LB_FAILED - wrong args: should be LB::status [pool pool name addr port] up | down | session_enabled | session_disabled or [node addr] up | down | session_enabled | session_disabled while executing LB::status pool $poolname member $ip $port
when LB_FAILED {
set poolname [LB::server pool]
set ip [LB::server addr]
set port [LB::server port]
if { [LB::server name] eq $poolname } {
log local0. "All servers in pool $poolname down."
} elseif { [LB::status pool $poolname member $ip $port] eq "down" } {
log local0. "Member $poolname is down."
}
}
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