[smokeping-users] Curl not reporting data

Nick Maio nickmaio at gmail.com
Wed Sep 12 18:33:43 CEST 2007


Hi,
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.

Sep 12 12:22:07 XNETOPS01 smokeping[32379]: Curl: forks 5, timeout for each
target 51
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/'
Sep 12 12:22:07 XNETOPS01 smokeping[341]: Curl: curl output: 'Time:
0.000DNS time:
0.000 Redirect time: 0.000', result: 0
Sep 12 12:22:07 XNETOPS01 last message repeated 4 times
Sep 12 12:22:07 XNETOPS01 smokeping[32379]: Curl: www.google.com: got
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)

The problem is if I run the following command data gets returned as you
would expect.

[root at XNETOPS01 etc]# /usr/bin/curl -m 10 -o /dev/null -w "Time:
%{time_total} DNS time: %{time_namelookup} Redirect time:
%{time_redirect}\n" www.google.com
  % Total    % Received % Xferd  Average Speed   Time    Time     Time
Current
                                 Dload  Upload   Total   Spent    Left
Speed
100  3986    0  3986    0     0   110k      0 --:--:-- --:--:-- --:--:--
42250
Time: 0.035 DNS time: 0.002 Redirect time: 0.000


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?

Here are the versions and a config snippet

curl-devel-7.15.5-2.el5
curl-7.15.5-2.el5
smokeping-2.2.3
perl-5.8.8

*** Probes ***

+ FPing
binary = /usr/local/sbin/fping

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

# a default for this target-specific variable
urlformat = http://%host/


+ Curl
menu = Curl
title = Curl Probe

++ Google
menu = Google.com
title = Google.com
probe = Curl
host = www.google.com

Thanks for any help.
Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20070912/89180196/attachment.html 


More information about the smokeping-users mailing list