mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: support hosts added by ipv6 without DNS #5567
This commit is contained in:
committed by
Neil Lathwood
parent
839dd31093
commit
56bb0d2b97
@@ -201,7 +201,7 @@ function poll_device($device, $options)
|
||||
$poll_update_array = array();
|
||||
$update_array = array();
|
||||
|
||||
$host_rrd = $config['rrd_dir'].'/'.$device['hostname'];
|
||||
$host_rrd = rrd_name($device['hostname'], '', '');
|
||||
if ($config['norrd'] !== true && !is_dir($host_rrd)) {
|
||||
mkdir($host_rrd);
|
||||
echo "Created directory : $host_rrd\n";
|
||||
|
@@ -11,10 +11,10 @@ if (!empty($agent_data['munin'])) {
|
||||
$plugins_db[$plugin_db['mplug_type']]['id'] = $plugin_db['mplug_id'];
|
||||
}
|
||||
|
||||
$old_plugins_rrd_dir = $host_rrd.'/plugins';
|
||||
$plugins_rrd_dir = $host_rrd.'/munin';
|
||||
$old_plugins_rrd_dir = $host_rrd.'plugins';
|
||||
$plugins_rrd_dir = $host_rrd.'munin';
|
||||
if (is_dir($old_plugins_rrd_dir) && !is_dir($plugins_rrd_dir)) {
|
||||
rename($old_plugins_dir, $plugins_dir);
|
||||
rename($old_plugins_rrd_dir, $plugins_rrd_dir);
|
||||
}
|
||||
|
||||
if (!is_dir($plugins_rrd_dir)) {
|
||||
|
Reference in New Issue
Block a user