graph y value

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
flanderp
Posts: 2
Joined: Mon Apr 14, 2008 2:36 pm

graph y value

Post by flanderp »

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
regexp
Posts: 2
Joined: Wed Apr 16, 2008 10:17 am

also having the same issue

Post by regexp »

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.
regexp
Posts: 2
Joined: Wed Apr 16, 2008 10:17 am

Post by regexp »

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?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Code: Select all

        if (ereg("^[0-9]+$", $graph["unit_exponent_value"])) {
                $unit_exponent_value = "--units-exponent=" . $graph["unit_exponent_value"] . RRD_NL;
        }
This is current 087b code. And it ignores a leading "-" as you requested.So please reprot a bug as given by http://www.cacti.net/bugs.php
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests