Kalai_106820
Feb 22, 2012Historic F5 Account
HTTP monitors
When I use a custom http monitor with the below send strings, I'm seeing a error message in /var/log/bigdlog and my pool members are made down though the http service is up in those ports.
Case:1 Simple HTTP/0.9 type:
------------------------------
send "GET /\r\n"
ltm monitor http test_http {
defaults-from http
interval 5
send "GET /\r\n"
time-until-up 0
timeout 16
}
bigdlog error:
--------------
2012-02-23 03:51:22.786483: ID 721 :(_send_active_service_ping): writing [ addr=::ffff:16.186.78.60:13081 srcaddr=::ffff:16.157.132.44:24456 ] send=GET /\x0d\x0a
2012-02-23 03:51:22.786561: ID 721 :(_send_active_service_ping): sent ping [ addr=::ffff:16.186.78.60:13081 srcaddr=::ffff:16.157.132.44:24456 ]
2012-02-23 03:51:22.786651: ID global:(_main_loop): about to select for 0.100000s
2012-02-23 03:51:22.788243: ID 721 :(_main_loop): rfd selected [ addr=::ffff:16.186.78.60:13081 srcaddr=::ffff:16.157.132.44:24456 fd=10 pend=0 ]
2012-02-23 03:51:22.788339: ID 721 :(_recv_active_service_ping): reading [ addr=::ffff:16.186.78.60:13081 srcaddr=::ffff:16.157.132.44:24456 ]
2012-02-23 03:51:22.788404: ID 721 :(_recv_active_service_ping): read failed [ addr=::ffff:16.186.78.60:13081 srcaddr=::ffff:16.157.132.44:24456 ]
Case2: HTTP/1.1 type:
---------------------------
send "GET /\r\n HTTP/1.1\r\nConnection: Close\r\nHost: \r\n\r\n"
In this case, I'm getting success code when using ne, but it fails when I use in monitor:
[admin@selbigip1:Active] ~ echo -ne "GET /\r\n HTTP/1.1\r\nConnection: Close\r\nHost: \r\n\r\n" | nc 16.186.78.60 13082
[admin@selbigip1:Active] ~ echo $?
0
ltm monitor http test_http {
defaults-from http
interval 5
send "GET /\r\n HTTP/1.1\r\nConnection: Close\r\nHost: \r\n\r\n"
time-until-up 0
timeout 16
}
error log:
--------
2012-02-23 03:56:28.232126: ID 721 :(_send_active_service_ping): writing [ addr=::ffff:16.186.78.60:13081 srcaddr=::ffff:16.157.132.44:47568 ] send=GET /\x0d\x0a HTTP/1.1\x0d\x0aConnection: Close\x0d\x0aHost: \x0d\x0a\x0d\x0a
2012-02-23 03:56:28.232238: ID 721 :(_send_active_service_ping): sent ping [ addr=::ffff:16.186.78.60:13081 srcaddr=::ffff:16.157.132.44:47568 ]
2012-02-23 03:56:28.232339: ID global:(_main_loop): about to select for 0.100000s
2012-02-23 03:56:28.233827: ID 721 :(_main_loop): rfd selected [ addr=::ffff:16.186.78.60:13081 srcaddr=::ffff:16.157.132.44:47568 fd=10 pend=0 ]
2012-02-23 03:56:28.233945: ID 721 :(_recv_active_service_ping): reading [ addr=::ffff:16.186.78.60:13081 srcaddr=::ffff:16.157.132.44:47568 ]
2012-02-23 03:56:28.234040: ID 721 :(_recv_active_service_ping): read failed [ addr=::ffff:16.186.78.60:13081 srcaddr=::ffff:16.157.132.44:47568 ]
Even, I tried with different send strings, but no use. Kindly anyone let me know where I'm doing wrong?