[rrd-users] Re: Is there a workaround for multiple independent updates inside 1 sec?

Tobias Oetiker oetiker at ee.ethz.ch
Thu Oct 21 23:05:55 MEST 1999


 Today you sent me mail regarding [rrd-users] Re: Is there a workaround for...:

*>  > From: dave-mlist at bfnet.com
*>  > I have a script that walks an SNMP table and runs the following commands. 
*>  > It is updating different data sources within one second of each other, which
*>  > I think should be OK.  Is there any way around the ERROR lines I'm seeing?
*>  > Dave
*>  > 
*>  > [root at mon /root]# ./test
*>  > [...]
*>  > /usr/local/bin/rrdtool 'update' '/var/log/rrd/207.168.228.65-stats.rrd' '-
*>  > t' 'inEthernet0:outEthernet0' 'N:2227109981:2307995739'
*>  > /usr/local/bin/rrdtool 'update' '/var/log/rrd/207.168.228.65-stats.rrd' '-
*>  > t' 'inEthernet1:outEthernet1' 'N:0:1522'
*>  > ERROR: illegal attempt to update using time 940464865 when last update tim
*>  > e is 940464865 (minimum one second step)
*>  > [...]
*> 
*> Each RRD only has one notion of "last update" so doing multiple
*> updates at the same time does not "work right".
*> 
*> The following "asynchronous-DS update" also does not work "right":
*> 
*>  rrdtool update some.rrd -t input:output 937844400:2036007229:1286147890
*>  rrdtool update some.rrd -t input:output 937844700:2051557700:1290492794
*>  rrdtool update some.rrd -t input  937845000:2069078489
*>  rrdtool update some.rrd -t output 937845001:1294770454
*>  rrdtool update some.rrd -t input:output 937845300:2088835344:1298501078
*> 
*> The update of output at 937845001 gets "lost".

it does not get lost, what happens is 

rrdtool update some.rrd -t input:output  937845000:2069078489:U
rrdtool update some.rrd -t output:input 937845001:1294770454:U

the form with only one DS is only for simpler writing so the input at
937845000 is only considered for a very short time ...

cheers
tobi

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
 / // _ \/ _ \/ / TEL: +41(0)1-6325286  FAX:...1517  ICQ: 10419518 
/_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://ee-staff.ethz.ch/~oetiker

--
* To unsubscribe from the rrd-users mailing list, send a message with the
  subject: unsubscribe to rrd-users-request at list.ee.ethz.ch



More information about the rrd-users mailing list