mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Fixed IPv6 host renaming (#7275)
* Fixed IPv6 host renaming * Added get_rrd_dir() and modified other files to use it where appropriate. * rrd_name() now uses the new function get_rrd_dir(), to make it simpler to modify the escaping in the future. * Wrong function name in rrdstep.php
This commit is contained in:
+1
-2
@@ -51,14 +51,13 @@ if (empty($hostname)) {
|
||||
|
||||
$step = $config['rrd']['step'];
|
||||
$heartbeat = $config['rrd']['heartbeat'];
|
||||
$rrd_path = $config['rrd_dir'];
|
||||
$rrdtool = $config['rrdtool'];
|
||||
$tmp_path = $config['temp_dir'];
|
||||
|
||||
if ($hostname === 'all') {
|
||||
$hostname = '*';
|
||||
}
|
||||
$files = glob($rrd_path . '/' . $hostname . '/*.rrd');
|
||||
$files = glob(get_rrd_dir($hostname) . '/*.rrd');
|
||||
|
||||
$run = readline("Are you sure you want to run this command [N/y]: ");
|
||||
if (!($run == 'y' || $run == 'Y')) {
|
||||
|
||||
Reference in New Issue
Block a user