mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Do not create rrd folder when -r is specified for poller (#4812)
This commit is contained in:
committed by
Tony Murray
parent
5569884f7f
commit
499b05f0f5
@@ -184,7 +184,7 @@ function poll_device($device, $options)
|
||||
$update_array = array();
|
||||
|
||||
$host_rrd = $config['rrd_dir'].'/'.$device['hostname'];
|
||||
if (!is_dir($host_rrd)) {
|
||||
if ($config['norrd'] !== true && !is_dir($host_rrd)) {
|
||||
mkdir($host_rrd);
|
||||
echo "Created directory : $host_rrd\n";
|
||||
}
|
||||
|
Reference in New Issue
Block a user