diff --git a/LibreNMS/Util/Smokeping.php b/LibreNMS/Util/Smokeping.php index 940736f0f4..446711e493 100644 --- a/LibreNMS/Util/Smokeping.php +++ b/LibreNMS/Util/Smokeping.php @@ -78,7 +78,7 @@ class Smokeping public function generateFileName($file = '') { if (Config::get('smokeping.integration') === true) { - return Config::get('smokeping.dir') . '/' . $this->device->type . '/' . $file; + return Config::get('smokeping.dir') . '/' . ($this->device->type ?: 'ungrouped') . '/' . $file; } else { return Config::get('smokeping.dir') . '/' . $file; }