mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Updated sed commands to allow rrdstep.php to be used to increase and decrease values (#6941)
This commit is contained in:
committed by
Tony Murray
parent
f810265cc0
commit
a58a2d8677
@@ -72,8 +72,8 @@ foreach ($files as $file) {
|
||||
$rrd_file = array_pop($tmp);
|
||||
echo "Converting $file: ";
|
||||
$command = "$rrdtool dump $file > $random &&
|
||||
sed -i 's/<step>300/<step>$step/' $random &&
|
||||
sed -i 's/<minimal_heartbeat>600/<minimal_heartbeat>$heartbeat/' $random &&
|
||||
sed -i 's/<step>\([0-9]*\)/<step>$step/' $random &&
|
||||
sed -i 's/<minimal_heartbeat>\([0-9]*\)/<minimal_heartbeat>$heartbeat/' $random &&
|
||||
$rrdtool restore -f $random $file &&
|
||||
rm -f $random";
|
||||
exec($command, $output, $code);
|
||||
|
Reference in New Issue
Block a user