cant get a picture from my rrd db

View: New views
4 Messages — Rating Filter:   Alert me  

cant get a picture from my rrd db

by Amzul :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hello all
i am new to rrdtool, and this ios my first try.

i have problam getting the graph to work i keep getting 0X0

i want to graph how many downlod a file had.

this is what i done :

1- rrdtool create filedown.rrd --step 300 DS:file:GUAGE:600:0:U RRA:AVERAGE:0.5:1:1200
2- then i make a small script that runs in cron every 5 min and update filedown.rrd.
when i do rrdtool info filedown.rrd i can see that it is realy updating in the last_ds and time.
i have a few qustion about why in the value i see 6.38479 float number?
and not the data i insert witch is an intger and i see it in last_ds

second why i keep getting 0X0
when i use the graph?

any help will be appreciate

thanks lady and guys

Re: cant get a picture from my rrd db

by Simon Hobson-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Amzul wrote:

>i have a few qustion about why in the value i see 6.38479 float number?
>and not the data i insert witch is an intger and i see it in last_ds

See http://www.vandenbogaerdt.nl/rrdtool/process.php where
normalisation is explained. You will only get out exactly what you
put in under certain very specific conditions which are :

1) You must insert data on timestamps which are EXACTLY a multiple of
the step size since unix epoch (midnight, 1st Jan 1970)

2) You extract the data such that you ask for EXACTLY one data point
per output (eg graph pixel)

If either of these is not met then the data will be normalised to fit
what you ask for and will not match the values you put in.

>second why i keep getting 0X0
>when i use the graph?

What do you mean by 0X0 ?

_______________________________________________
rrd-users mailing list
rrd-users@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Re: cant get a picture from my rrd db

by Alex van den Bogaerdt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Feb 02, 2008 at 01:21:48PM -0800, Amzul wrote:

> second why i keep getting 0X0
> when i use the graph?

Most likely you aren't creating a graph, you don't specify
line or area. That does, indeed, result in 0 by 0 pixels (0x0).

There's a tutorial in the docs. Use it.
http://oss.oetiker.ch/rrdtool/tut/rrdtutorial.en.html

--
Alex van den Bogaerdt
http://www.vandenbogaerdt.nl/rrdtool/

_______________________________________________
rrd-users mailing list
rrd-users@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Re: cant get a picture from my rrd db

by Amzul :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Simon Hobson-2 wrote:
Amzul wrote:

>i have a few qustion about why in the value i see 6.38479 float number?
>and not the data i insert witch is an intger and i see it in last_ds

See http://www.vandenbogaerdt.nl/rrdtool/process.php where
normalisation is explained. You will only get out exactly what you
put in under certain very specific conditions which are :

1) You must insert data on timestamps which are EXACTLY a multiple of
the step size since unix epoch (midnight, 1st Jan 1970)

2) You extract the data such that you ask for EXACTLY one data point
per output (eg graph pixel)

If either of these is not met then the data will be normalised to fit
what you ask for and will not match the values you put in.

>second why i keep getting 0X0
>when i use the graph?

What do you mean by 0X0 ?

_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Alex was right i was missing the LINE function
thanks guys for your help