[smokeping-users] TCPPing probe doesn't generate data
David Tomic
young_einstein at internode.on.net
Tue Jun 17 11:01:12 CEST 2008
G.W. Haywood wrote:
> <snip>
>
> 8<----------------------------------------------------------------------
> while (<$outh>){
> chomp;
> $self->do_debug("TCPPing.pm: pingone: Got output: '$_'"); # 15.06.08: -- GWH --
> next unless /^\S+\s+:\s+[\d\.]/; #filter out error messages from tcpping
> @times = split /\s+/;
> my $ip = shift @times;
> next unless ':' eq shift @times; #drop the colon
>
> @times = map {sprintf "%.10e", $_ / $self->{pingfactor}} sort {$a <=> $b} grep /^\d/, @times;
> }
> 8<----------------------------------------------------------------------
>
> As you can see I've tweaked the lines a little from the original, I
> like the debug output to tell me which script it's from and which
> function in the script so that you can see what's going on in the log.
>
> Here's the debug output in /var/log/messages from probes to a couple
> of machines on my LAN:
>
> 8<----------------------------------------------------------------------
> Jun 17 08:57:30 tornado smokeping[27472]: TCPPing: forks 5, timeout for each target 46
> Jun 17 08:57:30 tornado smokeping[28713]: TCPPing: TCPPing.pm: pingone: Executing /usr/bin/tcpping -C -x 3 pk2.local.jubileegroup.co.uk 22
> Jun 17 08:57:30 tornado smokeping[28712]: TCPPing: TCPPing.pm: pingone: Executing /usr/bin/tcpping -C -x 3 192.168.0.252 22
> Jun 17 08:57:33 tornado smokeping[28713]: TCPPing: TCPPing.pm: pingone: Got output: 'pk2.local.jubileegroup.co.uk : 0.140 0.182 0.182'
> Jun 17 08:57:33 tornado smokeping[27472]: TCPPing: pk2.local.jubileegroup.co.uk: got 1.4000000000e-04 1.8200000000e-04 1.8200000000e-04
> Jun 17 08:57:33 tornado smokeping[28712]: TCPPing: TCPPing.pm: pingone: Got output: '192.168.0.252 : 5.722 8.353 5.410'
> Jun 17 08:57:33 tornado smokeping[27472]: TCPPing: 192.168.0.252: got 5.4100000000e-03 5.7220000000e-03 8.3530000000e-03
> 8<----------------------------------------------------------------------
>
> Are you seeing nothing like that at all?
>
> --
>
Right ... here's what I've done then.
1. Edited/saved TCPPing.pm as above [adding the debug line].
2. Killed speedy_backend.
3. Restarted smokeping. [I know that shouldn't be necessary, but it logs
the restart in the messages file, so it makes an easy bookmark to see
where the changes have kicked in.]
4. Run smokeping --debug
Now ... this is where it gets a little bit weird.
I'm still not seeing anything from the TCPPing probe in
/var/log/messages ... but I *DO* see it in the smokeping debug screen,
and I most certainly wasn't getting that before this most recent change!
8<----------------------------------------------------------------------
TCPPing: forks 5, timeout for each target 76
TCPPing: Executing /usr/bin/tcpping -C -x 5 internode.on.net 80
TCPPing: Executing /usr/bin/tcpping -C -x 5 203.16.214.17 80
TCPPing: TCPPing.pm: pingone: Got output: ' 23.089 23.167 23.379 22.508
22.495'
TCPPing: 203.16.214.17: got
TCPPing: TCPPing.pm: pingone: Got output: ' 24.218 24.580 21.799 23.696
24.042'
TCPPing: internode.on.net: got
8<----------------------------------------------------------------------
So ... where do we now stand after all of that then?
More information about the smokeping-users
mailing list