Decimals on Y-axis

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

Moderators: Developers, Moderators

Post Reply
saik0
Posts: 9
Joined: Fri Aug 31, 2012 5:36 pm

Decimals on Y-axis

Post by saik0 »

Hi,

Just started using cacti and already created my first perl data input script that parses serial port input from some sensors.
Managed to graph the values i'm getting, but have a question.

I'd like to use autoscale without limits so that I can get more precise graphing data.
Here's what happens, the Y-axis values aren't showing decimals:

http://gw.gbit6.net:8002/stats/graph.ph ... rra_id=all

How come?

Also, how to show units
saik0
Posts: 9
Joined: Fri Aug 31, 2012 5:36 pm

Re: Decimals on Y-axis

Post by saik0 »

Googling a bit brought me to this: http://forums.cacti.net/viewtopic.php?t=21086
Apparently the --alt-y-grid should solve my issue.
There was even a patch back then and supposedly this option was added in cacti subsequently.

I believe it was added as feature in 0.8.7c (svn r4451)?

Now on the 0.8.8a cacti release I can't find that option?
There's no reference to --alt-y-grid in lib/rrd.php at all?
saik0
Posts: 9
Joined: Fri Aug 31, 2012 5:36 pm

Re: Decimals on Y-axis

Post by saik0 »

Found some solid info here: http://forums.cacti.net/about31970.html ... alt-y-grid

Apparently the feature didn't make it to 0.8.7c as supposed to...

Here's the SVN revision that implements this: http://svn.cacti.net/viewvc?view=rev&revision=4451

Questions for the more experienced folks here,
what would be the best way to patch my 0.8.8a files with above mentioned changes from the SVN?
I could do it manually but..whats the SVN way?

Thanks
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Decimals on Y-axis

Post by gandalf »

Please see docs at 1st link of my sig. There's a small chapter with examples how to fiddle with y-axis
HTH
R.
saik0
Posts: 9
Joined: Fri Aug 31, 2012 5:36 pm

Re: Decimals on Y-axis

Post by saik0 »

Um i did manage to get the wanted result by using the --alt-y-grid.
The thing is... why isn't --alt-y-grid option included in the latest cacti release?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Decimals on Y-axis

Post by gandalf »

Because 0.8.9 is not yet ready for production. Current SVN code already has support for --alt-y-grid.
In case you want to participate, see http://forums.cacti.net/viewtopic.php?f=11&t=48530
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests