[rrd-users] R: Export values from RRD, possible?

Simone Felici - Alpikom Spa s.felici at alpikom.it
Mon Jan 19 11:53:51 MET 2004


Also, now I exactly copy and paste my outputs:

> -----Messaggio originale-----
> Da: Serge Maandag [mailto:serge.maandag at staff.zeelandnet.nl] 
> Inviato: lunedì 19 gennaio 2004 11.31
> A: Simone Felici - Alpikom Spa
> Oggetto: RE: [rrd-users] Export values from RRD, possible?
> 
> 
> If I try this on one of my databases:
> 
> rrdtool graph - -s -36800 DEF:bla1=test.rrd:eth0_in:AVERAGE 
> PRINT:bla1:AVERAGE:"%7.2lf  %Sb"  
> 
> I get:
> 
> 0x0
>    2.87  Mb
> 
> Which is the image size followed by the PRINT output.

[root at testmon rrd]# rrdtool graph - -s -36800
DEF:bla1=test.rrd:eth0_in:AVERAGE PRINT:bla1:AVERAGE:"%7.2lf  %Sb"
[root at testmon rrd]#

No Output given... Nothing :(


> 
> Try this exact command on your database, if you get no 
> output, check whether you have a DS named eth0_in in your 
> database with the command: rrdtool info

[root at testmon rrd]# rrdtool info test.rrd
filename = "test.rrd"
rrd_version = "0001"
step = 300
last_update = 1074508821
ds[eth0_in].type = "COUNTER"
ds[eth0_in].minimal_heartbeat = 600
ds[eth0_in].min = NaN
ds[eth0_in].max = NaN
ds[eth0_in].last_ds = "2874196306"
ds[eth0_in].value = 1.6361309929e+07
ds[eth0_in].unknown_sec = 0
ds[eth0_out].type = "COUNTER"
[...]

> 
> If that's ok, change the graph command to a fetch command: 
> rrdtool fetch -s -36800 test.rrd AVERAGE
> 
> to see if there is data in your database.
> 
> Serge.
> 

[root at testmon rrd]# rrdtool fetch -s -36800 test.rrd AVERAGE
                  eth0_in      eth0_out

1074472500: 8.6898721059e+04 7.9846591108e+04
1074472800: 8.7423136061e+04 8.3363576994e+04
1074473100: 1.1069300958e+05 1.2155501052e+05
1074473400: 1.9554794288e+05 2.2502793851e+05
1074473700: 9.8787224317e+04 9.2082647758e+04
[...]
1074508800: 7.8594243570e+05 8.8481290310e+05
1074509100: nan nan
1074509400: nan nan
[root at testmon rrd]#

That's all, also only the stdout is not working.. Strange.
I don't thing I made errors.. Or maybe yes.. :)

Simone

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list