mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Updated to use Pauls code
This commit is contained in:
@@ -775,16 +775,12 @@ function get_smokeping_files($device) {
|
|||||||
return $smokeping_files;
|
return $smokeping_files;
|
||||||
}
|
}
|
||||||
|
|
||||||
function generate_smokeping_file($device,$file) {
|
function generate_smokeping_file($device,$file='') {
|
||||||
global $config;
|
global $config;
|
||||||
if ($config['smokeping']['integration'] === true) {
|
if ($config['smokeping']['integration'] === true) {
|
||||||
$response = $config['smokeping']['dir'] .'/'. $device['type'] .'/';
|
return $config['smokeping']['dir'] .'/'. $device['type'] .'/' . $file;
|
||||||
} else {
|
} else {
|
||||||
$response = $config['smokeping']['dir'] . '/';
|
return $config['smokeping']['dir'] . '/' . $file;
|
||||||
}
|
}
|
||||||
if (!empty($file)) {
|
|
||||||
$response = $response . $file;
|
|
||||||
}
|
|
||||||
return $response;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user