mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix RRDCached Application Socket Address in Poller (#11525)
* Fix RRDCached Application Socket Address in Poller * remove unnecessary socket open check
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user