graph_image.php doesn't show an image

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

Moderators: Developers, Moderators

Post Reply
tiran
Posts: 3
Joined: Wed May 11, 2005 3:57 am

graph_image.php doesn't show an image

Post by tiran »

I have installed cacti the first time. graph_image.php doesn't show any images but an error. I have downloaded the image with wget and it contains only html code:

<b>Notice</b>: Undefined index: rra_id in <b>/usr/share/cacti/site/graph_image.php</b> on line <b>74</b><br />

cacti: 0.8.6c
apache2: 2.0.54
php: 4.3.10
mysql: 4.1
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Do other graphs work?

Or are all of them broken?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
tiran
Posts: 3
Joined: Wed May 11, 2005 3:57 am

Post by tiran »

rony wrote:Do other graphs work?

Or are all of them broken?
All graphs are broken
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Do you have the RRDTool installed, is the path set correctly?

And I would like to suggest you upgrade to 0.8.6d.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
tiran
Posts: 3
Joined: Wed May 11, 2005 3:57 am

Post by tiran »

rony wrote:Do you have the RRDTool installed, is the path set correctly?

And I would like to suggest you upgrade to 0.8.6d.
It was a php setup issue. Debian has different configurations for php under /etc/php4. The mysql.so extension was loaded and enabled in /etc/php4/apache2/php.ini but not in /etc/php4/cli/php.ini so the command line variant of php didn't work.

After added extension=mysql.so to the cli php.ini the graphs are available.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Ah, ok cool.

Interesting to note.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests