Forum Discussion

PK_294685's avatar
PK_294685
Icon for Nimbostratus rankNimbostratus
Apr 12, 2017

HTTP Monitor Shows UP even Recv String is different

Hello Folks, Straight to my question, I have a monitor as below:

 

Send String: GET /app/ping HTTP/1.1\r\nHost:company.example.com\r\nConnection: Close\r\n

 

Receive String : active

 

I want my member to be down if I get back receive string other than "active".

 

Currently member is showing up even if the receive string is different.

 

How should i implement for this to work?

 

Any help is greatly appreciated! Thanks in advance!

 

  • P_K's avatar
    P_K
    Icon for Altostratus rankAltostratus

    Fixed this by using carriage returns on Receive String like below

     

    \r\nactive.

     

    Before it was considering 200 OK as response so was UP but now its ignoring the HTTP 200 OK.