Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support
It is currently Wed Sep 17, 2014 6:35 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: y-axis scale labels in auto-scale mode
PostPosted: Wed Apr 01, 2009 8:42 pm 
Offline

Joined: Wed Jun 25, 2008 6:30 am
Posts: 2
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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 05, 2009 12:30 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
Please post debug output from graph management for this graph
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 05, 2009 12:44 pm 
Offline
Cacti Moderator
User avatar

Joined: Sat May 08, 2004 12:44 pm
Posts: 11316
Location: USA
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.

_________________

| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 05, 2009 1:45 pm 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
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

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 11, 2009 11:57 pm 
Offline

Joined: Wed Jun 25, 2008 6:30 am
Posts: 2
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 13, 2009 5:34 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
Please see http://svn.cacti.net/viewvc?view=rev&revision=4451
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: y-axis scale labels in auto-scale mode
PostPosted: Sat Mar 26, 2011 3:02 pm 
Offline

Joined: Sun Jul 05, 2009 4:49 pm
Posts: 1
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/branches/0.8.7/cacti.sql?view=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


Top
 Profile  
 
 Post subject: Re: y-axis scale labels in auto-scale mode
PostPosted: Mon Mar 28, 2011 5:50 am 
Offline
Cacti Guru User

Joined: Thu Aug 05, 2010 2:04 am
Posts: 1573
Location: Japan
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.
Attachment:
alt-y-grid_1.png
alt-y-grid_1.png [ 14.22 KiB | Viewed 2019 times ]

So I added the option to 'lib/rrd.php'.
Quote:
$scale = "--alt-autoscale-max --alt-y-grid" . RRD_NL;

It fixed the problem. Wow.
Attachment:
alt-y-grid_2.png
alt-y-grid_2.png [ 8.01 KiB | Viewed 2019 times ]


But, for another (zoomed) graph without problem,
Attachment:
alt-y-grid_3.png
alt-y-grid_3.png [ 15.91 KiB | Viewed 2019 times ]
changed to this..
Attachment:
alt-y-grid_4.png
alt-y-grid_4.png [ 7.39 KiB | Viewed 2019 times ]


That's tricky.

// Sorry my English


Top
 Profile  
 
 Post subject: Re: y-axis scale labels in auto-scale mode
PostPosted: Thu Mar 31, 2011 2:56 pm 
Offline

Joined: Mon Feb 07, 2011 12:58 pm
Posts: 2
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/branches/0.8.7/cacti.sql?view=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


Top
 Profile  
 
 Post subject: Re: y-axis scale labels in auto-scale mode
PostPosted: Fri Apr 01, 2011 6:13 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
As the patch introduces a db change, it's a bit tricky. Nevertheless, everything necessary should be included in that very SVN update
R.

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group