[smokeping-users] Re: Problem with smokeping an Yellow Dog Linux
S. Klose
sk_neu at gmx.de
Fri Sep 23 12:20:56 MEST 2005
Hi,
Niko Tyni:
> On Fri, Sep 23, 2005 at 09:56:04AM +0200, S. Klose wrote:
>
>
>>I've configure all Statements in the Smokeping Config and the path of
>>some tools (like smokeping.cgi). The Smokeping collects data, because
>>the *.rrd files have the current date and timestamps, but the statistics
>>with smokeping.cgi results no data information. I see the graphic with
>>no statistik line.
>
>
> Try 'smokeping --debug', it will show what commands smokeping executes
> underneath and what their results are. If you can't find the problem,
> please send this output and your config file.
>
> Cheers,
===Cut===
[root at localhost root]# /usr/sbin/smokeping --debug
### assuming you are using an fping 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.000002 successfully launched.
Not entering multiprocess mode with '--debug'. Use '--debug-daemon' for
that.
FPing: probing 1 targets with step 300 s and offset 53 s.
FPing: Executing /usr/local/sbin/fping -C 20 -q -B1 -r1 -i10 10.129.0.3
Calling RRDs::update(/etc/smokeping/data/Internet/Test.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
N:U:20:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U)
===Cut===
===Cut: config of smokeping===
[root at localhost root]# cat /etc/smokeping/config
# Note that all IP addresses in this file are false, to prevent some
# machine falling uder a deadly DOS storm because all users keep
# the same addresses in their config.
*** General ***
owner = Name
contact = noc at localhost
mailhost = smtp.mailhost.abc
sendmail = /usr/sbin/sendmail
imgcache = /srv/www/htdocs/smokeping/.simg
imgurl = /smokeping/.simg
datadir = /etc/smokeping/data
piddir = /etc/smokeping
cgiurl = http://192.67.3.9/cgi-bin/smokeping.cgi
smokemail = /etc/smokeping/smokemail
# specify this to get syslog logging
syslogfacility = local0
# each probe is now run in its own process
# disable this to revert to the old behaviour
# concurrentprobes = no
*** Alerts ***
to = admin at company.xy
from = smokealert at company.xy
+bigloss
type = loss
# in percent
pattern = ==0%,==0%,==0%,==0%,>0%,>0%,>0%
comment = suddenly there is packet loss
+someloss
type = loss
# in percent
pattern = >0%,*12*,>0%,*12*,>0%
comment = loss 3 times in a row
+startloss
type = loss
# in percent
pattern = ==S,>0%,>0%,>0%
comment = loss at startup
+rttdetect
type = rtt
# in milli seconds
pattern = <10,<10,<10,<10,<10,<100,>100,>100,>100
comment = routing mesed up again ?
*** Database ***
step = 300
pings = 20
# consfn mrhb steps total
AVERAGE 0.5 1 1008
AVERAGE 0.5 12 4320
MIN 0.5 12 4320
MAX 0.5 12 4320
AVERAGE 0.5 144 720
MAX 0.5 144 720
MIN 0.5 144 720
*** Presentation ***
template = /etc/smokeping/basepage.html
+ overview
width = 600
height = 50
range = 10h
+ detail
width = 600
height = 200
unison_tolerance = 2
"Letzten 4 Stunden" 4h
"Letzten 24 Stunden" 24h
"Letzte Woche" 7d
"Letzten Monat" 30d
"Letztes Jahr" 365d
*** Probes ***
+ FPing
binary = /usr/local/sbin/fping
*** Targets ***
probe = FPing
menu = Top
title = Network Latency Grapher
remark = Willkommen auf dem SMOKEPING System der Bremer Toto-Lotto GmbH. \
Hier sehen Sie eine Messung der Netzwerk Qualitaet und
Verfuegbarkeit.
+ Internet
menu = Internet
title = Internet Anbindung
++ Test
menu = Test
title = Test
===Cut===
--
Sascha Klose
--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive http://lists.ee.ethz.ch/smokeping-users
WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
More information about the smokeping-users
mailing list