mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix show rrdtool command (#11305)
This commit is contained in:
@@ -387,7 +387,7 @@ class Rrd extends BaseDatastore
|
||||
* @return string returns a full command ready to be piped to rrdtool
|
||||
* @throws FileExistsException if rrdtool <1.4.3 and the rrd file exists locally
|
||||
*/
|
||||
private function buildCommand($command, $filename, $options)
|
||||
public function buildCommand($command, $filename, $options)
|
||||
{
|
||||
if ($command == 'create') {
|
||||
// <1.4.3 doesn't support -O, so make sure the file doesn't exist
|
||||
|
@@ -117,7 +117,7 @@ if ($error_msg) {
|
||||
echo "<div class='infobox'>";
|
||||
echo "<p style='font-size: 16px; font-weight: bold;'>RRDTool Command</p>";
|
||||
echo "<pre class='rrd-pre'>";
|
||||
echo "rrdtool ".rrdtool_build_command("graph", $graphfile, $rrd_options);
|
||||
echo "rrdtool ". Rrd::buildCommand("graph", $graphfile, $rrd_options);
|
||||
echo "</pre>";
|
||||
$return = rrdtool_graph($graphfile, $rrd_options);
|
||||
echo "<p style='font-size: 16px; font-weight: bold;'>RRDTool Output</p>";
|
||||
|
Reference in New Issue
Block a user