mirror of
https://github.com/librenms/librenms.git
synced 2024-09-22 02:48:37 +00:00
revert 'rrdtool -' change for now
git-svn-id: http://www.observium.org/svn/observer/trunk@1129 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
parent
20c62d5c18
commit
2df0add71a
@ -58,9 +58,10 @@ if($_GET['debug']) {
|
||||
|
||||
if($rrd_options) {
|
||||
if($_GET['debug']) { echo("<pre>".$config['rrdtool'] . " graph $graphfile $rrd_options\n\n"); }
|
||||
$thing = popen($config['rrdtool'] . " -",'w');
|
||||
fputs($thing, "graph $graphfile $rrd_options");
|
||||
pclose($thing);
|
||||
$thing = shell_exec($config['rrdtool'] . " graph $graphfile $rrd_options");
|
||||
# $thing = popen($config['rrdtool'] . " -",'w');
|
||||
# fputs($thing, "graph $graphfile $rrd_options");
|
||||
# pclose($thing);
|
||||
if(is_file($graphfile)) {
|
||||
header('Content-type: image/png');
|
||||
$fd = fopen($graphfile,'r');fpassthru($fd);fclose($fd);
|
||||
|
Loading…
Reference in New Issue
Block a user