[smokeping-users] Smokeping not graphing tcpping data

Troy Wical troy at wical.com
Wed Aug 20 23:33:24 CEST 2014


Debian Lenny
smokeping 2.003006

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.

Any thoughts?

user at server:/var/lib/smokeping/# smokeping --debug

### assuming you are using an tcpping copy reporting in milliseconds

### Compiling alert detector pattern 'startloss'

### ==S,>0%,>0%,>0%

sub {

    my $d = shift;

    my $y = $d->{loss};

    for(1){

        my $minlength = 4;

        my $maxlength = 4;

        next if scalar @$y < $minlength ;

        next unless defined $y->[-4] and $y->[-4] eq 'S';

        next unless defined $y->[-3]

                        and $y->[-3] =~ /^\d/

                        and $y->[-3] > 0;

        next unless defined $y->[-2]

                        and $y->[-2] =~ /^\d/

                        and $y->[-2] > 0;

        next unless defined $y->[-1]

                        and $y->[-1] =~ /^\d/

                        and $y->[-1] > 0;

        return 1;

    }

    return 0;

}


### Compiling alert detector pattern 'rttdetect'

### <10,<10,<10,<10,<10,<100,>100,>100,>100

sub {

    my $d = shift;

    my $y = $d->{rtt};

    for(1){

        my $minlength = 9;

        my $maxlength = 9;

        next if scalar @$y < $minlength ;

        next unless defined $y->[-9]

                        and $y->[-9] =~ /^\d/

                        and $y->[-9] < 0.01;

        next unless defined $y->[-8]

                        and $y->[-8] =~ /^\d/

                        and $y->[-8] < 0.01;

        next unless defined $y->[-7]

                        and $y->[-7] =~ /^\d/

                        and $y->[-7] < 0.01;

        next unless defined $y->[-6]

                        and $y->[-6] =~ /^\d/

                        and $y->[-6] < 0.01;

        next unless defined $y->[-5]

                        and $y->[-5] =~ /^\d/

                        and $y->[-5] < 0.01;

        next unless defined $y->[-4]

                        and $y->[-4] =~ /^\d/

                        and $y->[-4] < 0.1;

        next unless defined $y->[-3]

                        and $y->[-3] =~ /^\d/

                        and $y->[-3] > 0.1;

        next unless defined $y->[-2]

                        and $y->[-2] =~ /^\d/

                        and $y->[-2] > 0.1;

        next unless defined $y->[-1]

                        and $y->[-1] =~ /^\d/

                        and $y->[-1] > 0.1;

        return 1;

    }

    return 0;

}


### Compiling alert detector pattern 'bigloss'

### ==0%,==0%,==0%,==0%,>0%,>0%,>0%

sub {

    my $d = shift;

    my $y = $d->{loss};

    for(1){

        my $minlength = 7;

        my $maxlength = 7;

        next if scalar @$y < $minlength ;

        next unless defined $y->[-7]

                        and $y->[-7] =~ /^\d/

                        and $y->[-7] == 0;

        next unless defined $y->[-6]

                        and $y->[-6] =~ /^\d/

                        and $y->[-6] == 0;

        next unless defined $y->[-5]

                        and $y->[-5] =~ /^\d/

                        and $y->[-5] == 0;

        next unless defined $y->[-4]

                        and $y->[-4] =~ /^\d/

                        and $y->[-4] == 0;

        next unless defined $y->[-3]

                        and $y->[-3] =~ /^\d/

                        and $y->[-3] > 0;

        next unless defined $y->[-2]

                        and $y->[-2] =~ /^\d/

                        and $y->[-2] > 0;

        next unless defined $y->[-1]

                        and $y->[-1] =~ /^\d/

                        and $y->[-1] > 0;

        return 1;

    }

    return 0;

}


### Compiling alert detector pattern 'someloss'

### >0%,*12*,>0%,*12*,>0%

sub {

    my $d = shift;

    my $y = $d->{loss};

    for(1){

        my $imax2 = min(@$y - 3, 12);

        my $imax1 = min(@$y - 3, 12);

        my $minlength = 3;

        my $maxlength = 27;

        next if scalar @$y < $minlength ;

        my $i1;

        for($i1=0; $i1 < min($maxlength,$imax1); $i1++){

            my $i2;

            for($i2=0; $i2 < min($maxlength-$i1,$imax2); $i2++){

                next unless defined $y->[-3-$i1-$i2]

                                and $y->[-3-$i1-$i2] =~ /^\d/

                                and $y->[-3-$i1-$i2] > 0;

                last;

            }

            return 0 if $i2 >= min($maxlength-$i1-$i2,$imax2);

            next unless defined $y->[-2-$i1]

                            and $y->[-2-$i1] =~ /^\d/

                            and $y->[-2-$i1] > 0;

            last;

        }

        return 0 if $i1 >= min($maxlength-$i1,$imax1);

        next unless defined $y->[-1]

                        and $y->[-1] =~ /^\d/

                        and $y->[-1] > 0;

        return 1;

    }

    return 0;

}




Smokeping version 2.003006 successfully launched.

Not entering multiprocess mode with '--debug'. Use '--debug-daemon' for
that.

EchoPingHttps: probing 0 targets with step 300 s and offset 232 s.

FPing: probing 0 targets with step 300 s and offset 232 s.

TCPPing: probing 2 targets with step 300 s and offset 232 s.

TCPPing: forks 5, timeout for each target 101

TCPPing: Executing /usr/bin/tcpping -C -x 20 gateway17.jetpay.com 443

TCPPing: Executing /usr/bin/tcpping -C -x 20 gateway14.jetpay.com 443

TCPPing: gateway14.jetpay.com: got

TCPPing: gateway17.jetpay.com: got

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)

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)


-----------------------------------
output from running the command manually
-----------------------------------

user at server:/etc/smokeping/config.d# /usr/bin/tcpping -C -x 20
gateway14.jetpay.com 443

gateway14.jetpay.com : - - - - - - - - - - - - - - - - - - - -

user at server:/etc/smokeping/config.d#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20140820/f1132a55/attachment-0001.html>


More information about the smokeping-users mailing list