mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
Rrd source does not work with rrdcached (#15974)
Skip file migration, but at least the rrdcreate will succeed now.
This commit is contained in:
parent
9ee7139f68
commit
cdd7d9a0ba
@ -25,7 +25,6 @@
|
||||
|
||||
namespace LibreNMS\RRD;
|
||||
|
||||
use App\Facades\Rrd;
|
||||
use LibreNMS\Config;
|
||||
use LibreNMS\Exceptions\InvalidRrdTypeException;
|
||||
|
||||
@ -132,7 +131,9 @@ class RrdDefinition
|
||||
$index = array_search($file, $this->sources);
|
||||
if ($index === false) {
|
||||
// check if source rrd exists and cache failures
|
||||
if (isset($this->invalid_source[$file]) || ! Rrd::checkRrdExists($file)) {
|
||||
// using file_exists because source does not seem to support rrdcached
|
||||
// so this will only work if we have file access to the old rrd file
|
||||
if (isset($this->invalid_source[$file]) || ! file_exists($file)) {
|
||||
$this->invalid_source[$file] = true;
|
||||
|
||||
return ''; // skip source if file does not exist
|
||||
|
Loading…
Reference in New Issue
Block a user