fix: Do not create rrd folder when -r is specified for poller (#4812)

This commit is contained in:
Neil Lathwood
2016-10-17 03:45:39 +01:00
committed by Tony Murray
parent 5569884f7f
commit 499b05f0f5

View File

@@ -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";
}