diff --git a/LibreNMS/Modules/OS.php b/LibreNMS/Modules/OS.php index 4563e6510b..2a18effc3b 100644 --- a/LibreNMS/Modules/OS.php +++ b/LibreNMS/Modules/OS.php @@ -61,7 +61,7 @@ class OS implements Module if (is_file(base_path('/includes/polling/os/' . $device['os'] . '.inc.php'))) { // OS Specific include base_path('/includes/polling/os/' . $device['os'] . '.inc.php'); - } elseif ($device['os_group'] && base_path('/includes/polling/os/' . $device['os_group'] . '.inc.php')) { + } elseif ($device['os_group'] && is_file(base_path('/includes/polling/os/' . $device['os_group'] . '.inc.php'))) { // OS Group Specific include base_path('/includes/polling/os/' . $device['os_group'] . '.inc.php'); } else {