text alignment of legend

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
daksh
Cacti User
Posts: 78
Joined: Tue Nov 11, 2008 4:46 pm

text alignment of legend

Post by daksh »

Hi,
I am running Cacti 0.8.7b on opensuse 11

All seems to be working fine (except for some Windows hosts, which I am working on)...

I have attached an image of CPU utilization on one of my Linux hosts, and its legend is not alligned. I have set "CPU Idle time" as comment because this is a 4 CPU host and it displays "Idle time" as 400%, which makes user, system and IO-Wait difficult to read.

So is there a way I can display this legend in one proper alignment? (please see results.jpg)

Thanks
Attachments
results.JPG
results.JPG (14.16 KiB) Viewed 4559 times
cacti-cpu.JPG
cacti-cpu.JPG (37.79 KiB) Viewed 4559 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please us fixed width fonts. RRDTool does not align by now for other fonts
Reinhard
LightMan
Posts: 5
Joined: Wed Apr 06, 2005 7:28 am

Post by LightMan »

hello ive got also the problem with the text alignment on the legend of a graph

ive got version 0.8.7b on Ubuntu 8.04.1

can somebody help me what to change?
Attachments
aligment problem on legend
aligment problem on legend
graph.jpg (45.15 KiB) Viewed 4477 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You should either enlarge the image (x-axis) or use a smaller font to fit the space where the legend sits
Reinhard
LightMan
Posts: 5
Joined: Wed Apr 06, 2005 7:28 am

Post by LightMan »

hello gandalf

thnx for the reply

can you tell me where to do that?

i mean wich font is an option?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Graph Size:
Change the Graph Templates
Font Size:
this depends on the fonts you have installed. See docs how to apply fonts in general. Provide a font size of e.g. 8 as a start
Reinhard
daksh
Cacti User
Posts: 78
Joined: Tue Nov 11, 2008 4:46 pm

Post by daksh »

gandalf wrote:Please us fixed width fonts. RRDTool does not align by now for other fonts
Reinhard
I went to Settings -> Paths

For "RRDTool Default Font Path" I have:
/usr/share/fonts/truetype/DejaVuSerif.ttf

I have attached a screenshot for "Default RRDtool 1.2 Fonts" seen under Settings -> Visual.

What am I missing?
Attachments
cacti-fonts.JPG
cacti-fonts.JPG (35.72 KiB) Viewed 4464 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Change the Legend Font Size to 8. If I remember correctly, this will work only (with current cacti), when filling the font file name as well in this place.
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests