|
|
| Author |
Message |
rmet0815 Helper
Joined: 18 Mar 2004 Posts: 20
|
Posted: Tue Mar 23, 2004 11:12 pm Post subject: no "zoom in" at graphs |
|
|
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 |
|
| Back to top |
|
 |
balleman Site Admin
Joined: 20 Jan 2003 Posts: 282
|
Posted: Wed Mar 24, 2004 12:20 am Post subject: |
|
|
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) |
|
| Back to top |
|
 |
rmet0815 Helper
Joined: 18 Mar 2004 Posts: 20
|
Posted: Wed Mar 24, 2004 8:30 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
silfreed Site Admin
Joined: 19 Jan 2003 Posts: 394 Location: Shippensburg, PA, USA
|
Posted: Wed Mar 24, 2004 3:25 pm Post subject: |
|
|
| rmet0815 wrote: |
| 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. |
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'.
| rmet0815 wrote: |
| 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 :) ) |
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 :(
| rmet0815 wrote: |
| 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 :) |
Well, the graphs do show 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).
| rmet0815 wrote: |
| Sorry to be such a pain... |
Not at all! I'm very surprised no one has asked these types of questions before.
-Doug |
|
| Back to top |
|
 |
rmet0815 Helper
Joined: 18 Mar 2004 Posts: 20
|
Posted: Wed Mar 24, 2004 7:21 pm Post subject: |
|
|
| silfreed wrote: |
| rmet0815 wrote: |
| 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 :) ) |
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 :(
|
Wow great! Now I can finally get rid of this nasty eth0 spike when I push my whole backup over to another machine!
/rudy |
|
| Back to top |
|
 |
rmet0815 Helper
Joined: 18 Mar 2004 Posts: 20
|
Posted: Wed Mar 24, 2004 7:26 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
balleman Site Admin
Joined: 20 Jan 2003 Posts: 282
|
Posted: Wed Mar 24, 2004 8:38 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
|