Forum Discussion
Pankaj_71762
Nimbostratus
Dec 09, 2008Monitor multiple recieve strings for HTTP monitor
Hi,
Is it possible to monitor for multiple responses under the same HTTP monitor.
We like to monitor both 503 or 200 response by sending
get / HTTP1.1
Thank you.
- dennypayne
Employee
Not really within the base HTTP monitor type. You could either create 2 separate monitors and require that the pool members pass both of them with the Availability Requirement setting set to All (default - under Advanced in the Pool dialog), or you could create a scripted monitor (External type) that would use curl and parse the result for the codes you want to see. - dennypayne
Employee
Actually I misspoke, for your scenario with the 2 monitors I would set the pool's Availability Requirement to At Least 1, not All. That way either the 200 or the 503 response would result in success. - hoolio
Cirrostratus
I think the receive string is evaluated as a regular expression. So you could potentially set the receive string to something like: - Pankaj_71762
Nimbostratus
Thanks Alot. It works good.
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