no title or legend in graphs
Moderators: Developers, Moderators
no title or legend in graphs
I searched through the forums and could not find another similar post, sorry if i missed it.
I did a migration of cacti from solaris to centOS, and installed version on the way. Everything seems to be working fine, however, my graphs have no Title or Legends displayed.
I did a migration of cacti from solaris to centOS, and installed version on the way. Everything seems to be working fine, however, my graphs have no Title or Legends displayed.
- Attachments
-
- graph
- brokegraph.png (13.4 KiB) Viewed 10664 times
no title or legend in graphs - RESOLVED
I figured this out. You need to have your fonts directory set properly. In this case on CentOS with rrdtool from the dag repository it is:
/usr/share/rrdtool/fonts/DevaVuSansMono-Roman.ttf
/usr/share/rrdtool/fonts/DevaVuSansMono-Roman.ttf
In Fedora 7 keep RRDTool Default Font Path blank
My friend had the same problem in FC7. Told him to clear out the RRDTool Default Font Path and it was fixed.
Hi,
I have exactly the same problem, since I'm running 0.8.7... strange. I have tested upgrading from 0.8.6j to 0.8.7 or even with a fresh install... same problem. My RRDFontpath is good :
root : fedora - /servers/apache/sites/cacti> ls DejaVuSansMono-Roman.ttf --> OK
RRDFontPath : /servers/apache/sites/cacti/DejaVuSansMono-Roman.ttf
I've also tried setting nothing, setting another ttf (arial). Same Result, my graphs are OK but no legend on my graphs. It seems there's no error in the debug log. Have you another Idea?
PS: RRDtool version 1.2.11 (so I've set 1.2.x in cacti).
Thanx
Rvk
I have exactly the same problem, since I'm running 0.8.7... strange. I have tested upgrading from 0.8.6j to 0.8.7 or even with a fresh install... same problem. My RRDFontpath is good :
root : fedora - /servers/apache/sites/cacti> ls DejaVuSansMono-Roman.ttf --> OK
RRDFontPath : /servers/apache/sites/cacti/DejaVuSansMono-Roman.ttf
I've also tried setting nothing, setting another ttf (arial). Same Result, my graphs are OK but no legend on my graphs. It seems there's no error in the debug log. Have you another Idea?
PS: RRDtool version 1.2.11 (so I've set 1.2.x in cacti).
Thanx
Rvk
Here is it
RRDTool Command:
/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Localhost - Disk Space - /dev/sda1" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/servers/apache/sites/cacti-0.8.7/rra/localhost_hdd_free_8.rrd":hdd_used:AVERAGE \
DEF:b="/servers/apache/sites/cacti-0.8.7/rra/localhost_hdd_free_8.rrd":hdd_free:AVERAGE \
CDEF:cdefa=a,1024,* \
CDEF:cdefe=b,1024,* \
CDEF:cdefi=TIME,1195053068,GT,a,a,UN,0,a,IF,IF,TIME,1195053068,GT,b,b,UN,0,b,IF,IF,+,1024,* \
AREA:cdefa#F51D30:"Used" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
AREA:cdefe#002A97:"Available":STACK \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n" \
LINE2:cdefi#000000:"Total" \
GPRINT:cdefi:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefi:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefi:MAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
OK
Thanx
RRDTool Command:
/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Localhost - Disk Space - /dev/sda1" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/servers/apache/sites/cacti-0.8.7/rra/localhost_hdd_free_8.rrd":hdd_used:AVERAGE \
DEF:b="/servers/apache/sites/cacti-0.8.7/rra/localhost_hdd_free_8.rrd":hdd_free:AVERAGE \
CDEF:cdefa=a,1024,* \
CDEF:cdefe=b,1024,* \
CDEF:cdefi=TIME,1195053068,GT,a,a,UN,0,a,IF,IF,TIME,1195053068,GT,b,b,UN,0,b,IF,IF,+,1024,* \
AREA:cdefa#F51D30:"Used" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
AREA:cdefe#002A97:"Available":STACK \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n" \
LINE2:cdefi#000000:"Total" \
GPRINT:cdefi:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefi:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefi:MAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
OK
Thanx
For what it's worth, I'm also experiencing the exact issue as mentionned in the most recent posts, after upgrading from 0.8.6j to 0.8.7.
I've tried specifying a font path, not specifying one, same thing, all the graphs just seem to be missing all the text.
I've tried 2 different ttf files:
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
/usr/local/src/rrdtool-1.2.25/src/DejaVuSansMono-Roman.ttf
I've also tried removing all my rrd files so new ones could get created.
In my apache error logs, I'm also getting similar errors, such as:
ERROR: failed to load üUÖ¿
ERROR: failed to load ìí¿
ERROR: failed to load lî¿
ERROR: failed to load ¼dÿ¿
ERROR: failed to load ì$п
And, in my case, a graph debug shows:
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="stimfil8 - Used Space - C: Label: Seri" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/local/cacti-0.8.7/rra/stimfil8_hdd_total_610.rrd":hdd_total:AVERAGE \
DEF:b="/usr/local/cacti-0.8.7/rra/stimfil8_hdd_total_610.rrd":hdd_used:AVERAGE \
AREA:a#002A97:"Total" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n" \
AREA:b#F51D30:"Used" \
GPRINTLAST:" Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
OK
---
OS: Ubuntu 6.06.1 LTS
I've tried specifying a font path, not specifying one, same thing, all the graphs just seem to be missing all the text.
I've tried 2 different ttf files:
/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
/usr/local/src/rrdtool-1.2.25/src/DejaVuSansMono-Roman.ttf
I've also tried removing all my rrd files so new ones could get created.
In my apache error logs, I'm also getting similar errors, such as:
ERROR: failed to load üUÖ¿
ERROR: failed to load ìí¿
ERROR: failed to load lî¿
ERROR: failed to load ¼dÿ¿
ERROR: failed to load ì$п
And, in my case, a graph debug shows:
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="stimfil8 - Used Space - C: Label: Seri" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/local/cacti-0.8.7/rra/stimfil8_hdd_total_610.rrd":hdd_total:AVERAGE \
DEF:b="/usr/local/cacti-0.8.7/rra/stimfil8_hdd_total_610.rrd":hdd_used:AVERAGE \
AREA:a#002A97:"Total" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n" \
AREA:b#F51D30:"Used" \
GPRINTLAST:" Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
OK
---
OS: Ubuntu 6.06.1 LTS
Interesting...
Installing and using rrdtool 1.2.25 has also fixed the problem for me. I do wonder what exactly has changed though.
0.8.7 also is working fine for me on another machine which is using rrdtool 1.2.23.
Perhaps 0.8.7 needs a minimum rrdtool 1.2.x version? Might be something to change in the documentation, is that's in fact the case?
Thanks for the tip cornut.
Installing and using rrdtool 1.2.25 has also fixed the problem for me. I do wonder what exactly has changed though.
0.8.7 also is working fine for me on another machine which is using rrdtool 1.2.23.
Perhaps 0.8.7 needs a minimum rrdtool 1.2.x version? Might be something to change in the documentation, is that's in fact the case?
Thanks for the tip cornut.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
1.2.25. Wow, downloading in a few minutes
TheWitness
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?
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?
Who is online
Users browsing this forum: No registered users and 0 guests