mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
feature: updated rrdcached stats app to support Fedora/Centos (#5768)
* feature: updated rrdcached stats app to support Fedora/Centos * tabs to spaces
This commit is contained in:
committed by
Neil Lathwood
parent
e0ff92bc77
commit
c8ba28a1e3
@ -38,9 +38,11 @@ if ($agent_data['app'][$name]) {
|
||||
|
||||
$sock = fsockopen($device['hostname'], 42217, $errno, $errstr, 5);
|
||||
|
||||
if (!$sock && $device['hostname'] == 'localhost') {
|
||||
if (!$sock) {
|
||||
if (file_exists('/var/run/rrdcached.sock')) {
|
||||
$sock = fsockopen('unix:///var/run/rrdcached.sock');
|
||||
} elseif (file_exists('/var/run/rrdcached/rrdcached.sock')) {
|
||||
$sock = fsockopen('unix:///var/run/rrdcached/rrdcached.sock');
|
||||
} elseif (file_exists('/run/rrdcached.sock')) {
|
||||
$sock = fsockopen('unix:///run/rrdcached.sock');
|
||||
} elseif (file_exists('/tmp/rrdcached.sock')) {
|
||||
|
Reference in New Issue
Block a user