Graph Y Axis Value Modifications

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

Moderators: Developers, Moderators

Post Reply
AlexBreedon
Posts: 16
Joined: Tue May 30, 2006 8:22 am

Graph Y Axis Value Modifications

Post by AlexBreedon »

Hi guys,

Got the graph bloew and it's displaying the right values in the graph however I want to change the way the Y Axis is drawn so it displays more accurately the levels in numeric form.

How do I change the graph to do this?

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

Post by gandalf »

Please tell us more exactly, what you're aiming at. Do you want to seperate data sources onto different graphs? Do you want to make the graph "per minute" instead of "per 5 minutes"?
Reinhard
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

I don't know about Alex, but the reason that I am watching this thread is I would love to find a way to change the Y Axis to show more detail. Rather than go from 0-10K then I assume 20K, something like 0-1000-2000-3000 etc, just so it is a little more accurate.

That is just my 2 cents worth.

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

See man rrdgraph and scroll down to the Y-Axis chapter.
Does this fit?
Reinhard
AlexBreedon
Posts: 16
Joined: Tue May 30, 2006 8:22 am

Post by AlexBreedon »

No what I mean is, the values polled are returning average figures of between 2 & 10, so why on the Y-axis is there a value of 10K ? instead of something more accurate like 0 - 10 or something ?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Because the highest value defines the y-axis by default. You may limit y-axis scale manually. But in this case the largest value will be way out of your graph
Reinhard
AlexBreedon
Posts: 16
Joined: Tue May 30, 2006 8:22 am

Post by AlexBreedon »

Image

This is a more up to date version of the graph. Can you please explain how my graph now displays between 0-30K on the Y-Axis when none of the maximum values polled read anywhere near that value? The maximum value is in the 110 region so surely the graph should display something more accurate along the Y-Axis ?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please visit this graph from Graph Management. Switch to DEBUG and post the rrdtool graph statements found. You will have CDEFs in place that are used differently for the graph lines and for the legends
Reinhard
AlexBreedon
Posts: 16
Joined: Tue May 30, 2006 8:22 am

Post by AlexBreedon »

Fixed the issue now, was a problem with one of the CDEF's being applied to the graph.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest