mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix graph argument issues (#12868)
* Fix top devices widget storage graphs referenced the wrong graph, caused it to not work because device was not set. * Handle feedback from rrdtool properly
This commit is contained in:
@@ -73,7 +73,7 @@ if (! empty($command_only)) {
|
||||
echo "<div class='infobox'>";
|
||||
echo "<p style='font-size: 16px; font-weight: bold;'>RRDTool Command</p>";
|
||||
echo "<pre class='rrd-pre'>";
|
||||
echo 'rrdtool ' . Rrd::buildCommand('graph', '-', $rrd_options);
|
||||
echo escapeshellcmd('rrdtool ' . Rrd::buildCommand('graph', Config::get('temp_dir') . '/' . strgen(), $rrd_options));
|
||||
echo '</pre>';
|
||||
try {
|
||||
Rrd::graph($rrd_options);
|
||||
|
||||
Reference in New Issue
Block a user