cancel
Showing results for 
Search instead for 
Did you mean: 

monitoring web page on server for health, correct syntax please

CarlT
Altostratus
Altostratus

Hi All, we have some monitors on our f5 to monitor a web page and look for a response to ensure it is running.

An example of one that works on our system uses the syntax below,

GET / HTTP/1.1\r\nHost: test.test.com\r\nConnection: Close\r\n\r\n

 

We need to monitor a site that uses the below webpage , however it does not work, can someone help me to correct the syntax

https://xxxx.xx.local:8443/tc/controller/test

and the response to he site should be

###### This is presentation tier test page!! ######

 

Can someone tell me what I need to change?

1 REPLY 1

Something like below should do the work,

create ltm monitor https TEST-HTTPS { interval 30 timeout 91 send "GET /tc/controller/test HTTP/1.1\\r\\nUser-Agent: BigIP Prober\\r\\nHost: test.test.com\\r\\nConnection: close\\r\\n\\r\\n" recv "This is presentation tier test page" recv-disable "Drain" }