Forum Discussion
Need help regarding Dynamic response on receive string on LTM.
HI Team,
I am facing an issue on LTM health monitoring.. The request is like below: There is a page which will give the output in receive string in everyday/every second time changing format
"date Fri Dec 02 03:28:14 CST 2016"
Now the date and time will be changing in everyday/every second along with months.. I have never came across this kind of request before..How can I setup my receive string to match the above output..Any help can be done here please?
7 Replies
- Leonardo_Accor1
Nimbostratus
But you strictly must check if the time is correct or you have to check if the page is send properly ? If you have only to check if the page is send correctly, you can configure a "HEAD" test and check the response code (200 OK).
regards Leonardo
- Leonardo_Accor1
Nimbostratus
Let me add that in "Receive String" filed you can use regular expression, so if you did not check if the time is correct, you can only check the format of the string (date [Mon,Tue,Wed..] [Jan,Feb...] \d\d... and so on).
- Santavi_241428
Nimbostratus
Hi Leonard,
Many thanks for your response..We need to check the time..How can I write by using regular expression for matching the format of the strings for "date","Day" or "month"..
- Leonardo_Accor1
Nimbostratus
Hi Santavi, you can find resources here: https://support.f5.com/kb/en-us/solutions/public/5000/900/sol5917.html You can try this:
date (Sun|Mon|Tue|Wed|Thu|Fri|Sat) (Jan|Feb|Mar|Apr|Maj|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \d\d \d\d:\d\d:\d\d CST \d\d\d\d
If you need to do quite advanced checking of the return content of the server for your health monitor, then I recommend looking into external advanced monitoring scripts (EAV). With these scripts you would have access to various scripting languages and other CLI tools such as grep.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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