Adjust x-axis numbers format

Anything that you think should be in Cacti.

Moderators: Developers, Moderators

Post Reply
galco
Cacti User
Posts: 63
Joined: Fri Aug 03, 2007 3:09 am
Location: Barcelona, Catalunya

Adjust x-axis numbers format

Post by galco »

When cacti graphs a rra file, x-axis appears too much condensed (figura1.png). I would like to display a x-axis as (figura2.png). To get figura2.png I executed:

/usr/bin/rrdtool graph figura2.png --imgformat=PNG --start=-86400 --end=-300 --title="Localhost - Load Average" --rigid --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit=0 --units-exponent=0 --vertical-label="processes in the run queue" --slope-mode --font TITLE:12: --font AXIS:8: --font LEGEND:9: --font UNIT:8: DEF:a="localhost_load_1min_5.rrd":load_1min:AVERAGE DEF:b="localhost_load_1min_5.rrd":load_5min:AVERAGE DEF:c="localhost_load_1min_5.rrd":load_15min:AVERAGE CDEF:cdefg=TIME,1189758288,GT,a,a,UN,0,a,IF,IF,TIME,1189758288,GT,b,b,UN,0,b,IF,IF,TIME,1189758288,GT,c,c,UN,0,c,IF,IF,+,+ AREA:a#EACC00:"1 Minute Average" GPRINT:a:LAST:" Current\:%8.2lf\n" AREA:b#EA8F00:"5 Minute Average":STACK GPRINT:b:LAST:" Current\:%8.2lf\n" AREA:c#FF0000:"15 Minute Average":STACK GPRINT:c:LAST:"Current\:%8.2lf\n" LINE1:cdefg#000000:"" --x-grid MINUTE:30:HOUR:2:HOUR:2:0:%Hh

I read that the best option is to use autoconfiguration and I agree with it but when it displays a x-axis with hours, I don't like it. I don't want to pass space between the lines, only time format.
Attachments
figura1.png
figura1.png (29.68 KiB) Viewed 2966 times
figura2.png
figura2.png (29.65 KiB) Viewed 2969 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Ah, I like that :). Should be fairly easy to implement too (in theory).

Create a feature/bug report at bugs.cacti.net
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

(for Tony)
Please follow instructions at http://www.cacti.net/bugs.php
(you owe me sth, Tony, for sure)
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Gandolf,

This seems simple enough to incorporate into Beta3. Do you not agree?

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?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

No new features in 0.8.7.... :P

Send an email, we will vote.. Otherwise, 0.8.8 will have it.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Famous last words right ;)

I'll send it now.

Larry
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest