Hi,<br>I have recently installed Smokeping and I am trying to get the curl probe to work. I have been running the daemon in debug mode to troubleshoot the curl issue I am having. It appears that the curl probe is not getting the data that it needs and is recording 100% packet loss.
<br><br>Sep 12 12:22:07 XNETOPS01 smokeping[32379]: Curl: forks 5, timeout for each target 51<br>Sep 12 12:22:07 XNETOPS01 smokeping[341]: Curl: executing command list '/usr/bin/curl','-m','10','-o','/dev/null','-w','Time: %%{time_total} DNS time: %%{time_namelookup} Redirect time: %%{time_redirect}\n','http://%%host/'
<br>Sep 12 12:22:07 XNETOPS01 smokeping[341]: Curl: curl output: 'Time: 0.000 DNS time: 0.000 Redirect time: 0.000', result: 0<br>Sep 12 12:22:07 XNETOPS01 last message repeated 4 times<br>Sep 12 12:22:07 XNETOPS01 smokeping[32379]: Curl:
<a href="http://www.google.com">www.google.com</a>: got<br>Sep 12 12:22:07 XNETOPS01 smokeping[32379]: Calling RRDs::update(/usr/local/smokeping/rrd/Curl/Google.rrd --template uptime:loss:median:ping1:ping2:ping3:ping4:ping5 1189614127:U:5:U:U:U:U:U:U)
<br><br>The problem is if I run the following command data gets returned as you would expect.<br><br>[root@XNETOPS01 etc]# /usr/bin/curl -m 10 -o /dev/null -w "Time: %{time_total} DNS time: %{time_namelookup} Redirect time: %{time_redirect}\n"
<a href="http://www.google.com">www.google.com</a><br> % Total % Received % Xferd Average Speed Time Time Time Current<br> Dload Upload Total Spent Left Speed<br>100 3986 0 3986 0 0 110k 0 --:--:-- --:--:-- --:--:-- 42250
<br>Time: 0.035 DNS time: 0.002 Redirect time: 0.000<br><br><br>I changed a few of the delimiting characters to be able to run it at the command line but nothing that I can see that you change the output. Has anyone else had a similar problem with the curl probe and if so how did you fix it?
<br><br>Here are the versions and a config snippet<br><br>curl-devel-7.15.5-2.el5<br>curl-7.15.5-2.el5<br>smokeping-2.2.3<br>perl-5.8.8<br><br>*** Probes ***<br><br>+ FPing<br>binary = /usr/local/sbin/fping<br><br>+ Curl<br>
# probe-specific variables<br>binary = /usr/bin/curl<br>pings = 5<br>step = 60<br><br># a default for this target-specific variable<br>urlformat = http://%host/<br><br><br>+ Curl<br>menu = Curl<br>title = Curl Probe<br><br>
++ Google<br>menu = <a href="http://Google.com">Google.com</a><br>title = <a href="http://Google.com">Google.com</a><br>probe = Curl<br>host = <a href="http://www.google.com">www.google.com</a><br><br>Thanks for any help.
<br>Nick<br><br><br><br><br>