From d65aa52b4ab5bc29afa05e3c7a04b8b1988a9cc0 Mon Sep 17 00:00:00 2001 From: SourceDoctor Date: Fri, 8 May 2020 08:51:30 +0200 Subject: [PATCH] Fix RRDCached Application Socket Address in Poller (#11525) * Fix RRDCached Application Socket Address in Poller * remove unnecessary socket open check --- includes/polling/applications/rrdcached.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/polling/applications/rrdcached.inc.php b/includes/polling/applications/rrdcached.inc.php index abcde69e51..0f93160a31 100644 --- a/includes/polling/applications/rrdcached.inc.php +++ b/includes/polling/applications/rrdcached.inc.php @@ -43,8 +43,9 @@ if ($agent_data['app'][$name]) { if (!$sock) { $socket = \LibreNMS\Config::get('rrdcached'); if (substr($socket, 0, 6) == 'unix:/') { - if (file_exists(substr($socket, 5))) { - $sock = fsockopen($socket); + $socket_file = substr($socket, 5); + if (file_exists($socket_file)) { + $sock = fsockopen("unix://" . $socket_file); } } }