[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Proxy for HTTP Health Check

From: Graham Smith
Subject: Re: Using Proxy for HTTP Health Check
Date: Thu, 26 May 2016 08:39:49 +0100

Perhaps an alternative method might be easier of using a brief shell script called from monit using lynx or curl which could use the proxy from environment variable or passed as a switch. curl can use the -x or --proxy switch for example.

Hope that helps


On 26 May 2016 01:08, "Ward, Matthew" <address@hidden> wrote:
Long story short, we need to use a proxy to fire off a request to check if a service is up and running. SO I am attempting to recreate what I would do if I manually telneted to the proxy:

check host APS-Public with address
  group APS
  if failed host port 8181
    send "CONNECT \n"
    expect ".*Connection established.*"
    send "GET /health HTTP/1.0 \n"
    expect ".*{\s*status\s*:\s*UP\s*.*"
  then alert

I end up getting these errors in the log:

GENERIC: successfully sent: 'CONNECT'

Socket test failed for []:8181 -- GENERIC: error receiving data -- Resource temporarily unavailable

But the proxy is up and running… I am assuming I am doing something stupid with my send statement. Any insight?


To unsubscribe:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]