Forum Discussion

mrkbgm_240216's avatar
mrkbgm_240216
Icon for Nimbostratus rankNimbostratus
Nov 09, 2017

Monitor receive String Regex

Receive string Regex is not working as expected on HTTP response.

 

Below is HTTP Respone:{"status":"UP","diskSpace":"status":"UP","total":30927785984,"free":25661333504,"threshold":10485760}}

 

We wanted monitor to be marked up if we see Status : UP from the response and ignore rest from above HTTP response. The regex created is not working for us can some one please help to accomplish this. Thanks

 

Current Receive which F5 is not accepting in monitor Config : ^{\s?"status"\s?:\s?(?:"UP"|"UNKNOWN")[\s\d\w\W\D\S\n]}

 

  • You need to escape

    "
    with
    \"

    (\"status\":)\"UP\"|\"UNKNOWN\"

    should work.

    I develop my regex here and keep them as simple as I can.