mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
acsw change, and improve debugging for rrdtool graphing
git-svn-id: http://www.observium.org/svn/observer/trunk@2816 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -89,6 +89,17 @@ if (!$auth)
|
||||
echo(generate_link("Hide Legend",$vars, array('page' => "graphs", 'legend' => "no")));
|
||||
}
|
||||
|
||||
echo('<div style="float: right;">');
|
||||
|
||||
if ($vars['showcommand'] == "yes")
|
||||
{
|
||||
echo(generate_link("Hide RRD Command",$vars, array('page' => "graphs", 'showcommand' => NULL)));
|
||||
} else {
|
||||
echo(generate_link("Show RRD Command",$vars, array('page' => "graphs", 'showcommand' => "yes")));
|
||||
}
|
||||
|
||||
echo('</div>');
|
||||
|
||||
print_optionbar_end();
|
||||
|
||||
echo generate_graph_js_state($graph_array);
|
||||
@@ -96,6 +107,13 @@ if (!$auth)
|
||||
echo('<div style="width: '.$graph_array['width'].'; margin: auto;">');
|
||||
echo(generate_graph_tag($graph_array));
|
||||
echo("</div>");
|
||||
|
||||
if($vars['showcommand'])
|
||||
{
|
||||
$_GET = $graph_array;
|
||||
$command_only = 1;
|
||||
include("includes/graphs/graph.inc.php");
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user