Hi ,
New to Cacti and having problems understanding y axis values, i have a couple of scripts reading row count for mysql table, the output is 2450 but y axis shows 10 m. I have read through the docs but must be missing something. Which values control the how the y axis work, i was hoping to just have the number 2450 and so on.
thanks
Paul
graph y value
Moderators: Developers, Moderators
also having the same issue
I am having the exact same problem and existing suggestions in the forums are less then informative. Basically I have a value (1234) which is being displayed as (1.234). After digging into the rrdtool docs --units-exponent looks to be the nob you tweak:
"Value should be an integer which is a multiple of 3 between -18 and 18 inclusively."
However - if you enter in a value below 0 in Cacti - cacti doesn't pass the value to rrdtool. Only values above 0. This is Cacti version Version 0.8.7b. I looked in the bug list but don't see this listed. Anyone else have any information? Entering in "0" still doesn't display the number as 1234 but still as 1.234. I have tweaked a half dozen settings but this appears to be a bug in Cacti. I will be playing directly with rrdtool later to validate.
"Value should be an integer which is a multiple of 3 between -18 and 18 inclusively."
However - if you enter in a value below 0 in Cacti - cacti doesn't pass the value to rrdtool. Only values above 0. This is Cacti version Version 0.8.7b. I looked in the bug list but don't see this listed. Anyone else have any information? Entering in "0" still doesn't display the number as 1234 but still as 1.234. I have tweaked a half dozen settings but this appears to be a bug in Cacti. I will be playing directly with rrdtool later to validate.
So if I put in "3" i get the following result:
F:/apache/Apache2.2/htdocs/cacti/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="x" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--units-exponent=3 \
--vertical-label="test" \
--font TITLE:10: \
--font AXIS:6: \
--font LEGEND:8: \
--font UNIT:6: \
if I put in "-3" I get the following result:
F:/apache/Apache2.2/htdocs/cacti/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="x" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="test" \
--font TITLE:10: \
--font AXIS:6: \
--font LEGEND:8: \
--font UNIT:6: \
"--units-exponent=" is no longer listed. So Cacti is not passing it to rrdtool. Anyone else have any information on this?
F:/apache/Apache2.2/htdocs/cacti/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="x" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--units-exponent=3 \
--vertical-label="test" \
--font TITLE:10: \
--font AXIS:6: \
--font LEGEND:8: \
--font UNIT:6: \
if I put in "-3" I get the following result:
F:/apache/Apache2.2/htdocs/cacti/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="x" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="test" \
--font TITLE:10: \
--font AXIS:6: \
--font LEGEND:8: \
--font UNIT:6: \
"--units-exponent=" is no longer listed. So Cacti is not passing it to rrdtool. Anyone else have any information on this?
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Code: Select all
if (ereg("^[0-9]+$", $graph["unit_exponent_value"])) {
$unit_exponent_value = "--units-exponent=" . $graph["unit_exponent_value"] . RRD_NL;
}
Reinhard
Who is online
Users browsing this forum: No registered users and 2 guests