no "zoom in" at graphs

rmet0815

23-03-2004 18:12:55

Is there a possibility to force a drawing from the base value until the max? What I mean is, that if I have a graph which can contain values from 0 to 1000 but only contains values between 800 and 1000, only this range (800 to 1000) is displayed. But I would like to have the range 0 to 1000 be drawn (so not "zooming" in).

Hope this makes sense. Sometimes I wish my English would be better )

Cheerio
/rudy

balleman

23-03-2004 19:20:02

Right now the only way to do this is with the "advanced" graph view in NetMRG. You can specify custom mins and maxes for the graph's display there.

I believe there is an RRDTOOL feature for the type of scaling you want, which we will try to include in future releases. I'll start a bug for this issue so that we can track its progress. (bug#177)

rmet0815

24-03-2004 03:30:23

Where can I find this advanced? Do you mean the one when "Edit Graph" then click on the advanced in the bottom (graphs.php?showadvanced=true&...)? Because there I can only change the base value (1000 or 1024 according to the RRDTOOL doku, make this a dropdown menu?), hide legend and use logarithmic scaling.

I know that I can define min and max values in the monitors, but are the used for graphing? I did set them up though with min 0 and max 100 and it doesnt seem to have an impact (or I am doing something wrong again ) )

Also, while I am at it... Is there a possibility to create a graph which displays a so called "rolling average". This is an average calculated over the last n minutes/hours of the values, like the uptime is doing it for example. I looked it up in the RRDtools but could not find it there, though i think it just does not exist but maybe I just missed it )

Sorry to be such a pain...
/rudy

silfreed

24-03-2004 10:25:20

[quote4fa0af8bed="rmet0815"]Where can I find this advanced? Do you mean the one when "Edit Graph" then click on the advanced in the bottom (graphs.php?showadvanced=true&...)? Because there I can only change the base value (1000 or 1024 according to the RRDTOOL doku, make this a dropdown menu?), hide legend and use logarithmic scaling.[/quote4fa0af8bed]

Device tree -> expand your group -> click on your device's graphs (orange graph icon) -> click on the graph you would like to see more detail about.
You will see some links below it for 'advanced' and 'history'.

[quote4fa0af8bed="rmet0815"]I know that I can define min and max values in the monitors, but are the used for graphing? I did set them up though with min 0 and max 100 and it doesnt seem to have an impact (or I am doing something wrong again ) )[/quote4fa0af8bed]

Actually, they don't have any impact on graphing, only gathering the data. If the value gathered exceeds the max/min you've defined, it's ignored (well, not quite). This is commonly useful for things like interfaces or CPU usage. For our single processor boxes, we set a max of 105, because if the box reboots, the counter rolls over and we get a really ugly spike (

[quote4fa0af8bed="rmet0815"]Also, while I am at it... Is there a possibility to create a graph which displays a so called "rolling average". This is an average calculated over the last n minutes/hours of the values, like the uptime is doing it for example. I looked it up in the RRDtools but could not find it there, though i think it just does not exist but maybe I just missed it )[/quote4fa0af8bed]

Well, the graphs do [i4fa0af8bed]show[/i4fa0af8bed] the average in the legend, but I'm pretty sure there isn't a way to graph it. That would require adding another monitor that read the RRD file for the monitor you want a rolling average on, and logging that point. Not pretty (but also something that's very helpful).

[quote4fa0af8bed="rmet0815"]Sorry to be such a pain...[/quote4fa0af8bed]

Not at all! I'm very surprised no one has asked these types of questions before.

-Doug

rmet0815

24-03-2004 14:21:16

[quoted02f7d4b32="silfreed"][quoted02f7d4b32="rmet0815"]I know that I can define min and max values in the monitors, but are the used for graphing? I did set them up though with min 0 and max 100 and it doesnt seem to have an impact (or I am doing something wrong again ) )[/quoted02f7d4b32]

Actually, they don't have any impact on graphing, only gathering the data. If the value gathered exceeds the max/min you've defined, it's ignored (well, not quite). This is commonly useful for things like interfaces or CPU usage. For our single processor boxes, we set a max of 105, because if the box reboots, the counter rolls over and we get a really ugly spike (
[/quoted02f7d4b32]

Wow great! Now I can finally get rid of this nasty eth0 spike when I push my whole backup over to another machine!

/rudy

rmet0815

24-03-2004 14:26:34

Another thing I forgot to mention. You said it is ignored, not not really ) I am curios how it is handled? Do you just take the maximim defined value whenever the actual value is bigger? Or is it something much more complicated? )

Thanx again for all your help!
/rudy

balleman

24-03-2004 15:38:27

We pass the mins and maxes to RRDTOOL. RRDTOOL will insert "Unknown" values into the RRD when the input values are not within range. This will result in a gaps in the graph if this occurs frequently.