[smokeping-users] TCPPing bug

Nik Mitev nik at mitev.eu
Thu Feb 9 15:18:12 CET 2012


On the current fully updated version of Debian squeeze TCPPing is
failing to produce results. Tried with latest version from
http://www.vdberg.org/~richard/tcpping, it seems the output of
traceroute is different from what is expected.

root at host:/usr/local/bin# ./tcpping -x 5 -C x.x.x.x 80
x.x.x.x : - - - - -

After replacing line 66:
rtt=`echo "${ttr}" | sed 's/.*] //' | awk '{print $1}'`

with:

rtt=`echo "${ttr}" | sed "/traceroute/d" | sed 's/.*)  //' | awk
'{print $1}'`

it works as expected:

root at host:/usr/local/bin# ./tcpping -x 5 -C x.x.x.x 80
x.x.x.x : 38.507 11.934 81.174 49.297 18.255

and graphing fine.

Two modifications, sed "/traceroute/d" added to remove first line of
output, and changed '] ' to ')  ' in the second expression to
correctly process the line.

Nik



More information about the smokeping-users mailing list