<html><head><title>Re: [smokeping-users] Smokeping not graphing tcpping data</title>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
</head>
<body>
<span style=" font-family:'Courier New'; font-size: 9pt;">[Top post]<br>
<br>
I'm not sure about the second [manual] result, but the debug shows that TCPPing came back with:<br>
<span style=" font-size: 8pt;">uptime:loss:median:ping1:ping2:ping3:ping4:ping5:ping6:ping7:ping8:ping9:ping10:ping11:ping12:ping13:ping14:ping15:ping16:ping17:ping18:ping19:ping20 1408568077:U:20:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U)<br>
<br>
<span style=" font-size: 9pt;">[U] - meaning unknown.<br>
<br>
Is it possible that the TCPPing executable isn't where you think [or somkeping] thinks it is, and/or can't run it for some reason?<br>
<br>
I don't think you should ever get an unknown - you should either get a result or a loss - but unknown may be what you get if SP can't run it properly.<br>
<br>
---<br>
One other issue, I see you're hitting the 443 [HTTP-SSL] port. I'd guess this may be part of the issue. I seem to recall issues getting TCPPing to work with SSL sessions properly - how are you going to validate a cert etc.<br>
<br>
For that, I think this would be more appropo:<br>
</span></span></span><a style=" font-family:'Courier New'; font-size: 9pt;" href="http://oss.oetiker.ch/smokeping/probe/EchoPingHttps.en.html">http://oss.oetiker.ch/smokeping/probe/EchoPingHttps.en.html</a> <br>
<br>
<span style=" font-family:'Courier New'; font-size: 9pt;">My gut says it's the HTTPS that's the problem, but both are worth looking into.<br>
<br>
HTH<br>
-Greg<br>
<br>
</span><table>
<tr>
<td width=2 bgcolor= #0000ff><br>
</td>
<td><span style=" font-family:'courier new'; font-size: 9pt;">Debian Lenny<br>
smokeping 2.003006<br>
<br>
Below is a copy of smoke ping debug output, along with the output of running the command manually. I'm not sure why, but I'm not see numerical values returned when running the command manually. I'm guess this is why no data is being logged in the graph. All rrd files are owned by smokeping:smokeping and are have perms of 755.<br>
<br>
Any thoughts?<br>
<br>
<span style=" font-size: 8pt;">user@server:/var/lib/smokeping/# smokeping --debug<br>
### assuming you are using an tcpping copy reporting in milliseconds<br>
### Compiling alert detector pattern 'startloss'<br>
### ==S,>0%,>0%,>0%<br>
sub { <br>
my $d = shift;<br>
my $y = $d->{loss};<br>
for(1){<br>
my $minlength = 4;<br>
my $maxlength = 4;<br>
next if scalar @$y < $minlength ;<br>
next unless defined $y->[-4] and $y->[-4] eq 'S';<br>
next unless defined $y->[-3]<br>
and $y->[-3] =~ /^\d/<br>
and $y->[-3] > 0;<br>
next unless defined $y->[-2]<br>
and $y->[-2] =~ /^\d/<br>
and $y->[-2] > 0;<br>
next unless defined $y->[-1]<br>
and $y->[-1] =~ /^\d/<br>
and $y->[-1] > 0;<br>
return 1;<br>
}<br>
return 0;<br>
}<br>
<br>
### Compiling alert detector pattern 'rttdetect'<br>
### <10,<10,<10,<10,<10,<100,>100,>100,>100<br>
sub { <br>
my $d = shift;<br>
my $y = $d->{rtt};<br>
for(1){<br>
my $minlength = 9;<br>
my $maxlength = 9;<br>
next if scalar @$y < $minlength ;<br>
next unless defined $y->[-9]<br>
and $y->[-9] =~ /^\d/<br>
and $y->[-9] < 0.01;<br>
next unless defined $y->[-8]<br>
and $y->[-8] =~ /^\d/<br>
and $y->[-8] < 0.01;<br>
next unless defined $y->[-7]<br>
and $y->[-7] =~ /^\d/<br>
and $y->[-7] < 0.01;<br>
next unless defined $y->[-6]<br>
and $y->[-6] =~ /^\d/<br>
and $y->[-6] < 0.01;<br>
next unless defined $y->[-5]<br>
and $y->[-5] =~ /^\d/<br>
and $y->[-5] < 0.01;<br>
next unless defined $y->[-4]<br>
and $y->[-4] =~ /^\d/<br>
and $y->[-4] < 0.1;<br>
next unless defined $y->[-3]<br>
and $y->[-3] =~ /^\d/<br>
and $y->[-3] > 0.1;<br>
next unless defined $y->[-2]<br>
and $y->[-2] =~ /^\d/<br>
and $y->[-2] > 0.1;<br>
next unless defined $y->[-1]<br>
and $y->[-1] =~ /^\d/<br>
and $y->[-1] > 0.1;<br>
return 1;<br>
}<br>
return 0;<br>
}<br>
<br>
### Compiling alert detector pattern 'bigloss'<br>
### ==0%,==0%,==0%,==0%,>0%,>0%,>0%<br>
sub { <br>
my $d = shift;<br>
my $y = $d->{loss};<br>
for(1){<br>
my $minlength = 7;<br>
my $maxlength = 7;<br>
next if scalar @$y < $minlength ;<br>
next unless defined $y->[-7]<br>
and $y->[-7] =~ /^\d/<br>
and $y->[-7] == 0;<br>
next unless defined $y->[-6]<br>
and $y->[-6] =~ /^\d/<br>
and $y->[-6] == 0;<br>
next unless defined $y->[-5]<br>
and $y->[-5] =~ /^\d/<br>
and $y->[-5] == 0;<br>
next unless defined $y->[-4]<br>
and $y->[-4] =~ /^\d/<br>
and $y->[-4] == 0;<br>
next unless defined $y->[-3]<br>
and $y->[-3] =~ /^\d/<br>
and $y->[-3] > 0;<br>
next unless defined $y->[-2]<br>
and $y->[-2] =~ /^\d/<br>
and $y->[-2] > 0;<br>
next unless defined $y->[-1]<br>
and $y->[-1] =~ /^\d/<br>
and $y->[-1] > 0;<br>
return 1;<br>
}<br>
return 0;<br>
}<br>
<br>
### Compiling alert detector pattern 'someloss'<br>
### >0%,*12*,>0%,*12*,>0%<br>
sub { <br>
my $d = shift;<br>
my $y = $d->{loss};<br>
for(1){<br>
my $imax2 = min(@$y - 3, 12);<br>
my $imax1 = min(@$y - 3, 12);<br>
my $minlength = 3;<br>
my $maxlength = 27;<br>
next if scalar @$y < $minlength ;<br>
my $i1;<br>
for($i1=0; $i1 < min($maxlength,$imax1); $i1++){<br>
my $i2;<br>
for($i2=0; $i2 < min($maxlength-$i1,$imax2); $i2++){<br>
next unless defined $y->[-3-$i1-$i2]<br>
and $y->[-3-$i1-$i2] =~ /^\d/<br>
and $y->[-3-$i1-$i2] > 0;<br>
last;<br>
}<br>
return 0 if $i2 >= min($maxlength-$i1-$i2,$imax2);<br>
next unless defined $y->[-2-$i1]<br>
and $y->[-2-$i1] =~ /^\d/<br>
and $y->[-2-$i1] > 0;<br>
last;<br>
}<br>
return 0 if $i1 >= min($maxlength-$i1,$imax1);<br>
next unless defined $y->[-1]<br>
and $y->[-1] =~ /^\d/<br>
and $y->[-1] > 0;<br>
return 1;<br>
}<br>
return 0;<br>
}<br>
<br>
<br>
<br>
Smokeping version 2.003006 successfully launched.<br>
Not entering multiprocess mode with '--debug'. Use '--debug-daemon' for that.<br>
EchoPingHttps: probing 0 targets with step 300 s and offset 232 s.<br>
FPing: probing 0 targets with step 300 s and offset 232 s.<br>
TCPPing: probing 2 targets with step 300 s and offset 232 s.<br>
TCPPing: forks 5, timeout for each target 101<br>
TCPPing: Executing /usr/bin/tcpping -C -x 20 </span></span><a style=" font-family:'courier new';" href="http://gateway17.jetpay.com">gateway17.jetpay.com</a><span style=" font-family:'courier new';"> 443<br>
TCPPing: Executing /usr/bin/tcpping -C -x 20 </span><a style=" font-family:'courier new';" href="http://gateway14.jetpay.com">gateway14.jetpay.com</a><span style=" font-family:'courier new';"> 443<br>
TCPPing: </span><a style=" font-family:'courier new';" href="http://gateway14.jetpay.com">gateway14.jetpay.com</a><span style=" font-family:'courier new';">: got <br>
TCPPing: </span><a style=" font-family:'courier new';" href="http://gateway17.jetpay.com">gateway17.jetpay.com</a><span style=" font-family:'courier new';">: got <br>
Calling RRDs::update(/var/lib/smokeping/JetPay/Gateway14.rrd --template uptime:loss:median:ping1:ping2:ping3:ping4:ping5:ping6:ping7:ping8:ping9:ping10:ping11:ping12:ping13:ping14:ping15:ping16:ping17:ping18:ping19:ping20 1408568077:U:20:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U)<br>
Calling RRDs::update(/var/lib/smokeping/JetPay/Gateway17.rrd --template uptime:loss:median:ping1:ping2:ping3:ping4:ping5:ping6:ping7:ping8:ping9:ping10:ping11:ping12:ping13:ping14:ping15:ping16:ping17:ping18:ping19:ping20 1408568077:U:20:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U)<br>
<br>
<br>
<span style=" font-size: 9pt;">-----------------------------------<br>
output from running the command manually<br>
-----------------------------------<br>
<br>
<span style=" font-size: 8pt;">user@server:/etc/smokeping/config.d# /usr/bin/tcpping -C -x 20 </span></span></span><a style=" font-family:'courier new';" href="http://gateway14.jetpay.com">gateway14.jetpay.com</a><span style=" font-family:'courier new';"> 443<br>
</span><a style=" font-family:'courier new';" href="http://gateway14.jetpay.com">gateway14.jetpay.com</a><span style=" font-family:'courier new';"> : - - - - - - - - - - - - - - - - - - - -<br>
user@server:/etc/smokeping/config.d#</td>
</tr>
</table>
<br><br>
</body></html>