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 Graham On 26 May 2016 01:08, "Ward, Matthew" <[email protected]> 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 something.somewhere.com > group APS > if failed host proxy.nordstrom.net port 8181 > send "CONNECT something.somewhere.com:80 \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 something.somewhere.com:80' > > Socket test failed for [10.12.146.20]: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? > > Thanks, > Matt > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general >
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
