[smokeping-users] Loss values in rrd

Atul Gosain atul at mindsw.com
Fri Feb 14 14:11:57 MET 2003


Hi Tobi

Can u please tell me how can i store absolute loss in the rrd's of 
smokeping instead of the average loss for a particular sample of pings 
which is stored here.
1045226400: nan 9.3333333333e-01 5.5770533333e-01 5.2717600000e-01 
5.2975066667e-01 5.3167266667e-01 5.3310866667e-01 5.4013600000e-01 
5.4086000000e-01 5.4166800000e-01 5.4320866667e-01 5.4799200000e-01 
5.5765866667e-01 5.5036000000e-01 5.5986666667e-01 5.6321933333e-01 
5.6855800000e-01 5.7563866667e-01 5.9634400000e-01 6.2447133333e-01 
6.5556133333e-01 6.6326200000e-01 7.4157400000e-01
In above example even when no packet is lost, its showing a loss of 9.333%.

I assume that i have to change some code in Smokeping.pm. When update 
rrd is called this code is there.
         RRDs::update ( $name.".rrd",
                           '--template',(join ":", "uptime", "loss", 
"median", map { "ping${_}" } 1..($cfg->{Database}{pings})),
                           "N:".$probes->{$probe}->rrdupdate_string($tree)
                         );
I am printing $probes and its showing as follows
        print $probes->{$probe}->rrdupdate_string($tree),"\n";

U:1:6.4884000000e-01:6.3117000000e-01:6.3392000000e-01:6.3793000000e-01:6.3853000000e-01:
6.4057000000e-01:6.4591000000e-01:6.4702000000e-01:6.4712000000e-01:6.4884000000e-01:
6.4884000000e-01:U:6.5059000000e-01:6.5254000000e-01:6.5447000000e-01:6.5451000000e-01:
6.6208000000e-01:6.6362000000e-01:6.6723000000e-01:7.0756000000e-01:7.3684000000e-01

This clearly shows that loss is 1 out of 20 packets.

Conclusion is while loss is returned as an absolute figure, its stored 
as some average(due to some interpolation.)
Please tell me the code where i need to change in order to store 
absolute figure for loss in rrd instead of interpolated value.

Hoping for a favourable response.

Thanks
Atul
   




-- 
--------------------------------------- 
Mindframe Software & Services Pvt. Ltd. 
 
A-50, Sector-39,
NOIDA, U.P. - 201301 

Ph.: +91-120-4500369, 4575991, 4576970 

http://www.mindsw.com 
---------------------------------------




--
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://www.ee.ethz.ch/~slist/smokeping-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the smokeping-users mailing list