Graphs not generating on Windows 2008 [x64] / IIS7 / PHP 5.3

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
yar0
Posts: 1
Joined: Thu Feb 09, 2012 3:38 am

Graphs not generating on Windows 2008 [x64] / IIS7 / PHP 5.3

Post by yar0 »

Hi,

I've installed Cacti 0.8.7i on Windows 2008 [x64] (IIS7 + PHP 5.3).
After hard installation and configuration cacti started gathering data to rrd files.
But graphs didn't shows.
I've checked, that rrdtool generate graphs from command line (I get command from cacti debug).
I found problem in file lib/rrd.php - line 98 (in function rrdtool_execute).
PHP execute rrdtool.exe command to get graph.

Code: Select all

	
if (!is_resource($rrdtool_pipe)) { 
		session_write_close(); 
		$fp = popen(read_config_option("path_rrdtool") . escape_command(" $command_line"), $pipe_mode);
		if (!is_resource($fp)) {
			unset($fp);
		}
	}
But $fp handler did output nothink. The problem is (propably), because popen function starts that process in other environment, output from that command is not back to $fp handler. You have to put "start /b " before the command:

Code: Select all

$fp = popen("start /b " . read_config_option("path_rrdtool") . escape_command(" $command_line"), $pipe_mode);
I don't know, if this correct solution, but works.
Of course developers should check system version, and so on, and so on. But for me it works and graphs are showing up.

Please, can anyone report this as a bug (I don't know how to put it on that bugzilla page).
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Graphs not generating on Windows 2008 [x64] / IIS7 / PHP

Post by BSOD2600 »

How did you install cacti? manually or used the installer?
Before you made the code change, what error did you get when graphs were not rendering? You sure it wasnt a NTFS permissions problem?

As for reporting this bug, see http://www.cacti.net/bugs.php
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests