Graphs not displaying anywhere

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
check
Posts: 3
Joined: Thu Jul 12, 2007 7:32 am

Graphs not displaying anywhere

Post by check »

I searched the forums and found that most people having this issue are getting some graphs some areas and not other areas, Also this is usually due to an upgrade or a font issue.

Ive check the font out, though it still could be the issue as im new to this, and it seems fine.

This is a fresh install using the guide http://www.howtoforge.com/cacti_ispconfig so its definately not an upgrade problem.

I can log in fine and thats about all i know to do, I check the graphs section, and then click on the thumbnails of where the images should be and it goes into another page and still displays the no image icon where the image should be.

Any suggestions would be much appriciated
check
Posts: 3
Joined: Thu Jul 12, 2007 7:32 am

Post by check »

here is an image attached though there isnt much to see
Attachments
No images image
No images image
noimages.jpg (12.03 KiB) Viewed 2065 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please visit one of the graphs at Graph Management. Switch to DEBUG node and post a screenshot
Reinhard
brodock
Posts: 3
Joined: Thu Jul 19, 2007 3:51 pm
Location: Florian

Post by brodock »

i've got exactly the same problem... and here is the log from debug:

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Localhost - Memory Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="kilobytes" \
--slope-mode \
DEF:a="/usr/share/cacti/site/rra/localhost_mem_buffers_18.rrd":mem_buffers:AVERAGE \
DEF:b="/usr/share/cacti/site/rra/localhost_mem_swap_19.rrd":mem_swap:AVERAGE \
AREA:a#FF4105:"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#FFC73B:"Swap":STACK \
GPRINT:b:LAST:"Current\:%8.2lf %s"  \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:b:MAX:"Maximum\:%8.2lf %s" 

RRDTool Says:

ERROR: opening '/usr/share/cacti/site/rra/localhost_mem_buffers_18.rrd': No such file or directory
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

brodock wrote:i've got exactly the same problem... and here is the log from debug:
Please follow instructions of second link of my signature to debug this issue
Reinhard
brodock
Posts: 3
Joined: Thu Jul 19, 2007 3:51 pm
Location: Florian

Post by brodock »

points i've got from your debug instructions:

i have 2 machines, one using Ubuntu Edgy Eft. (6.10) and another using Ubuntu Feisty Fawn (7.04).

From Feisty Fawn, when i added a host using SNMP it solved the issue, at Edgy Eft. i wasn't able to access the SNMP host so, i didn't tried it.

From Edgy Eft, (the one i still having troubles, my cacti.log is empty... maybe it's some permissions errors, but it's a clean installation from repository. Maybe you can point me a direction about this.

Apache2 is running with user apache and group www-data...
i also did an dpkg-reconfigure php5-mysql

and i think i found something that can lead to the problem:

this is an apache2 error.log

Code: Select all

ERROR: opening '/usr/share/cacti/site/rra/localhost_hdd_free_17.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/localhost_hdd_free_17.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/localhost_hdd_free_17.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/localhost_hdd_free_17.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/localhost_mem_buffers_18.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/localhost_hdd_free_17.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/localhost_hdd_free_17.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/localhost_mem_buffers_18.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/localhost_hdd_free_17.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/localhost_mem_buffers_18.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/localhost_mem_buffers_18.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/localhost_hdd_free_17.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/localhost_mem_buffers_18.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/localhost_hdd_free_17.rrd': No such file or directory
ERROR: opening '/usr/share/cacti/site/rra/localhost_hdd_free_17.rrd': No such file or directory
from cacti poller-error.log

Code: Select all

PHP Warning:  mime_magic: type regex            BEGIN[[:space:]]*[{]    application/x-awk invalid in Unknown on line 0
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Which versions of cacti on either system? Fully patched?
Reinhard
check
Posts: 3
Joined: Thu Jul 12, 2007 7:32 am

Post by check »

gandalf wrote:Please visit one of the graphs at Graph Management. Switch to DEBUG node and post a screenshot
Reinhard
Here is my print out. Im going to look at your link in a second

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Localhost - Memory Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="kilobytes" \
--slope-mode \
DEF:a="/var/www/web7/web/rra/localhost_mem_buffers_3.rrd":mem_buffers:AVERAGE \
DEF:b="/var/www/web7/web/rra/localhost_mem_swap_4.rrd":mem_swap:AVERAGE \
AREA:a#FF4105:"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#FFC73B:"Swap":STACK \
GPRINT:b:LAST:"Current\:%8.2lf %s"  \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:b:MAX:"Maximum\:%8.2lf %s" 
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please run

Code: Select all

/usr/bin/rrdtool graph /tmp/foo.png \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Localhost - Memory Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="kilobytes" \
--slope-mode \
DEF:a="/var/www/web7/web/rra/localhost_mem_buffers_3.rrd":mem_buffers:AVERAGE \
DEF:b="/var/www/web7/web/rra/localhost_mem_swap_4.rrd":mem_swap:AVERAGE \
AREA:a#FF4105:"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#FFC73B:"Swap":STACK \
GPRINT:b:LAST:"Current\:%8.2lf %s"  \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:b:MAX:"Maximum\:%8.2lf %s" 
from cli and post results
Reinhard
brodock
Posts: 3
Joined: Thu Jul 19, 2007 3:51 pm
Location: Florian

Post by brodock »

gandalf wrote:Which versions of cacti on either system? Fully patched?
Reinhard
at Ubuntu 7.04 we use 0.8.6i-3 (i think the -3 means it`s a patched version)

at Ubuntu 6.10 we use 0.8.6h-3
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests