Forum Discussion

cmcnicholas's avatar
May 09, 2024

Monitor string query

Hello,

 

I am trying to set up a monitor for a pool with the config below, but I get invalid json message when trying to deploy via AS3

Monitor SEND String: GET /gateway/ping HTTP/1.1\r\nHost: <Domain-Name>\r\nConnection: Close\r\n\r\n

Monitor RECEIVE String: HTTP/1\.(0|1) 200

 

 

 

Invalid JSON!

Error: Parse error on line 274: ...n", "receive": "HTTP/1\.(0|1) 200" ----------------------^

Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined'

 

 
  • Ah. I changed Receive String to:

    "HTTP/1.(0|1) (200)" and it seems to be ok now.

  • Ah. I changed Receive String to:

    "HTTP/1.(0|1) (200)" and it seems to be ok now.