No graphs after clean instalation

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

Moderators: Developers, Moderators

Post Reply
KeanPL
Posts: 2
Joined: Wed Dec 05, 2012 2:38 pm

No graphs after clean instalation

Post by KeanPL »

I have problems with graphs in clean Cacti installation (from sources).
There is no graphs and there is also no rrd files.
I don't know what is wrong, please help me.

Configuration:
Cacti 0.8.8a
RRDtool 1.4.7
mysql Ver 14.14
Apache/2.4.3
PHP 5.4.7
Slackware 14 Kernel 3.2.29


crontab:
*/5 * * * * root php /var/www/htdocs/cacti/poller.php #> /dev/null 2>&1
(just for testing)

Graph debug mode:

Code: Select all

RRDTool Command:
/usr/share/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='Localhost - Load Average' \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit='0' \
--units-exponent='0' \
--vertical-label='processes in the run queue' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a="/var/www/htdocs/cacti/rra/localhost_load_1min_5.rrd":'load_1min':AVERAGE \
DEF:b="/var/www/htdocs/cacti/rra/localhost_load_1min_5.rrd":'load_5min':AVERAGE \
DEF:c="/var/www/htdocs/cacti/rra/localhost_load_1min_5.rrd":'load_15min':AVERAGE \
CDEF:cdefg='TIME,1354739548,GT,a,a,UN,0,a,IF,IF,TIME,1354739548,GT,b,b,UN,0,b,IF,IF,TIME,1354739548,GT,c,c,UN,0,c,IF,IF,+,+' \
AREA:a#EACC00FF:"1 Minute Average"  \
GPRINT:a:LAST:" Current\:%8.2lf\n"  \
AREA:b#EA8F00FF:"5 Minute Average":STACK \
GPRINT:b:LAST:" Current\:%8.2lf\n"  \
AREA:c#FF0000FF:"15 Minute Average":STACK \
GPRINT:c:LAST:"Current\:%8.2lf\n"  \
LINE1:cdefg#000000FF:"" 

RRDTool Says:
cacti.log

Code: Select all

12/05/2012 08:37:28 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/share/rrdtool/bin/rrdtool graph -  --imgformat=PNG  --start=-86400  --end=-300  --title='Localhost
 - Load Average'  --rigid  --base=1000  --height=120  --width=500  --alt-autoscale-max  --lower-limit='0'  --units-exponent='0'  --vertical-label='processes
in the run queue'  --slope-mode  --font TITLE:10:  --font AXIS:7:  --font LEGEND:8:  --font UNIT:7:  DEF:a="/var/www/htdocs/cacti/rra/localhost_load_1min_5.r
rd":'load_1min':AVERAGE  DEF:b="/var/www/htdocs/cacti/rra/localhost_load_1min_5.rrd":'load_5min':AVERAGE  DEF:c="/var/www/htdocs/cacti/rra/localhost_load_1mi
n_5.rrd":'load_15min':AVERAGE  CDEF:cdefg='TIME,1354739548,GT,a,a,UN,0,a,IF,IF,TIME,1354739548,GT,b,b,UN,0,b,IF,IF,TIME,1354739548,GT,c,c,UN,0,c,IF,IF,+,+'
AREA:a#EACC00FF:"1 Minute Average"   GPRINT:a:LAST:" Current\:%8.2lf\n"   AREA:b#EA8F00FF:"5 Minute Average":STACK  GPRINT:b:LAST:" Current\:%8.2lf\n"   AREA
:c#FF0000FF:"15 Minute Average":STACK  GPRINT:c:LAST:"Current\:%8.2lf\n"   LINE1:cdefg#000000FF:""
12/05/2012 08:37:28 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/share/rrdtool/bin/rrdtool graph -  --imgformat=PNG  --start=-86400  --end=-300  --title='Localhost
 - Load Average'  --rigid  --base=1000  --height=120  --width=500  --alt-autoscale-max  --lower-limit='0'  --units-exponent='0'  --vertical-label='processes
in the run queue'  --slope-mode  --font TITLE:10:  --font AXIS:7:  --font LEGEND:8:  --font UNIT:7:  DEF:a="/var/www/htdocs/cacti/rra/localhost_load_1min_5.r
rd":'load_1min':AVERAGE  DEF:b="/var/www/htdocs/cacti/rra/localhost_load_1min_5.rrd":'load_5min':AVERAGE  DEF:c="/var/www/htdocs/cacti/rra/localhost_load_1mi
n_5.rrd":'load_15min':AVERAGE  CDEF:cdefg='TIME,1354739548,GT,a,a,UN,0,a,IF,IF,TIME,1354739548,GT,b,b,UN,0,b,IF,IF,TIME,1354739548,GT,c,c,UN,0,c,IF,IF,+,+'
AREA:a#EACC00FF:"1 Minute Average"   GPRINT:a:LAST:" Current\:%8.2lf\n"   AREA:b#EA8F00FF:"5 Minute Average":STACK  GPRINT:b:LAST:" Current\:%8.2lf\n"   AREA
:c#FF0000FF:"15 Minute Average":STACK  GPRINT:c:LAST:"Current\:%8.2lf\n"   LINE1:cdefg#000000FF:""
12/05/2012 08:37:28 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/share/rrdtool/bin/rrdtool graph -  --imgformat=PNG  --start=-86400  --end=-300  --title='Localhost
 - Load Average'  --rigid  --base=1000  --height=120  --width=500  --alt-autoscale-max  --lower-limit='0'  --units-exponent='0'  --vertical-label='processes
in the run queue'  --slope-mode  --font TITLE:10:  --font AXIS:7:  --font LEGEND:8:  --font UNIT:7:  DEF:a="/var/www/htdocs/cacti/rra/localhost_load_1min_5.r
rd":'load_1min':AVERAGE  DEF:b="/var/www/htdocs/cacti/rra/localhost_load_1min_5.rrd":'load_5min':AVERAGE  DEF:c="/var/www/htdocs/cacti/rra/localhost_load_1mi
n_5.rrd":'load_15min':AVERAGE  CDEF:cdefg='TIME,1354739548,GT,a,a,UN,0,a,IF,IF,TIME,1354739548,GT,b,b,UN,0,b,IF,IF,TIME,1354739548,GT,c,c,UN,0,c,IF,IF,+,+'
AREA:a#EACC00FF:"1 Minute Average"   GPRINT:a:LAST:" Current\:%8.2lf\n"   AREA:b#EA8F00FF:"5 Minute Average":STACK  GPRINT:b:LAST:" Current\:%8.2lf\n"   AREA
:c#FF0000FF:"15 Minute Average":STACK  GPRINT:c:LAST:"Current\:%8.2lf\n"   LINE1:cdefg#000000FF:""
Files:
Cacti
is located in /var/www/htdocs/cacti

rra
dir has full privileges (777)

rrdtool
is in /usr/share/rrdtool/bin/rrdtool
-rwxrwxrwx 1 cactiuser root 61651 Dec 5 19:41 /usr/share/rrdtool/bin/rrdtool*
KeanPL
Posts: 2
Joined: Wed Dec 05, 2012 2:38 pm

Re: No graphs after clean instalation

Post by KeanPL »

I overcome this issue.
I was missing libXft which was needed by xcb.
Moreover /etc/pango/pango.modules was missing/empty. I had to generate it by "pango-querymodules > '/etc/pango/pango.modules'" and copy it to my Slackware dir in: /etc/pango/i486-slackware-linux/. This was a little bit weird as I was not expecting any distro related dirs.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests