customized https monitoring with Basic Authorization
I am trying to do customized https member pool monitoring with Basic Authorization. my curl testing are working fine (results are mentioned below), but F5 http monitoring send and receive string are not working (mentioned below). i used the below article to do this https://support.f5.com/csp/article/K1033?sr=58157087
CURL
[root@testing123 ~] curl -kv -u test:test123 https://test.example.com:4200/_check/health * About to connect() to test.example.com port 4200 (0) * Trying xx.xx.xxx.xxx ... connected * Connected to test.example.com (xx.xx.xxx.xxx) port 4200 (0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * warning: ignoring value of ssl.verifyhost * skipping SSL peer certificate verification * SSL connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA * Server certificate: * subject: CN=test.example.com,OU=XXXXXXXXXXX,OU="Hosted by XXXXXXXXX, ",OU=XXXXXXXX,O="XXXXXXXXXXXX, Inc.",STREET=XXXXXXXXXXXXXXXXXXXXX,L=XXXXXX,ST=XXX,postalCode=XXXXXXX,C=XXX * start date: Oct 25 00:00:00 2016 GMT * expire date: Oct 25 23:59:59 2018 GMT * common name: test.example.com * issuer: CN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX,O=XXXXXXXXXXXX,L=XXXXXXXX,ST=XXXXXXXXXX,C=XXX * Server auth using Basic with user 'test'
GET /_check/health HTTP/1.1 Authorization: Basic dGVzdDp0ZXN0MTIz User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.27.1 zlib/1.2.3 libidn/1.18 libssh2/1.4.2 Host: test.example.com:4200 Accept: /
< HTTP/1.1 200 OK < Content-Type: application/json; charset=UTF-8 < Content-Length: 403 < * Connection 0 to host test.example.com left intact * Closing connection 0 {"cluster_name":"Exampletestingplatform","status":"green”}
F5 http monitoring send and receive string
POST /_check/health HTTP/1.1\r\nHost: test.example.com\r\nContent-Length:403\r\nConnection: Close\r\n\r\ndGVzdDp0ZXN0MTIz
Receive String: - HTTP/1.1 200 OK