Smokeping – Curl vs AnotherCurl

Curl can provide us the following time report:

time_namelookup
time_redirect
time_connect
time_appconnect
time_pretransfer
time_starttransfer
time_total

To get these report time, you need to use the option -w , here is an example:

curl -L –output /dev/null –silent –show-error –w ‘lookup: %{time_namelookup}\nconnect: %{time_connect}\nappconnect: %{time_appconnect}\npretransfer: %{time_pretransfer}\nredirect: %{time_redirect}\nstarttransfer: %{time_starttransfer}\ntotal: %{time_total}\n’ ‘google.com’

By default Smokeping Curl probe only fetch the load time – that is total_time – dns resolution.

There are many occasions we have with DNS lookup, so we can’t find that issue.

That’s why we have “AnotherCurl” probe , the big difference is the “write_out” option , AnotherCurl allows us to specify which the probe will report.


+AnotherCurl

binary = /usr/bin/curl
forks = 5
offset = 50%
step = 300

# The following variables can be overridden in each target section
agent = User-Agent: Lynx/2.8.4rel.1 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.6c
extraargs = -6 –head –user user:password
extrare = / /
follow_redirects = yes
include_redirects = yes
insecure_ssl = 1
interface = eth0
pings = 5
ssl2 = 1
timeout = 20
urlformat = http://%host%/ # mandatory
write_out = time_total

Leave a Reply

Your email address will not be published. Required fields are marked *