Cacti does not show images/graph on ubuntu 12.04

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

Moderators: Developers, Moderators

Post Reply
starky
Posts: 3
Joined: Wed Oct 31, 2012 10:16 am

Cacti does not show images/graph on ubuntu 12.04

Post by starky »

hi there!
I had installed cacti via apt-get, and i tried installation from sources, and I get the same result - cacti does not show graphs at all, there is no images.
ls -l rra shows that user and group are www-data (which is apache)
With turned On "Graph Debug Mode" after the "RRDTool Command" statements the "RRDTool Says:" and there is nothing (see image).
cacti gets and parses information about my host via snmp (with auth and via public domain).
php-gd installed.
and i haven't seen errors in logs about graphs or rrdtool.
so i don't know how to get rrdtool say something, and how to get images.

additional thought:
I thought that perhaps cacti or scripts that it runs don't have permission on some temp folder where it stores generated graphs temporary...
if i take statement from cacti log with debugging mode "on" in logging settings - i can get the image if i use sudo -u www-data (apache user) "rrdtool create statement from the log" - and i get the image. But in browser there are still no graph images.

i don't know what to do next... need help please!
OS - ubuntu 12.04, current cacti installation via apt-get
ps. when i did double check on phpinfo output i noticed that libjpeg version is unknown, but it is installed (libjpeg62 and many other libjpeg's =) )
Attachments
rrdtool_says_nothing
rrdtool_says_nothing
rrdtool_says_nothing.png (206.04 KiB) Viewed 6219 times
no graph images at graph view
no graph images at graph view
no_graph.png (120.82 KiB) Viewed 6219 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Cacti does not show images/graph on ubuntu 12.04

Post by gandalf »

Is this a fresh install?
Then, please run cli/rebuild_poller_cache.php once and retry. Give it some 10 minutes to craete files and fill them ...
R.
starky
Posts: 3
Joined: Wed Oct 31, 2012 10:16 am

Re: Cacti does not show images/graph on ubuntu 12.04

Post by starky »

from repository point of view - installation is fresh, before that i tried to install from downloaded tar.gz and i got the same result - no images on graph page. ( in fact, now i have 2 installations, in /var/www and from repository, but crontab has configuration for repository installation and they have different databases)
running from cli rebuild poller cache does not gives any effect, but it takes only several seconds to complete this script...

Code: Select all

~$ sudo -u www-data /usr/bin/php5 /usr/share/cacti/cli/rebuild_poller_cache.php 
WARNING: Do not interrupt this script.  Rebuilding the Poller Cache can take quite some time
..........
time stamps on files inside rra folder are updated, but size of files are the same. Should it be the same?

Code: Select all

~$ sudo ls -l /var/lib/cacti/rra
-rw-r--r-- 1 www-data www-data  94664 нояб.  1 12:50 localhost_hdd_free_10.rrd
-rw-r--r-- 1 www-data www-data  94664 нояб.  1 12:50 localhost_hdd_free_11.rrd
-rw-r--r-- 1 www-data www-data 141488 нояб.  1 12:50 localhost_load_1min_5.rrd
-rw-r--r-- 1 www-data www-data  47840 нояб.  1 12:50 localhost_mem_buffers_3.rrd
-rw-r--r-- 1 www-data www-data  47840 нояб.  1 12:50 localhost_mem_swap_4.rrd
-rw-r--r-- 1 www-data www-data  47840 нояб.  1 12:50 localhost_proc_7.rrd
-rw-r--r-- 1 www-data www-data  94664 нояб.  1 12:50 localhost_traffic_in_8.rrd
-rw-r--r-- 1 www-data www-data  94664 нояб.  1 12:50 localhost_traffic_in_9.rrd
-rw-r--r-- 1 www-data www-data  47840 нояб.  1 12:50 localhost_users_6.rrd
~$ sudo ls -l /var/lib/cacti/rra
-rw-r--r-- 1 www-data www-data  94664 нояб.  1 13:00 localhost_hdd_free_10.rrd
-rw-r--r-- 1 www-data www-data  94664 нояб.  1 13:00 localhost_hdd_free_11.rrd
-rw-r--r-- 1 www-data www-data 141488 нояб.  1 13:00 localhost_load_1min_5.rrd
-rw-r--r-- 1 www-data www-data  47840 нояб.  1 13:00 localhost_mem_buffers_3.rrd
-rw-r--r-- 1 www-data www-data  47840 нояб.  1 13:00 localhost_mem_swap_4.rrd
-rw-r--r-- 1 www-data www-data  47840 нояб.  1 13:00 localhost_proc_7.rrd
-rw-r--r-- 1 www-data www-data  94664 нояб.  1 13:00 localhost_traffic_in_8.rrd
-rw-r--r-- 1 www-data www-data  94664 нояб.  1 13:00 localhost_traffic_in_9.rrd
-rw-r--r-- 1 www-data www-data  47840 нояб.  1 13:00 localhost_users_6.rrd
RRDtool 1.4.7

by the way poller_error.log and rrd.log are empty.
Last edited by starky on Thu Nov 01, 2012 9:42 am, edited 1 time in total.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Cacti does not show images/graph on ubuntu 12.04

Post by gandalf »

Yes, rrd file size keeps constant. This is one of the good features of rrdtool.

Now, please run the rrdtool graph command from debug and redirect output to weird.png. Any error creating the graph?
R.
starky
Posts: 3
Joined: Wed Oct 31, 2012 10:16 am

Re: Cacti does not show images/graph on ubuntu 12.04

Post by starky »

no errors, i get the file, and it contains graph... (attachment wierd.png - eah... mistyped)


/upd: just tried to install cacti on freshly installed ubuntu12.04, and i was able to get it work in less than 2min... well at least to show up graph images =)
so perhaps i broke some thing while using my system...


/upd2: i found out that if from source view in firefox try to view graph image directly - i get an error -- image [image address] cannot be shown because it contains errors... (added attachment image_error.png)
Attachments
error, while trying to get graph image directly
error, while trying to get graph image directly
image_error.png (82.83 KiB) Viewed 6204 times
output from redirecting rrdtool create statement (from debug)
output from redirecting rrdtool create statement (from debug)
wierd.png (7.69 KiB) Viewed 6205 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest