y-axis scale labels in auto-scale mode

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

Moderators: Developers, Moderators

Post Reply
frackers
Posts: 2
Joined: Wed Jun 25, 2008 6:30 am

y-axis scale labels in auto-scale mode

Post by frackers »

I'm using autoscale mode extensively but I'm finding it frustrating that the y-axis scaling will only display integers. If I have a value that changes by less than 1 unit across the range of the graph, I get the y-axis label repeated.

Note how the value 25 is repeated - I would guess from the 'Present Voltage' value that the lower label in the y-axis should be 24.9 not 25!

I'm running 0.8.7b under Linux.

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

Post by gandalf »

Please post debug output from graph management for this graph
Reinhard
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

This issues was addressed in "feature#0000954: implement --alt-y-grid graph option", which should be in upcoming versions of Cacti... Although oddly, it says it was added to 0.8.7c, but not present. It IS present in the SVN though.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

BSOD2600 wrote:This issues was addressed in "feature#0000954: implement --alt-y-grid graph option", which should be in upcoming versions of Cacti... Although oddly, it says it was added to 0.8.7c, but not present. It IS present in the SVN though.
I suppose that this was my fault. :oops:
Reinhard
frackers
Posts: 2
Joined: Wed Jun 25, 2008 6:30 am

Post by frackers »

I've been trying to determine how to reference changes to bug refs but the SVN browser doesn't use TRAC so I can't see when the changeset was appied and to which modules.

Is there anyone who could indicate the relevant modules so I can make a minimal change to my Gentoo install pending a new version appearing in their stable tree.

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

Post by gandalf »

cpolish
Posts: 1
Joined: Sun Jul 05, 2009 4:49 pm

Re: y-axis scale labels in auto-scale mode

Post by cpolish »

I'm confused. I have a fully patched Cacti 0.8.7g installed on Ubuntu Linux 10.10 (current version).
Cacti feature#000954, in subversion revision 4451, which was checked in 2008-02-01 14:29:02 -0800,
is not included in my Cacti installation. (This feature adds an "--alt-y-grid" option for rrdtool, which
I have confirmed experimentally does correct a problem I'm having with duplicate integers on the Y axis.)

My evidence for this: I have not found the feature in the installed changelog for 0.8.7g,
the new fields that the revision defines in mysql table graph_templates_graph
( t_alt_y_grid and alt_y_grid) are absent, and the changes it makes to various php scripts are absent.

I checked the online Cacti svn repository for branches/0.8.7/cacti.sql :
http://svn.cacti.net/viewvc/cacti/branc ... w=annotate
but the changes are not reflected there either:
<snip>
1422 : gandalf 4329 t_scale_log_units char(2) default '0',
1423 : scale_log_units char(2) default NULL,
1424 : raxnet 695 t_auto_scale_rigid char(2) default '0',
1425 : auto_scale_rigid char(2) default NULL,
1426 : t_auto_padding char(2) default '0',
<snip>

So, I conclude that feature#0000954 / revision 4451 did not make it into the release for 0.8.7.
Can anyone shed some light on this? Can I apply the missing changeset as a patch, or would
there possibly be dependancies on some other changeset? Is there a reason why this wasn't
included in the release?

Thanks for any help,
--
Charles Polisher
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: y-axis scale labels in auto-scale mode

Post by noname »

cpolish wrote:the new fields that the revision defines in mysql table graph_templates_graph
( t_alt_y_grid and alt_y_grid) are absent, and the changes it makes to various php scripts are absent.
This option seemed to be implemented in the past, but omitted for some reason (I don't know).
http://svn.cacti.net/viewvc/cacti/branc ... 90&r2=4197

I tried some test.
When zoomed one graph, label for y-axis is duplicated.
alt-y-grid_1.png
alt-y-grid_1.png (14.22 KiB) Viewed 4975 times
So I added the option to 'lib/rrd.php'.
$scale = "--alt-autoscale-max --alt-y-grid" . RRD_NL;
It fixed the problem. Wow.
alt-y-grid_2.png
alt-y-grid_2.png (8.01 KiB) Viewed 4975 times
But, for another (zoomed) graph without problem,
alt-y-grid_3.png
alt-y-grid_3.png (15.91 KiB) Viewed 4975 times
changed to this..
alt-y-grid_4.png
alt-y-grid_4.png (7.39 KiB) Viewed 4975 times
That's tricky.

// Sorry my English
cybrk
Posts: 2
Joined: Mon Feb 07, 2011 12:58 pm

Re: y-axis scale labels in auto-scale mode

Post by cybrk »

Greetings Cacti Gurus,

I am very interested in applying this patch and would like to find out if any potential conflicts exist with post-patches if this patch is applied.

best regards
Stephen


cpolish wrote:I'm confused. I have a fully patched Cacti 0.8.7g installed on Ubuntu Linux 10.10 (current version).
Cacti feature#000954, in subversion revision 4451, which was checked in 2008-02-01 14:29:02 -0800,
is not included in my Cacti installation. (This feature adds an "--alt-y-grid" option for rrdtool, which
I have confirmed experimentally does correct a problem I'm having with duplicate integers on the Y axis.)

My evidence for this: I have not found the feature in the installed changelog for 0.8.7g,
the new fields that the revision defines in mysql table graph_templates_graph
( t_alt_y_grid and alt_y_grid) are absent, and the changes it makes to various php scripts are absent.

I checked the online Cacti svn repository for branches/0.8.7/cacti.sql :
http://svn.cacti.net/viewvc/cacti/branc ... w=annotate
but the changes are not reflected there either:
<snip>
1422 : gandalf 4329 t_scale_log_units char(2) default '0',
1423 : scale_log_units char(2) default NULL,
1424 : raxnet 695 t_auto_scale_rigid char(2) default '0',
1425 : auto_scale_rigid char(2) default NULL,
1426 : t_auto_padding char(2) default '0',
<snip>

So, I conclude that feature#0000954 / revision 4451 did not make it into the release for 0.8.7.
Can anyone shed some light on this? Can I apply the missing changeset as a patch, or would
there possibly be dependancies on some other changeset? Is there a reason why this wasn't
included in the release?

Thanks for any help,
--
Charles Polisher
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: y-axis scale labels in auto-scale mode

Post by gandalf »

As the patch introduces a db change, it's a bit tricky. Nevertheless, everything necessary should be included in that very SVN update
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests