From 76b46e8bf7502afe9ebb47b03b6e51431a0da3df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Bouynot?= Date: Wed, 14 Sep 2022 01:58:10 +0200 Subject: [PATCH] Fix for smokeping integration with ping-only devices (#14341) * Fix for smokeping integration with ping-only devices * Change for simple quotes * Update Smokeping.php Co-authored-by: Tony Murray --- LibreNMS/Util/Smokeping.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }