mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Rrdcached Socket Check fix (#11372)
* Global Settings - Alert Default Settings
* Revert "Global Settings - Alert Default Settings"
This reverts commit a1af62b146
.
* RRDCached Socket Check fix
This commit is contained in:
@@ -42,8 +42,8 @@ if ($agent_data['app'][$name]) {
|
||||
|
||||
if (!$sock) {
|
||||
$socket = \LibreNMS\Config::get('rrdcached');
|
||||
if (substr($socket, 0, 7) == 'unix://') {
|
||||
if (file_exists(substr($socket, 7))) {
|
||||
if (substr($socket, 0, 6) == 'unix:/') {
|
||||
if (file_exists(substr($socket, 5))) {
|
||||
$sock = fsockopen($socket);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user