Upgrade to Ubuntu9.4 cacti8.7d does not shows graphs anymore

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

Moderators: Developers, Moderators

Post Reply
cosmin
Posts: 22
Joined: Mon Mar 16, 2009 7:13 am

Upgrade to Ubuntu9.4 cacti8.7d does not shows graphs anymore

Post by cosmin »

Hy, i'm having a big problem with cacti after upgrading my Ubuntu 8.10 to 9.4. I cannot see anymore grapsh. From what i have checked, data are being colected and put into rra, but no graps are shown in html page.

The poller seems to be ok:
cosmin@Dell:/opt/lampp/htdocs/cacti$ sudo /opt/lampp/bin/php poller.php
05/08/2009 11:31:38 AM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '122', Max Runtime '298', Poller Runs: '1'
05/08/2009 11:31:38 AM - POLLER: Poller[0] NOTE: Cron is configured to run too often! The Poller Interval is '300' seconds, with a minimum Cron period of '300' seconds, but only 122 seconds have passed since the poller last ran.

If i do a debug on a graph i get:
RRDTool Says:

/usr/local/rrdtool-1.3.7/bin/rrdtool: symbol lookup error: /usr/lib/libcairo.so.2: undefined symbol: FT_Library_SetLcdFilter

I have no clue why it sais that and neither "google" doesnt seems to know:)

Anyone had this problem after upgrading to Ubuntu 9.4?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

libcairo is used by rrdtool. So I suppose you should reinstall or recompile rrdtool
Reinhard
cosmin
Posts: 22
Joined: Mon Mar 16, 2009 7:13 am

Post by cosmin »

Did some more checkings, and data are collected right into rrd files. I manually made a .png file from one of my rrd files:

cosmin@Dell:/usr/local/rrdtool-1.3.7/bin$ sudo ./rrdtool graph proc.png --start 1241770418 --end 1241780418 DEF:procvar=/opt/lampp/htdocs/cacti/rra/localhost_proc_7.rrd:proc:AVERAGE LINE2:procvar#FF0000
481x149
And it made a nice graph whit the processes running on my PC...but in cacti i still cand see no graphs.
Plsm realy need some help here.
cosmin
Posts: 22
Joined: Mon Mar 16, 2009 7:13 am

Post by cosmin »

Yeah...that's what i was afraid of - reinstalling libcairo.
I will try that with some help from google. i will let you know if/how i fix it.
cosmin
Posts: 22
Joined: Mon Mar 16, 2009 7:13 am

Post by cosmin »

OK, so i have purged the rrdtool and did a fresh reinstall, did not complain about anything when installing it.
But the same problem remained:

RRDTool Says:
/opt/rrdtool-1.3.7/bin/rrdtool: symbol lookup error: /usr/lib/libcairo.so.2: undefined symbol: FT_Library_SetLcdFilter

I will try to see whats with that libcairo.so.2...but if google gives me no answer, i really need some help.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I suppose this happens when Cacti calls a graph. In this case, it's obviously an rrdtool issue. Make sure, that cacti does not call a different rrdtool (see Settings->Paths)!
Reinhard
cosmin
Posts: 22
Joined: Mon Mar 16, 2009 7:13 am

Post by cosmin »

I have double checked that. The path is ok:
/opt/rrdtool-1.3.7/bin/rrdtool
And cacti sais:
[OK: FILE FOUND]

I have tried again to make a graph manually and it works. But no graph is displayed in cacti.
This are the properties of the graph in cacti:
/opt/rrdtool-1.3.7/bin/rrdtool graph - \
--imgformat=PNG \
--start=1241699087 \
--end=1241785487 \
--title="Localhost - Memory Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2009/05/07 15\:24\:47 To 2009/05/08 15\:24\:47\c" \
COMMENT:" \n" \
--vertical-label="kilobytes" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/opt/lampp/htdocs/cacti/rra/localhost_mem_buffers_3.rrd":mem_buffers:AVERAGE \
DEF:b="/opt/lampp/htdocs/cacti/rra/localhost_mem_swap_4.rrd":mem_swap:AVERAGE \
AREA:a#FF4105FF:"Free" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
AREA:b#FFC73BFF:"Swap":STACK \
GPRINT:b:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n"


Using those properties, i could make manually a graph like the one that i have attached in command line:

cosmin@Dell:/opt/rrdtool-1.3.7/bin$ sudo ./rrdtool graph proc.png \
> --start=1241699087 \
> --end=1241785487 \
> --title="Localhost - Memory Usage" \
> --rigid \
> --base=1000 \
> --height=120 \
> --width=500 \
> --alt-autoscale-max \
> --lower-limit=0 \
> COMMENT:"From 2009/05/07 15\:24\:47 To 2009/05/08 15\:24\:47\c" \
> COMMENT:" \n" \
> --vertical-label="kilobytes" \
> --slope-mode \
> --font TITLE:12: \
> --font AXIS:8: \
> --font LEGEND:10: \
> --font UNIT:8: \
> DEF:a="/opt/lampp/htdocs/cacti/rra/localhost_mem_buffers_3.rrd":mem_buffers:AVERAGE \
> DEF:b="/opt/lampp/htdocs/cacti/rra/localhost_mem_swap_4.rrd":mem_swap:AVERAGE \
> AREA:a#FF4105FF:"Free" \
> GPRINT:a:LAST:"Current\:%8.2lf %s" \
> GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
> GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
> AREA:b#FFC73BFF:"Swap":STACK \
> GPRINT:b:LAST:"Current\:%8.2lf %s" \
> GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
> GPRINT:b:MAX:"Maximum\:%8.2lf %s\n"
[sudo] password for cosmin:
603x261

So, i think you are right it is a problem of cacti when it calls rrdtool, but i really dont know how to fix it.
Attachments
proc.png
proc.png (21.94 KiB) Viewed 3320 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Did you install rrdtool via yum?
Reinhard
cosmin
Posts: 22
Joined: Mon Mar 16, 2009 7:13 am

Post by cosmin »

No...i compiled it myself like that
473 wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.3.7.tar.gz
474 tar -xzf rrdtool-1.3.7.tar.gz
475 sudo rm -rI /usr/local/rrdtool-1.3.7/
476 cd rrdtool-1.3.7/
477 sudo mkdir /opt/rrdtool-1.3.7
479 ./configure --prefix=/opt/rrdtool-1.3.7/
480 make
481 sudo make install
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I just recently had a user complain that their 1.3.7 would not properly detect from CentOS 5.3 as well. Looks like a library issue definately. Goto Tech Support and see if the auto-detection logic works there. If it's 2 for 2, then it's likely a shared library mismatch somewhere. It could be that there is a library being injected into the LD_LIBRARY_PATH for the Apache server that conflicts with the RRDtool required version without a shared library version change.

With Cacti, right now, there is no reason to be running RRDtool 1.3.x anyway.

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?
cosmin
Posts: 22
Joined: Mon Mar 16, 2009 7:13 am

Post by cosmin »

OK, i have installed rrdtool 1.2.30, and now it is working finally with the older version. Thanks a lot.

By the way, i ques that in rrdtool 1.3.7 are a lot of bugs fixed from the previos versions, do you have any ideas how long will it take until i could use 1.3.7?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I believe that the 1.3.7 is a packaging issue on the Ubuntu/Debian side. RRDtool 1.3.x is supported under Cacti 0.8.7d. There are a few reports of 1.3.7 breaking things.

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 4 guests