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.
Thanks but it still doesn't like it, getting this in the logs
[0][6606] 2024-03-21 08:29:53.137524: ID 336 :(_recv_active_service_ping): reading [ tmm?=false td=true tr=false addr=::ffff:<VIP_IP>:443 srcaddr=::ffff:<F5_IP>%0:42482 ]
[0][6606] 2024-03-21 08:29:53.137553: ID 336 :(do_ssl_read) legacy mode: false [ tmm?=false td=true tr=false addr=::ffff:<VIP_IP>:443 srcaddr=::ffff:<F5_IP>%0:42482 ]
[0][6606] 2024-03-21 08:29:53.137593: ID 336 :(do_ssl_read): state: 3 [ tmm?=false td=true tr=false addr=::ffff:<VIP_IP>:443 srcaddr=::ffff:<F5_IP>%0:42482 ]
[0][6606] 2024-03-21 08:29:53.137628: ID 336 :SSL_read() returns -1, error=5 [ tmm?=false td=true tr=false srcaddr=::ffff:<F5_IP>%0:42482 ]
Any other suggestions?
Cheers
Adrian
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.
- adrianglendinningMar 22, 2024Nimbostratus
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