mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
nfsen suffix support by falz, + fix poll-reachability, reported by JumpingM
git-svn-id: http://www.observium.org/svn/observer/trunk@2058 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -218,8 +218,11 @@ if (device_permitted($_GET['id']) || $check_device == $_GET['id'])
|
||||
foreach ($config['nfsen_rrds'] as $nfsenrrds)
|
||||
{
|
||||
if ($configs[strlen($nfsenrrds)-1] != '/') { $nfsenrrds .= '/'; }
|
||||
$nfsensuffix = "";
|
||||
if ($config['nfsen_suffix']) { $nfsensuffix = $config['nfsen_suffix']; }
|
||||
$basefilename_underscored = preg_replace('/\./', $config['nfsen_split_char'], $device['hostname']);
|
||||
if (is_file($nfsenrrds . $basefilename_underscored . ".rrd")) { $nfsen_rrd_file = $nfsenrrds . $basefilename_underscored . ".rrd"; }
|
||||
$nfsen_filename = (strstr($basefilename_underscored, $nfsensuffix, true));
|
||||
if (is_file($nfsenrrds . $nfsen_filename . ".rrd")) { $nfsen_rrd_file = $nfsenrrds . $basefilename_underscored . ".rrd"; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user