Suppress Vertical Scale Values?

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

Moderators: Developers, Moderators

Post Reply
SpeedyZ
Posts: 5
Joined: Mon Sep 21, 2009 10:27 pm
Location: USA

Suppress Vertical Scale Values?

Post by SpeedyZ »

Is there a way to suppress the vertical scale up the left side of a graph?

I'm logging a device that outputs a 0 for normal conditions and 1 for alarm conditions. I paint the graph green with using constant area of 1, then overlay a red a red area if a 1 is received. So the entire graph is either green for Normal, or Red for an Alarm, so I need no numbers displayed on the left. Now I currently get 0.0, 0.2, 0.4, 0.6, 0.8, and 1.0 up the left side which is a little confusing.

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

Post by gandalf »

We are restricted to options available with rrdtool; that's our graphing base. If there is such an option, please tell us. We will want to support it, then.
Reinhard
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

I'd assume the OP is talking about the --y-grid none option.
Y-Axis

[-y|--y-grid grid step:label factor]

[-y|--y-grid none]

Y-axis grid lines appear at each grid step interval. Labels are placed every label factor lines. You can specify -y none to suppress the grid and labels altogether. The default for this option is to automatically select sensible values.

If you have set --y-grid to 'none' not only the labels get suppressed, also the space reserved for the labels is removed. You can still add space manually if you use the --units-length command to explicitly reserve space.
SpeedyZ
Posts: 5
Joined: Mon Sep 21, 2009 10:27 pm
Location: USA

Post by SpeedyZ »

Yes, that would be the option!

I know nothing about the Cacti backend as far as how things are passed to rrdtools, but is there a file or anything that can be edited after making a graph in Cacti to allow use of this option? At least until it may be supported.
SpeedyZ
Posts: 5
Joined: Mon Sep 21, 2009 10:27 pm
Location: USA

Post by SpeedyZ »

Here is some samples of my graphs. If possible it would be good to have the text displayed but not the number on the vertical scale. All inputs for these graphs are either 0 or 1. The entire block is always filled so no need for any number displayed on the left.

Hope this helps.

Thanks for a great product and support!!!
Attachments
Indicating bad flood cable
Indicating bad flood cable
Flood.png (27.14 KiB) Viewed 1910 times
HVAC 1 is the current Lead unit
HVAC 1 is the current Lead unit
HVAC.png (21.1 KiB) Viewed 1910 times
HVAC 1 power is Good
HVAC 1 power is Good
HVAC_Pwr.png (22.33 KiB) Viewed 1910 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

BSOD2600 wrote:I'd assume the OP is talking about the --y-grid none option.
But that IS supported! simply enter "none" in the respective graph template
Reinhard
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

bah, I should've known it was that easy. just glazed over it in the graph template...
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

It's those glasses your wearing ;)

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
SpeedyZ
Posts: 5
Joined: Mon Sep 21, 2009 10:27 pm
Location: USA

Post by SpeedyZ »

Thanks for the tip! It does suppress the scale but is there support for --units-length value? By default with blank Y label the graph is pushed all the way to the left edge where they X grid is not displayed correctly. A workaround is to put a space in for the Y label which helps the formating.
Grid

Y-Axis

[-y|--y-grid none]

Y-axis grid lines appear at each grid step interval. Labels are placed every label factor lines. You can specify -y none to suppress the grid and labels altogether. The default for this option is to automatically select sensible values.

If you have set --y-grid to 'none' not only the labels get suppressed, also the space reserved for the labels is removed. You can still add space manually if you use the --units-length command to explicitly reserve space.


[-L|--units-length value]

How many digits should rrdtool assume the y-axis labels to be? You may have to use this option to make enough space once you start fideling with the y-axis labeling.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Currently, there's no support for that option. Perhaps it will be part of 088. Not top of the list
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests