I am new to RRD, but have spent about 12 hours struggling with this, so
I hope someone can help. 

 

I am creating an rrd

/usr/bin/rrdtool create /tmp/ea.rrd --start 1240207200 --step 7200
DS:ds:GAUGE:43200:0:100 RRA:LAST:0.5:1:100

 

And loading some data into it (I realize the values are all one)

/usr/bin/rrdtool update /tmp/ea.rrd 1240246749:1 1240252503:1
1240259704:1 1240266904:1 1240274104:1 1240281305:1 1240288503:1
1240295704:1 1240302903:1 1240310104:1 1240317304:1 1240324504:1
1240331703:1 1240338903:1 1240346103:1 1240353304:1 1240360503:1
1240367704:1 1240374903:1 1240382104:1 1240389304:1 1240396503:1
1240403704:1 1240410904:1 


Now, I just want to print the data out. I try

 

/usr/bin/rrdtool graph /tmp/ea.rrd --start 20090420
'DEF:ds0=/tmp/ea.rrd:ds:LAST' 'PRINT:ds0:LAST:%2.2lf'

 

And get

 

0x0

100.00

 

I was expecting to get a list of values?

On a related note, these values represent time points where a device is
on-line (hence one; if it was off line, the value would be zero). I
would like to compute availability by computing every 24 hours the
number of points that are 1 over the total number (which should be 12).
Any suggestions on how to do that? 

 

Thanks in advance,

 

Rob

 

 

Robert Hagens | Chief Technical Officer| Envysion, Inc. 

950 Spruce Street | Louisville, CO 80027

303.590.2365 office | 303.590.2351 fax

[email protected] <mailto:[email protected]>  | www.envysion.com
<http://www.envysion.com/>  | Visit our blog
<http://managedvideoblog.com/> 

 

<<image001.jpg>>

_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Reply via email to