Forum Discussion

Santavi_241428's avatar
Santavi_241428
Icon for Nimbostratus rankNimbostratus
Dec 02, 2016

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

  • 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's avatar
      Leonardo_Accor1
      Icon for Nimbostratus rankNimbostratus

      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's avatar
      Santavi_241428
      Icon for Nimbostratus rankNimbostratus

      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"..

       

  • 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.