Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


text labels missing from graph

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific
Author Message
larry



Joined: 01 Aug 2008
Posts: 2

PostPosted: Fri Aug 01, 2008 12:16 pm    Post subject: text labels missing from graph Reply with quote

Hello!
I have a problem with very similar to this one:
http://forums.cacti.net/about8389.html

All the graphs in cacti are with missing labels. I am using cacti 0.8.7b-2 (Debian package). Everything was working fine before i upgraded the following packages:

[UPGRADE] apache2 2.2.3-4+etch4 -> 2.2.3-4+etch5
[UPGRADE] apache2-mpm-prefork 2.2.3-4+etch4 -> 2.2.3-4+etch5
[UPGRADE] apache2-utils 2.2.3-4+etch4 -> 2.2.3-4+etch5
[UPGRADE] apache2.2-common 2.2.3-4+etch4 -> 2.2.3-4+etch5
[UPGRADE] libfreetype6 2.3.6-1 -> 2.3.7-1
[UPGRADE] librrd2 1.2.27-2+b1 -> 1.2.28-1
[UPGRADE] librrds-perl 1.2.27-2+b1 -> 1.2.28-1
[UPGRADE] rrdtool 1.2.27-2+b1 -> 1.2.28-1

I enabled some debug to catch the command used for creating the PNGs:
it was:
Code:
/usr/bin/rrdtool graph -  --imgformat=PNG  --start=-2678400  --end=-7200  --title="Localhost - Traffic - |query_ifName|"  --rigid  --base=1000  --height=120  --width=500  --alt-autoscale-max  --lower-limit=0  --vertical-label="bits per second"  --slope-mode  --font TITLE:12:  --font AXIS:8:  --font LEGEND:10:  --font UNIT:8:  DEF:a="/var/lib/cacti/rra/localhost_traffic_in_669.rrd":traffic_in:AVERAGE  DEF:b="/var/lib/cacti/rra/localhost_traffic_in_669.rrd":traffic_in:MAX  DEF:c="/var/lib/cacti/rra/localhost_traffic_in_669.rrd":traffic_out:AVERAGE  DEF:d="/var/lib/cacti/rra/localhost_traffic_in_669.rrd":traffic_out:MAX  CDEF:cdefa=a,8,*  CDEF:cdefd=b,8,*  CDEF:cdefe=c,8,*  CDEF:cdefh=d,8,*  AREA:cdefa#00CF00FF:"Inbound"   GPRINT:cdefa:LAST:" Current\:%8.2lf %s"   GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"   GPRINT:cdefd:MAX:"Maximum\:%8.2lf %s\n"   LINE1:cdefe#002A97FF:"Outbound"   GPRINT:cdefe:LAST:"Current\:%8.2lf %s"   GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s"   GPRINT:cdefh:MAX:"Maximum\:%8.2lf %s"


When i ran it manually it displayed:
Code:
ERROR: failed to load

and the generated PNG was with missing labels exactly as in cacti.

I ran the same command again but removed all the --font parameters and the generated PNG was with correct labels.

It seems that it isnt loading the font or the parameters are incorrect. (i'm not RRD expert)

Tried setting the RRDTool Default Font Path to some ttf font but without result. The labels still missing.

Any suggestions how to fix it? Thanks in advance!
Back to top
cmarsot



Joined: 13 Sep 2005
Posts: 27

PostPosted: Fri Aug 01, 2008 4:09 pm    Post subject: Reply with quote

Hi,

I have exactly the same problem since last update of rrdtool on my Lenny installation.
I do not think it is related to apache update.

I have created a new graph, but still have the problem.
Perhaps a cacti problem with the new version of rrdtool ?
Back to top
larry



Joined: 01 Aug 2008
Posts: 2

PostPosted: Sat Aug 02, 2008 1:48 am    Post subject: Reply with quote

downgrading librrd2 back to version 1.2.27-2+b1 fixed the problem...
Back to top
vengent



Joined: 19 Nov 2004
Posts: 7

PostPosted: Sun Aug 10, 2008 2:41 pm    Post subject: Reply with quote

I tried rolling back the librrd2, but seeing same problem, not sure if it's the same as posted or not so putting up a screenshot.

I've tried the font path, checked debug, no errors, it seems to be polling, collecting, and graphing the data itself just fine, but no labels.

This is running 0.8.7b on linux (debian testing), across numerous hosts, and numerous graph templates. I've deleted everything and started over twice.

Any one else have some suggestions?



cactitexterror.png
 Description:
 Filesize:  25.56 KB
 Viewed:  1528 Time(s)

cactitexterror.png


Back to top
jeffreym123



Joined: 10 Apr 2007
Posts: 3

PostPosted: Mon Aug 11, 2008 12:48 pm    Post subject: Reply with quote

I had the same issue, downgrading both librrd2 and rrdtool to 1.2.15-0.3 solved the issue.
Back to top
Talon_Karrde



Joined: 17 Sep 2007
Posts: 8
Location: Moers, Germany

PostPosted: Mon Aug 18, 2008 6:47 am    Post subject: Reply with quote

Hallo,

as I ran in the same problem today, I installed the old version of both
librrd2 and rrdtool. This fixed the graphs.

I did a little bit of resaerch an have found a message on debian.org
reporting the same issue.

The guy who reported this, said also that he has solved the problem
with some additional parameters.
Maybe this is interesting for cacti devolopment?

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=493575

kind regards
werner
Back to top
cmarsot



Joined: 13 Sep 2005
Posts: 27

PostPosted: Tue Aug 26, 2008 8:15 am    Post subject: Reply with quote

a new version of files are available with dist-upgrade for lenny:

rrdtool 1.3.1-3
librrd2 1.2.28-1

every is now correct.
Back to top
Talon_Karrde



Joined: 17 Sep 2007
Posts: 8
Location: Moers, Germany

PostPosted: Tue Aug 26, 2008 9:20 am    Post subject: Reply with quote

Oh, yes! I can confir that.

And Inoticed a new lib is also there.

librrd4 1.3.1-3

C U
Werner
Back to top
Discogalaxy



Joined: 25 Feb 2006
Posts: 20
Location: Germany

PostPosted: Fri Sep 05, 2008 2:51 am    Post subject: Reply with quote

Just had the same problem.
that font wasn't isntalled on my Suse 10.3
Just install via YAST and now its perfect
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group