Forum Discussion

tushar2k_312391's avatar
tushar2k_312391
Icon for Nimbostratus rankNimbostratus
Aug 31, 2018

Is there possible to configure expect string.

User has asked for health monitor as provided below. Is there possible to configure expect string as provided below.

 

probe http PORT-8081-HTTP port 8081 passdetect interval 45 receive 3 request method get url /health_status expect status 200 302 expect string '{"radix":"OK","redis":"OK"}' open 2

 

1 Reply

  • Hello,

     

    Of course you can set "Receive String/expect string" in your monitor:

     

    Specifies the regular expression representing the text string that the monitor looks for in the returned resource. The most common receive expressions contain a text string that is included in an HTML file on your site. The text string can be regular text, HTML tags, or image names.

     

    So in your case you have to se an regular epression.