Forum Discussion
HTTPS Monitor
I want to make a HTTPS monitor, which should check if the webserver returns a login page then its up otherwise down. I think login page response code would be 200 I suppose. If the response is 200 then its up otherwise down. webserver is using HTTP 1.1
3 Replies
- PeteWhite
Employee
Use your browser to open the page and check the request and response with wireshark. Pick something out of the login form which won't change or check the response is "200 OK". Setup a monitor and test it thoroughly.
- Michael_Jenkins
Cirrostratus
You can create a monitor and use the send string
. Then your receive string could beGet / HTTP/1.1\r\nHost: example.com\r\nConnection: Close\r\n\r\n
or200
. If you ever wanted to check for other response codes, you could add other options with the pipe, like this200 OK
.200|301 - Ed_Summers
Nimbostratus
If I want the monitor to verify a specific page (such as a login page), I'll typically verify unique text on the page as Pete White noted, vice an HTTP 200 response. Have run into cases where a server will generate other dynamic content, as well as a case where the server admin accidentally posted a default page to their production server.
The monitor should run against the port that the pool member is configured for. In your case if the pool member is configured as 10.0.0.1:4443, the monitor should use that port by default. If you need to monitor a different port than configured for the pool member, use the 'advanced' settings in monitor configuration and configure the 'alias service port' for the monitor.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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