[rrd-users] rrd python help needed.

Larry Low llow at telesphere.com
Mon Dec 29 22:50:07 CET 2008


>
> Thanks Larry!
>
> To clarify...
>
> So, if i want to graph the values that i've stored in the rrd data file
> would i simply do something like this?
>
> rrdtool.graph(gfname,
> '--start' , str(etime - (24 * 3600)) ,
>         '--end' , str(etime) ,
>         '--vertical-label' , 'CPU Load' ,
>        '--imgformat' , 'PNG' ,
>         '--title' , 'System Load Average' ,
>         '--lower-limit' , '0' ,
> 'DEF:min=test.rrd:max:AVERAGE'
>      )
>
You need to then use that 'min' definition in a LINE, AREA, etc.

> Am i accurate? Every time i run this in my script it does not recreate
> the png graph. Thoughts?
>
> Also, the RRD data file (test.rrd) appears to be in binary. Is this
> accurate? Any way i can read the data in human readable format to
> verify
> it is storing the correct values?

rrdtool dump will output it to xml

>
> thanks,
> JJ
>
> On Mon, 2008-12-29 at 12:52 -0800, Larry Low wrote:
> >
> >
> > rrd-users at lists.oetiker.ch
>
>
>
> Disclaimer: The information contained in this transmission, including
> any
> attachments, may contain confidential information of Panasonic Avionics
> Corporation.  This transmission is intended only for the use of the
> addressee(s) listed above.  Unauthorized review, dissemination or other
> use
> of the information contained in this transmission is strictly
> prohibited.
> If you have received this transmission in error or have reason to
> believe
> you are not authorized to receive it, please notify the sender by
> return
> email and promptly delete the transmission.
>



More information about the rrd-users mailing list