[rrd-users] Re: rrdtool
Michael Earls
Michael.Earls at cchmc.org
Tue Nov 25 22:49:53 MET 2003
using php4-rrdtool
When I do not put a file name in the quotes after rrd_graph does anyone
know if it creates an image?
$opts = array( "--start", "-86400",
"DEF:if=fastethernet2_0.rrd:ds0:AVERAGE",
"CDEF:percent=if,100,*,1250000,/",
"PRINT:percent:LAST:Fuse Last\:%8.2lf %% -- ",
"PRINT:percent:AVERAGE:Fuse av\:%8.2lf %% -- ",
"PRINT:percent:MAX:Fuse Max\:%8.2lf %%<br>",
);
$ret = rrd_graph("", $opts, count($opts));
This might be an option if it does not create the image
Thanks,
michael
>>> Jon Nistor <nistor at snickers.org> 11/25/03 04:44PM >>>
What you may need to do is:
rrdtool dump file.rrd
and weed out the results for a section that looks like:
<database>
<!-- 2003-11-22 22:00:00 EST / 1069556400 -->
<row><v> 5.5858200273e+06 </v><v> 2.3493590735e+06 </v></row>
<!-- 2003-11-22 22:05:00 EST / 1069556700 -->
<row><v> 5.4628654047e+06 </v><v> 2.3556034461e+06 </v></row>
<!-- 2003-11-22 22:10:00 EST / 1069557000 -->
<row><v> 5.6818931632e+06 </v><v> 2.3579057100e+06 </v></row>
......
</database>
AFAIK there isn't an easier way to pull out the values. What you may
want
to look at it doing a dump on the file and pulling out all the values
between 2 time periods...
If anyone has a cooler suggestion I'd love to know it myself =D
On Tue, 25 Nov 2003, Michael Earls wrote:
||What I am looking to do is, only print certain values out of rrd
||
|| $opts = array( "--start", "-86400",
|| "DEF:if=fastethernet2_0.rrd:ds0:AVERAGE",
|| "DEF:io=atm1_0.93-aal5_layer.rrd:ds0:AVERAGE",
|| "CDEF:percent=if,100,*,1250000,/",
|| "PRINT:percent:LAST:Fuse Last\:%8.2lf %%<br>",
|| "PRINT:percent:AVERAGE:Fuse av\:%8.2lf %%<br>",
|| "PRINT:percent:MAX:Fuse Max\:%8.2lf %%<br><br>",
|| "PRINT:percent:LAST:Fuse Last\:%2.2lf %%<br>",
|| "PRINT:percent:AVERAGE:Fuse av\:%2.2lf %%<br>",
|| "PRINT:percent:MAX:Fuse Max\:%2.2lf %%<br>",
||
||
||Thanks,
||
||michael
||
||>>> Jon Nistor <nistor at snickers.org> 11/25/03 04:29PM >>>
||rrdtool dump will dump the file into XML and you can parse, maybe
thats
||a
||viable option? :)
||
||On Tue, 25 Nov 2003, Michael Earls wrote:
||
||||How can one export data out of rrd without creating graphs? Is
there
||any
||||option in rrdgraph that will do this?
||||
||||Thanks,
||||
||||Michael
||||
||||--
||||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
||||
||
|| ________
|| Jon (nistor at snickers.org) - iioiiooo.oiiiiiio.oioiioio.ooooooio
||
||: EOF
||:
||
||--
||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
||
________
Jon (nistor at snickers.org) - iioiiooo.oiiiiiio.oioiioio.ooooooio
: EOF
:
--
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
--
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