mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add debug option to spit rrd data
git-svn-id: http://www.observium.org/svn/observer/trunk@512 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -56,7 +56,7 @@ if($_GET['debug']) {
|
||||
}
|
||||
|
||||
if($rrd_options) {
|
||||
# echo("<pre>".$config['rrdtool'] . " graph $graphfile $rrd_options");
|
||||
if($_GET['debug']) { echo("<pre>".$config['rrdtool'] . " graph $graphfile $rrd_options"); }
|
||||
$thing = shell_exec($config['rrdtool'] . " graph $graphfile $rrd_options");
|
||||
if(is_file($graphfile)) {
|
||||
header('Content-type: image/png');
|
||||
|
Reference in New Issue
Block a user