Discussion:
[smokeping-users] smokeping curl specifiying proxy
Lee, Tony
2009-06-12 13:33:54 UTC
Permalink
Hi.

Is there a way to pass the proxy variable or other variables into curl smokeping from curl?

The versions running:

curl --version
curl 7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

smokeping --version
2.003006

---

Sample configuration:

+ Curl
# Curl probe-specific variables
binary = /usr/bin/curl
step = 60

#curl probe target-specific variables
urlformat = -x proxy:80 http://%host/<http://%25host/> <<< This might be the wrong syntax trying to pass -x here.

+ Curl
menu = Curl
title = Curl
probe = Curl

++ Curl-test
menu = Curl-test
title = Curl-test
host = www.google.com<http://www.google.com>
Sorrell, Al
2009-06-12 14:23:15 UTC
Permalink
I believe you can use the following



+ Curl

binary = /usr/local/bin/curl

pings=20

extraargs = --proxy <proxyname>:<proxy_port> --proxy-user
"<domain>\<user>:<pass>"

urlformat = http://%host%



Al



________________________________

From: smokeping-users-***@lists.oetiker.ch
[mailto:smokeping-users-***@lists.oetiker.ch] On Behalf Of Lee, Tony
Sent: Friday, June 12, 2009 9:34 AM
To: smokeping-***@lists.oetiker.ch
Subject: [smokeping-users] smokeping curl specifiying proxy





Hi.



Is there a way to pass the proxy variable or other variables into curl
smokeping from curl?



The versions running:



curl --version

curl 7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b
zlib/1.2.3 libidn/0.6.5

Protocols: tftp ftp telnet dict ldap http file https ftps

Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz



smokeping --version

2.003006



---



Sample configuration:



+ Curl

# Curl probe-specific variables

binary = /usr/bin/curl

step = 60



#curl probe target-specific variables

urlformat = -x proxy:80 http://%host/ <http://%25host/> <<< This might
be the wrong syntax trying to pass -x here.



+ Curl

menu = Curl

title = Curl

probe = Curl



++ Curl-test

menu = Curl-test

title = Curl-test

host = www.google.com





T. Rowe Price (including T. Rowe Price Group, Inc. and its affiliates) and its associates do not provide legal or tax advice. Any tax-related discussion contained in this e-mail, including any attachments, is not intended or written to be used, and cannot be used, for the purpose of (i) avoiding any tax penalties or (ii) promoting, marketing, or recommending to any other party any transaction or matter addressed herein. Please consult your independent legal counsel and/or professional tax advisor regarding any legal or tax issues raised in this e-mail.

The contents of this e-mail and any attachments are intended solely for the use of the named addressee(s) and may contain confidential and/or privileged information. Any unauthorized use, copying, disclosure, or distribution of the contents of this e-mail is strictly prohibited by the sender and may be unlawful. If you are not the intended recipient, please notify the sender immediately and delete this e-mail.
Lee, Tony
2009-06-15 18:22:56 UTC
Permalink
Al,

Thanks for the response.

Yes, I tried something similar to what you mentioned:

+ Curl
# Curl probe-specific variables
binary = /usr/bin/curl
pings = 5
step = 300
extraargs = --proxy proxy:80
urlformat = http://%host%<http://%25host%25>

+++ test
menu = test
title = test
host = www.cnn.com/POLITICS/

restarting smokeping, it doesn't complain and restarts.
But no results in the graph.

Thanks
Tony

From: Sorrell, Al [mailto:***@troweprice.com]
Sent: Friday, June 12, 2009 10:23 AM
To: Lee, Tony; smokeping-***@lists.oetiker.ch
Subject: RE: [smokeping-users] smokeping curl specifiying proxy

I believe you can use the following

+ Curl
binary = /usr/local/bin/curl
pings=20
extraargs = --proxy <proxyname>:<proxy_port> --proxy-user "<domain>\<user>:<pass>"
urlformat = http://%host%

Al

________________________________
From: smokeping-users-***@lists.oetiker.ch [mailto:smokeping-users-***@lists.oetiker.ch] On Behalf Of Lee, Tony
Sent: Friday, June 12, 2009 9:34 AM
To: smokeping-***@lists.oetiker.ch
Subject: [smokeping-users] smokeping curl specifiying proxy


Hi.

Is there a way to pass the proxy variable or other variables into curl smokeping from curl?

The versions running:

curl --version
curl 7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

smokeping --version
2.003006

---

Sample configuration:

+ Curl
# Curl probe-specific variables
binary = /usr/bin/curl
step = 60

#curl probe target-specific variables
urlformat = -x proxy:80 http://%host/<http://%25host/> <<< This might be the wrong syntax trying to pass -x here.

+ Curl
menu = Curl
title = Curl
probe = Curl

++ Curl-test
menu = Curl-test
title = Curl-test
host = www.google.com<http://www.google.com>

T. Rowe Price (including T. Rowe Price Group, Inc. and its affiliates) and its associates do not provide legal or tax advice. Any tax-related discussion contained in this e-mail, including any attachments, is not intended or written to be used, and cannot be used, for the purpose of (i) avoiding any tax penalties or (ii) promoting, marketing, or recommending to any other party any transaction or matter addressed herein. Please consult your independent legal counsel and/or professional tax advisor regarding any legal or tax issues raised in this e-mail.

The contents of this e-mail and any attachments are intended solely for the use of the named addressee(s) and may contain confidential and/or privileged information. Any unauthorized use, copying, disclosure, or distribution of the contents of this e-mail is strictly prohibited by the sender and may be unlawful. If you are not the intended recipient, please notify the sender immediately and delete this e-mail.
Lee, Tony
2009-06-11 21:47:13 UTC
Permalink
Hi.

Is there a way to pass the proxy variable or other variables into curl smokeping from curl?

The versions running:

curl --version
curl 7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz

smokeping --version
2.003006

---

Sample configuration:

+ Curl
# Curl probe-specific variables
binary = /usr/bin/curl
step = 60

#curl probe target-specific variables
urlformat = -x proxy:80 http://%host/<http://%25host/> <<< This might be the wrong syntax trying to pass -x here.

+ Curl
menu = Curl
title = Curl
probe = Curl

++ Curl-test
menu = Curl-test
title = Curl-test
host = www.google.com<http://www.google.com>
Sorrell, Al
2010-03-17 14:08:39 UTC
Permalink
________________________________

From: smokeping-users-bounces+al_sorrell=***@lists.oetiker.ch
[mailto:smokeping-users-bounces+al_sorrell=***@lists.oetiker.
ch] On Behalf Of Lee, Tony
Sent: Thursday, June 11, 2009 12:24 PM
To: smokeping-***@lists.oetiker.ch
Subject: [smokeping-users] smokeping curl specifiying proxy



Hi.



Is there a way to pass the proxy variable or other variables into curl
smokeping from curl?



The versions running:



curl --version

curl 7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b
zlib/1.2.3 libidn/0.6.5

Protocols: tftp ftp telnet dict ldap http file https ftps

Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz



smokeping --version

2.003006



---



Sample configuration:



+ Curl

# Curl probe-specific variables

binary = /usr/bin/curl

step = 60



#curl probe target-specific variables

urlformat = -x proxy:80 http://%host/ <http://%25host/> <<< This might
be the wrong syntax trying to pass -x here.



Try using the "extraargs" flag like this:

+ Curl



binary = /usr/local/bin/curl

pings=20

extraargs = --proxy myproxy:8080 --proxy-user "myuser:mypass"

urlformat = http://%host%


T. Rowe Price (including T. Rowe Price Group, Inc. and its affiliates) and its
associates do not provide legal or tax advice. Any tax-related discussion
contained in this e-mail, including any attachments, is not intended or written to be
used, and cannot be used, for the purpose of (i) avoiding any tax penalties or (ii)
promoting, marketing, or recommending to any other party any transaction or
matter addressed herein. Please consult your independent legal counsel and/or
professional tax advisor regarding any legal or tax issues raised in this e-mail.

The contents of this e-mail and any attachments are intended solely for the use of
the named addressee(s) and may contain confidential and/or privileged
information. Any unauthorized use, copying, disclosure, or distribution of the
contents of this e-mail is strictly prohibited by the sender and may be unlawful. If
you are not the intended recipient, please notify the sender immediately and
delete this e-mail.

Loading...