no title or legend in graphs

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

Moderators: Developers, Moderators

yardus9
Cacti User
Posts: 77
Joined: Tue Jan 27, 2004 5:32 pm

no title or legend in graphs

Post by yardus9 »

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.
Attachments
graph
graph
brokegraph.png (13.4 KiB) Viewed 10670 times
yardus9
Cacti User
Posts: 77
Joined: Tue Jan 27, 2004 5:32 pm

no title or legend in graphs - RESOLVED

Post by yardus9 »

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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Yep, common mistake. And you didn't find it by searching? You may want to use google with special search parm "site:forums.cacti.net". Sometimes, this yields better results.
Reinhard
jpflager
Posts: 2
Joined: Tue Dec 12, 2006 10:52 am

In Fedora 7 keep RRDTool Default Font Path blank

Post by jpflager »

My friend had the same problem in FC7. Told him to clear out the RRDTool Default Font Path and it was fixed.
cornut
Posts: 16
Joined: Tue Oct 25, 2005 11:04 am

Post by cornut »

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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You may find errors of this king in httpd's error_log instead
Reinhard
cornut
Posts: 16
Joined: Tue Oct 25, 2005 11:04 am

Post by cornut »

Hi Gandalf,

It seems to be something like that... you're true!
I've got many :
ERROR: failed to load
ERROR: failed to load
ERROR: failed to load
ERROR: failed to load
ERROR: failed to load .....................
in my apache error.log

Do you have an idea what this could mean?
Thanx by advance

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

Post by gandalf »

If you leave the font out, does it work correctly?
Reinhard
cornut
Posts: 16
Joined: Tue Oct 25, 2005 11:04 am

Post by cornut »

No it seems to be the same...
another idea?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please visit Graph Management, select the failing graph. Switch to DEBUG. Post the result
Reinhard
cornut
Posts: 16
Joined: Tue Oct 25, 2005 11:04 am

Post by cornut »

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
User avatar
Darwin
Posts: 27
Joined: Mon May 27, 2002 10:34 am
Location: Montreal, QC
Contact:

Post by Darwin »

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" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
AREA:b#F51D30:"Used" \
GPRINT:b:LAST:" Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n"

RRDTool Says:

OK

---

OS: Ubuntu 6.06.1 LTS
cornut
Posts: 16
Joined: Tue Oct 25, 2005 11:04 am

Post by cornut »

I found it!!!!

It was because of rrdtool version!
I upgraded from rrdtool-1.2.11 -> rrdtool-1.2.25 and it roxxxxxx! :)

cacti 0.8.7 needs probably things included in recents rrdtools that cacti 0.8.6x didn't need...
Tell me if it works for you
by
and thanx very much gandalf
User avatar
Darwin
Posts: 27
Joined: Mon May 27, 2002 10:34 am
Location: Montreal, QC
Contact:

Post by Darwin »

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.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

1.2.25. Wow, downloading in a few minutes :)

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

Who is online

Users browsing this forum: No registered users and 1 guest