Forum Discussion
D_Nattila_23203
Nimbostratus
May 17, 2013Health Monitor - OR vs AND?
I would like to have two health monitors for one pool, but not do an "AND" - must I create an external monitor, or this there logic to allow the members to be available when either of the two health monitors is successful?
14 Replies
- nitass
Employee
I would like to have two health monitors for one pool, but not do an "AND" there is "Availability Requirement" setting under pool properties but you have to change configuration view from basic to advanced to see the setting. - D_Nattila_23203
Nimbostratus
What I would like to do is allow either a '200 ok' for a normal response but also allow a specific '503' response when I implement Microsoft's built-in 'out of service' page for IIS .NET applications. This is done by placing a file named 'app_offline.htm' in the root directory of either the .NET website or .NET application space and IIS ignores all content in the directory path and instead responds with whatever HTML content is within the app_offline.htm file. This is used while the website or application space is updaetd so that the requester does not get an unmanaged .NET failure response. So either I would like to be able to specify an 'OR' within the Receive String field, or have two monitors with an OR between the two. Thanks for any help. - Kevin_Stewart
Employee
So just to get this straight, if the server responds with a 200 OR a 503 you want it to be marked UP? You want users to see a 503 message? - D_Nattila_23203
Nimbostratus
Correct (sort of) - I want to be able to have two responses be acceptable so as to mark the pool member as being 'UP' - in this case, it's a special IIS 503 and actually sends the contents of the app_offline.htm file to the browser. Within the app_offline.htm file, I put a nice 'sorry, we're updating the web site and it will be available in 10 minutes' message (for example). Allows for time for the new .NET files to be pushed to the site and once they are, the app_offline.htm page is removed from the directory.
http://stackoverflow.com/questions/1153449/asp-net-2-0-how-to-use-app-offline-htm - Kevin_Stewart
Employee
It seems doable. Not sure what version you're on, but the trick in 11.3 was getting the Send String correct.
Send String:
GET / HTTP/1.0\r\n\r\n
Receive String:
OK|Service Unavailable - D_Nattila_23203
Nimbostratus
v11.3 HF1 , so I'll give that a shot (using the | for the 'or') - I have the send & receive strings working fine for both cases individually, just wasn't sure whether I could combine them into one receive string.
As an FYI, so as not to flood the IIS logs every 5 seconds w/the monitor hits, I had set up a virtual directory under each web site with a simple HTML file for the 'normal' monitoring of the web site itself and disabled the IIS logging for the virtual directory. - D_Nattila_23203
Nimbostratus
HTTP/1.1 200 OK | HTTP/1.1 503 Service Unavailable did not work, unfortunately... - Kevin_Stewart
Employee
Did you try just "OK|Service Unavailable"?? - D_Nattila_23203
Nimbostratus
Yes, still no good. Also tried putting quotes ("Service Unavailable"), but syntax is not accepted. . . - D_Nattila_23203
Nimbostratus
Also removed the spaces around the 'or' symbol, still not working
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
