Forum Discussion
Health monitor receive string for MM/DD/YYYY HH:MM:SS AM/PM format
- Mar 23, 2024
Based on that curl it seems like the path you're attempting to hit doesn't exist. I'm glad it works in the test pool though.
Can you provide us with the exact text you receive back in the body of the page and what line number it's on? I know that the F5 will not check after a certain amount of lines in a response and it could be that we haven't accounted for the appropriate amount of white space.
This is the response
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head><title>
Health Check
</title></head>
<body>
<div>
3/20/2024 4:25:32 AM
</div>
</body>
The information on line 9 is what is presented when the url is accessed directly (provided the site is healthy). That information is what i need the regex for, as its constantly changing given its a date/time format.
Thanks
Adrian
- PauliusMar 22, 2024MVP
It could be that we aren't accounting for the whitespace at the beginning of the line. Try the following regex and see if that resolves the issue.
\s+([0-9]+(\/[0-9]+)+)\s([0-9]+(:[0-9]+)+)\s[AaPp]M
What are you doing on the F5 to verify that that is indeed the response that the F5 sees when it performs the health monitor?
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