mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Updated smokeping to support Rosiaks integration
This commit is contained in:
@@ -38,7 +38,11 @@ foreach ($smokeping_files[$direction][$device['hostname']] as $source => $filena
|
||||
|
||||
$descr = rrdtool_escape($source, $descr_len);
|
||||
|
||||
$filename = $config['smokeping']['dir'] . $filename;
|
||||
if ($config['smokeping']['integration'] === true) {
|
||||
$filename = $config['smokeping']['dir'] .'/'. $device['type'] .'/'. $filename;
|
||||
} else {
|
||||
$filename = $config['smokeping']['dir'] . $filename;
|
||||
}
|
||||
$rrd_options .= " DEF:median$i=".$filename.":median:AVERAGE ";
|
||||
$rrd_options .= " DEF:loss$i=".$filename.":loss:AVERAGE";
|
||||
$rrd_options .= " CDEF:ploss$i=loss$i,$pings,/,100,*";
|
||||
|
Reference in New Issue
Block a user