Forum Discussion

hamalon74_35042's avatar
hamalon74_35042
Icon for Nimbostratus rankNimbostratus
Dec 08, 2015

External Monitor through Proxy via a different Route Domain

Is there a way to monitor different web pages off the internet through a proxy that is not on the default route domain?

 

I am able to run a curl command from route domain 2. I have tried a couple of different external monitors. If you recommend one, could you share the variables used as well as different arguments?

 

Thanks

 

1 Reply

  • External Monitor is the best way using 'rdexec' and 'curl' with proxy:

    rdexec   []
    curl -x, --proxy <[protocol://][user:password@]proxyhost[:port]> 
    

    E.g. to hit wwww.google.com using proxy 192.168.1.1 on port 8080 using proxy username 'testuser' and password 'password1' and looking for a response of "200 OK" in an external monitor script:

    rdexec 1 curl -fNsi http://216.58.210.4/ -H 'Host: www.google.com' --proxy http://192.168.1.1:8080 --proxy-user testuser:password1 | grep -i "200 OK" 2>&1 > /dev/null