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.
Hi Paullius
Its a HTTPS monitor that trying to access an internal sites health validation .aspx using this as the send string
GET https://<test.domain.com>/v1/HealthValidation.aspx
The site replies with a date format of 3/21/2024 5:40:10 AM format giving the current time in US CST
I'm trying to use a regex as the receive string
\0[1-9]|1[1,2]\/\0[1-9]|[12][0-9]|3[01]\/\[19|20]\d{2}\s\d{1,2}\:\d{1,2}\:\d{1,2}\s\[AM|PM]
But this is failing.
I dont have any username/password configured in the monitor. Reverse and Transparent are both set to No. Im using the VIP IP address that Im testing against as the Alias Address, and te service port is set to 443. Adaptive is not enabled.
Appreciate any help
Thanks
Adrian
- PauliusMar 21, 2024MVP
I believe the regex is the piece that is incorrect and it should be the following.
([0-9]+(\/[0-9]+)+)\s([0-9]+(:[0-9]+)+)\s[AaPp]M
I used the following site to help me build the regex because I often make mistakes or just don't know what the exact variable should be.
I use this next site to validate my regex works.
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