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?
Thank...
Simon_Chan_1115
Nimbostratus
Sep 06, 2006Dear,
the following is the iRule that we are using:
when CLIENT_ACCEPTED {
set add_persist 1
}
when HTTP_RESPONSE {
if { [HTTP::cookie exists "JSESSIONID"] and $add_persist } {
persist add uie [HTTP::cookie "JSESSIONID"]
set add_persist 0
}
}
when HTTP_REQUEST {
if { [HTTP::cookie exists "JSESSIONID"] } {
persist uie [HTTP::cookie "JSESSIONID"]
} else {
set jsess [findstr [HTTP::uri] "jsessionid" 11 ";"]
if { $jsess != "" } {
persist uie $jsess
}
}
}
it is just simple iRule.
and today our web site down (cannot access) and I need to reboot the active and make failover.
Before failover, I cannot access the admin page and ssh to LTM. I can only use serial console to login and then type reboot in LTM.
do u have any idea on it? since it seems make our LTM memory leak.
Regards
Simon.
You missed a backslash in line 10.
when HTTP_REQUEST { set http_request_time [clock clicks -milliseconds] set request_log_line "\ [HTTP::request_num],\ [IP::remote_addr],\ [HTTP::method],\ [HTTP::version],\ [HTTP::host],\ \"[HTTP::uri]\",\ \"[HTTP::header value Referer]\",\ \"[HTTP::header User-Agent]\",\ \"[HTTP::cookie value JSESSIONID]\",\ [SSL::cipher name],\ [SSL::cipher version],\ [SSL::cipher bits]" } when HTTP_RESPONSE { set http_response_time [ clock clicks -milliseconds ] log local0. "$request_log_line,\ [HTTP::status],\ [HTTP::payload length],\ [expr $http_response_time - $http_request_time]" }
Another option is to send the log to a remote syslog changing this line
log local0. "$request_log_line,\
to
log local0.info "$request_log_line,\
- Walter_KacynskiMar 29, 2017
Cirrostratus
Why didn't you use the HTTP Logging profile instead of this iRule?