Forum Discussion

wtwagon_99154's avatar
wtwagon_99154
Icon for Nimbostratus rankNimbostratus
Feb 17, 2009

Is it possible to monitor for two expressions?

I wanted to see if it was possible to run a health monitor against two expressions.

 

 

Example:

 

 

GET /index.html HTTP/1.0\r\n\r\n

 

 

HTTP/1.0 200

 

 

OR

 

 

HTTP/1.0 404

 

 

 

Or can you apply two monitors against it -- one looking for HTTP/1.0 200 and one looking for HTTP/1.0 404. If they both fail, the pool member will be determined as down?

 

 

Thanks

 

1 Reply

  • James_Quinby_46's avatar
    James_Quinby_46
    Historic F5 Account
    I think this is totally possible - you'd want to craft a regular expression that contains both content that will be on the page under normal conditions, and a string that appears when a 404 is displayed. Take a peek at the 2nd post in this thread for an example:

     

     

    http://devcentral.f5.com/Default.aspx?tabid=53&forumid=32&tpage=1&view=topic&postid=3213232132