Grpahs not showing values at bottom?

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

Moderators: Developers, Moderators

Post Reply
SteveG
Posts: 7
Joined: Tue Jul 11, 2006 2:38 am

Grpahs not showing values at bottom?

Post by SteveG »

Our cacti system was accidentally upgraded to -0.8.6j which broke quite a bit of stuff.

I've since performed a clean install and restore the SQL,RRD and plugins. I have one small problem left in that the graphs are displaying fine but the values aren't shown underneath - see attached.

Here's the debug

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1171546668 \
--end=1171633068 \
--title="BCC33CO01X01 - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--upper-limit=100 \
--lower-limit=0 \
COMMENT:"From 2007/02/15 13\:37\:48 To 2007/02/16 13\:37\:48\c" \
COMMENT:" \n" \
--vertical-label="percent" \
--slope-mode \
DEF:a="/var/www/cacti/rra/bcc33co01x01_1min_cpu_4420.rrd":1min_cpu:AVERAGE \
DEF:b="/var/www/cacti/rra/bcc33co01x01_5sec_cpu_4422.rrd":5sec_cpu:AVERAGE \
DEF:c="/var/www/cacti/rra/bcc33co01x01_5min_cpu_4421.rrd":5min_cpu:AVERAGE \
AREA:a#96E78A:"1 Minute" \
GPRINT:a:LAST:" Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:b#FF0000:"5 Seconds" \
GPRINT:b:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:c#0000FF:"5 Minutes" \
GPRINT:c:LAST:"Current\:%8.2lf %s" \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:c:MAX:"Maximum\:%8.2lf %s\n"


Any ideas?

Thanks
Attachments
graph_image.php.png
graph_image.php.png (12.75 KiB) Viewed 1018 times
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

You are using RRDTool 1.2.x and have incorrect font paths defined, either on the user or globally in settings.
[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]
SteveG
Posts: 7
Joined: Tue Jul 11, 2006 2:38 am

Post by SteveG »

That makes sense but I believe the path is correct

From cacti path settings
/usr/share/rrdtool/fonts

ls /usr/share/rrdtool/fonts/ -al
-rwxrwxrwx 1 root root 60444 Jan 26 11:51 DejaVuSansMono-Roman.ttf

Looks good to me.
SteveG
Posts: 7
Joined: Tue Jul 11, 2006 2:38 am

Post by SteveG »

I had to list the font in addition to the path

/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf

It's fixed now.

Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests