From 921872369d73f161c6681f9784c8a9cd1ca9f0d0 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Mon, 16 Oct 2023 10:48:01 -0700 Subject: [PATCH] Fix rrd exists check (#15466) Filename incorrect for test --- LibreNMS/Data/Store/Rrd.php | 1 + 1 file changed, 1 insertion(+) diff --git a/LibreNMS/Data/Store/Rrd.php b/LibreNMS/Data/Store/Rrd.php index 43bfb479cf..e2a206fb6d 100644 --- a/LibreNMS/Data/Store/Rrd.php +++ b/LibreNMS/Data/Store/Rrd.php @@ -524,6 +524,7 @@ class Rrd extends BaseDatastore { if ($this->rrdcached && version_compare($this->version, '1.5', '>=')) { $check_output = implode($this->command('last', $filename, '')); + $filename = str_replace([$this->rrd_dir . '/', $this->rrd_dir], '', $filename); return ! (str_contains($check_output, $filename) && str_contains($check_output, 'No such file or directory')); } else {