<div dir="ltr"><span id="result_box" class="" lang="en"><span class="">Thank you.</span> <span class="">I</span> <span class="">understood</span> <span class="">perfectly</span></span></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On 23 April 2013 15:43, Russell Dwarshuis <span dir="ltr"><<a href="mailto:rjd@merit.edu" target="_blank">rjd@merit.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
No, you have 1 packet loss. It is recorded as:<br>
<div class="im"><br>
1366720500: -nan 9,3666666667e-01<br>
1366720800: -nan 6,3333333333e-02<br>
<br>
</div>That is, 0.937 of a packet and, 5 minutes later, 0.033 of a packet. That is why<br>
maximum packet loss is 0.937/20 = 4.68% instead of 5%<br>
<br>
It does this because the packet loss measurement occurred at roughly 1366720520 and the<br>
measurement is interpolated. Actually I think it is a little more complicated<br>
that that, but that is the basic concept. This Works great when you are not<br>
worried about perfect precision, but not so great when you are trying to measure integers!<br>
<div class="im HOEnZb"><br>
<br>
-Russell Dwarshuis<br>
<br>
----- Original Message -----<br>
From: "Alessandro Palermo" <<a href="mailto:ok.aless@gmail.com">ok.aless@gmail.com</a>><br>
</div><div class="HOEnZb"><div class="h5">To: "Russell Dwarshuis" <<a href="mailto:rjd@merit.edu">rjd@merit.edu</a>><br>
Cc: "smokeping-users" <<a href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a>><br>
Sent: Tuesday, April 23, 2013 1:58:56 PM<br>
Subject: Re: [smokeping-users] Get packet loss data in last ten days graph<br>
<br>
<br>
I still got a doubt about the calculataion of packet loss.<br>
For example I've got 2 losses in the last 3 hours in two consecutives polling cycles (1/20 and 1/20).<br>
The data in the graphs shows pl= 0.14% avg and 4.68% max<br>
In the rrd data I've got:<br>
<br>
rrdtool fetch myrrdfile.rrd AVERAGE -s -3h -e now | cut -f 1-3 -d' '<br>
<br>
<br>
1366717200: -nan 0,0000000000e+00<br>
1366717500: -nan 0,0000000000e+00<br>
1366717800: -nan 0,0000000000e+00<br>
1366718100: -nan 0,0000000000e+00<br>
1366718400: -nan 0,0000000000e+00<br>
1366718700: -nan 0,0000000000e+00<br>
1366719000: -nan 0,0000000000e+00<br>
1366719300: -nan 0,0000000000e+00<br>
1366719600: -nan 0,0000000000e+00<br>
1366719900: -nan 0,0000000000e+00<br>
1366720200: -nan 0,0000000000e+00<br>
1366720500: -nan 9,3666666667e-01<br>
1366720800: -nan 6,3333333333e-02<br>
1366721100: -nan 0,0000000000e+00<br>
1366721400: -nan 0,0000000000e+00<br>
1366721700: -nan 0,0000000000e+00<br>
1366722000: -nan 0,0000000000e+00<br>
1366722300: -nan 0,0000000000e+00<br>
1366722600: -nan 0,0000000000e+00<br>
1366722900: -nan 0,0000000000e+00<br>
1366723200: -nan 0,0000000000e+00<br>
1366723500: -nan 0,0000000000e+00<br>
1366723800: -nan 0,0000000000e+00<br>
1366724100: -nan 0,0000000000e+00<br>
1366724400: -nan 0,0000000000e+00<br>
1366724700: -nan 0,0000000000e+00<br>
1366725000: -nan 0,0000000000e+00<br>
1366725300: -nan 0,0000000000e+00<br>
1366725600: -nan 0,0000000000e+00<br>
1366725900: -nan 0,0000000000e+00<br>
1366726200: -nan 0,0000000000e+00<br>
1366726500: -nan 0,0000000000e+00<br>
1366726800: -nan 0,0000000000e+00<br>
1366727100: -nan 0,0000000000e+00<br>
1366727400: -nan 0,0000000000e+00<br>
1366727700: -nan 0,0000000000e+00<br>
1366728000: -nan -nan<br>
<br>
And I can't understand how to obtain the value of pl=0.14% avg. I thought that the data stored in the rrd was the number of packet loss in a round or the average each 5 minutes.<br>
In the first case I get a value of pl=(number of packet losses in last 3hours/total packets sends)2/720=0.0028, then pl=0.28%.<br>
Surely I'm wrong in something.<br>
<br>
Thanks<br>
<br>
<br>
<br>
<br>
On 22 April 2013 21:32, Alessandro Palermo < <a href="mailto:ok.aless@gmail.com">ok.aless@gmail.com</a> > wrote:<br>
<br>
<br>
<br>
<br>
Thanks very much Russell. I will try this.<br>
<br>
Regards<br>
El 22/04/2013 15:36, "Russell Dwarshuis" < <a href="mailto:rjd@merit.edu">rjd@merit.edu</a> > escribió:<br>
<br>
<br>
<br>
<br>
Here is an example (I piped it through cut so you don't have to see all 20 ping times):<br>
rrdtool fetch your.rrd AVERAGE -s -20minutes -e now | cut -f 1-3 -d' '<br>
<br>
<br>
1366654200: nan 0.0000000000e+00 5.7700000000e-03 5.7600000000e-03<br>
1366654500: nan 0.0000000000e+00 5.7700000000e-03 5.7600000000e-03<br>
1366654800: nan 0.0000000000e+00 5.7700000000e-03 5.7600000000e-03<br>
1366655100: nan 0.0000000000e+00 5.7714666667e-03 5.7600000000e-03<br>
<br>
Loss is in column 3 (0.0000000000e+00)<br>
<br>
<br>
<br>
-Russell Dwarshuis<br>
<br>
----- Original Message -----<br>
From: "Alessandro Palermo" < <a href="mailto:ok.aless@gmail.com">ok.aless@gmail.com</a> ><br>
To: <a href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a><br>
Sent: Monday, April 22, 2013 10:42:46 AM<br>
Subject: [smokeping-users] Get packet loss data in last ten days graph<br>
<br>
<br>
<br>
<br>
<br>
Hi list.<br>
I'm monitoring around 300 wan links with fping probe with no problem. I have tuned smokeping to get more information I have added a plugin to show the lasts median rtt in a gauges view and a link to show the information about the route of each wan links and record the changes in the routes.<br>
Now I want to create a report to monitoring the packet loss in the last ten day and send a mail with the graph of the links that have a packet loss greater than 5% per example.<br>
How can i get this value for the .rrd files? I've been inspected the rrd files but I just see the last loss value.<br>
<br>
Thanks in advance<br>
<br>
_______________________________________________<br>
smokeping-users mailing list<br>
<a href="mailto:smokeping-users@lists.oetiker.ch">smokeping-users@lists.oetiker.ch</a><br>
<a href="https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users</a><br>
<br>
</div></div></blockquote></div><br></div>