No errors anywhere - and still no graphs

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

Moderators: Developers, Moderators

Post Reply
phpnut
Posts: 3
Joined: Tue Aug 26, 2008 1:03 am

No errors anywhere - and still no graphs

Post by phpnut »

Ok, ive looked everywhere for 2 days and cant get any graphs to show

Im running lighttpd 1.4.19 w/ fast-cgi
php 5.2.5
Latest cacti - installed 2 days ago
rrdtool 1.2.12 and tried 1.2.27 too


I noticed the graphs are pulled from
graph_image.php

So I tried to access it directly and get

The image “http:/localhost/cacti/graph_image.php?action=zoom&local_graph_id=2&rra_id=0&view_type=&graph_start=1219642327&graph_end=1219728727&graph_height=120&graph_width=500&title_font_size=10” cannot be displayed, because it contains errors.


I click on the little wrench icon and see the rrdtool command being executed
So I executed it from the command line and it works fine
I piped the output to test.png and accessed it using a browser
WALA! The graph shows up so its gotta be REAL CLOSE to working

I see that graph_image calls
header("Content-type: image/png");

and then executes an rrdtool function which ends up calling popen() to exec the rrdtool and capture its output, then it simply calls PRINT to dump the output

But it doesnt show.... im at a loss.

I set php safe mode off. All paths in cacti show green, no errors in any log files anywhere
I proved the rrdtool is generating the graph just fine

I think there is a glitch somewhere with php execing rrdtool and capturing the output correctly

HELLLLPP! Im losing my mind :(
phpnut
Posts: 3
Joined: Tue Aug 26, 2008 1:03 am

Post by phpnut »

I turned on graph debugging and it reports everything is fine as well.
Again, it shows me the rrdtool command it uses and when executed from the command line works just fine.
phpnut
Posts: 3
Joined: Tue Aug 26, 2008 1:03 am

Post by phpnut »

ANOTHER CLUE

I turned on graph exporting and it works fine! Regular graphing does not.
Digging like a maniac.... ill be bald soon LOL
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

phpnut wrote:I turned on graph debugging and it reports everything is fine as well.
Again, it shows me the rrdtool command it uses and when executed from the command line works just fine.
And does it show the graph or only the debug?
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests