Forum Discussion

Muhammad_Irfan1's avatar
Dec 18, 2014

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

  • 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.

     

  • You can create a monitor and use the send string

    Get / HTTP/1.1\r\nHost: example.com\r\nConnection: Close\r\n\r\n
    . Then your receive string could be
    200
    or
    200 OK
    . If you ever wanted to check for other response codes, you could add other options with the pipe, like this
    200|301
    .

  • 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.