diff --git a/LibreNMS/Modules/Os.php b/LibreNMS/Modules/Os.php index 9d0025bb92c7..b4e40b8d4c62 100644 --- a/LibreNMS/Modules/Os.php +++ b/LibreNMS/Modules/Os.php @@ -28,6 +28,7 @@ use App\Models\Device; use App\Models\Eventlog; use App\Models\Location; +use LibreNMS\Enum\Severity; use LibreNMS\Interfaces\Module; use LibreNMS\Interfaces\Polling\OSPolling; use LibreNMS\Util\Url; @@ -71,11 +72,11 @@ public function poll(\LibreNMS\OS $os): void if (is_file(base_path('/includes/polling/os/' . $device['os'] . '.inc.php'))) { // OS Specific - Eventlog::log("Warning: OS {$device['os']} using deprecated polling method", $deviceModel, 'poller', 5); + Eventlog::log("Warning: OS {$device['os']} using deprecated polling method", $deviceModel, 'poller', Severity::Error); include base_path('/includes/polling/os/' . $device['os'] . '.inc.php'); } elseif (! empty($device['os_group']) && is_file(base_path('/includes/polling/os/' . $device['os_group'] . '.inc.php'))) { // OS Group Specific - Eventlog::log("Warning: OS {$device['os']} using deprecated polling method", $deviceModel, 'poller', 5); + Eventlog::log("Warning: OS {$device['os']} using deprecated polling method", $deviceModel, 'poller', Severity::Error); include base_path('/includes/polling/os/' . $device['os_group'] . '.inc.php'); }