[rrd-users] Python-RRDtool
Marius Rugan
mariusrugan at gmail.com
Fri Jun 6 09:57:35 CEST 2008
Hi Emily,
Please let us know what you are trying to achieve and how your code snippet
looks like.
On the error:
obviously, the script cannot find the rrd database file.
I would suggest that you play around with rrdtool in its binary form, e.g.
rrdtool create, rrdtool update, rrdtool graph
and than start porting the command line switches to the python script.
Copy paste code doesn't actually work unless you understand every switch's
meaning ( for example '--imgformat', 'PNG' )
and replace variables accordingly to your environment (path for example)
On Thu, Jun 5, 2008 at 10:53 PM, Emily Chouinard <cousin17 at msu.edu> wrote:
> I am a newbie and I am having difficulty running the example on python-
> rrdtool. I have followed it word for word off the website
> >>> rrdtool.graph(path,
> '--imgformat', 'PNG',
> '--width', '540',
> '--height', '100',
> '--start', "-%i" % YEAR,
> '--end', "-1",
> '--vertical-label','Downloads/Day',
> '--title', 'Annual Downloads',
> '--lower-limit', '0',
> DEF:downloads=downloads.rrd:downloads:AVERAGE',
> 'AREA:downloads#990033:Downloads')
>
> and getting getting this error
>
> Traceback (most recent call last): File "<stdin>", line 1, in ?
> rrdtool.error: opening 'downloads.rrd': No such file or directory
>
> I'm just lost and confused and really need a step by step. I'm a very
> green programmer so if anyone can guide me towards tutorials and what
> not I would really appreciate it because I need more information that
> what I can find on the RRDtool website but I haven't been able to find
> any.
>
> Thanks, Emily
>
>
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20080606/fec15272/attachment.html
More information about the rrd-users
mailing list