mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Also fix the graph generating code for NfSen rrds (#6835)
* Also fix the graph generating code for NfSen rrds * Updated NfSen document as well
This commit is contained in:
committed by
Neil Lathwood
parent
af47676ce7
commit
572277bfaa
@@ -17,7 +17,11 @@ foreach ($config['nfsen_rrds'] as $nfsenrrds) {
|
||||
$nfsensuffix = $config['nfsen_suffix'];
|
||||
}
|
||||
|
||||
$basefilename_underscored = preg_replace('/\./', $config['nfsen_split_char'], $device['hostname']);
|
||||
if (isset($config['nfsen_split_char']) && !empty($config['nfsen_split_char'])) {
|
||||
$basefilename_underscored = preg_replace('/\./', $config['nfsen_split_char'], $device['hostname']);
|
||||
} else {
|
||||
$basefilename_underscored = $device['hostname'];
|
||||
}
|
||||
$nfsen_filename = preg_replace('/'.$nfsensuffix.'/', '', $basefilename_underscored);
|
||||
|
||||
if (is_file($nfsenrrds.$nfsen_filename.'.rrd')) {
|
||||
|
Reference in New Issue
Block a user