From 4f96a4883ff47c5ccdefa945cf5e809f32a07067 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Wed, 18 Mar 2026 16:21:27 +0100 Subject: [PATCH] Fixes missing pool registering for metrics over time daemon --- doc/100-General/10-Changelog.md | 1 + .../daemon/Start-IcingaServiceCheckDaemon.psm1 | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/doc/100-General/10-Changelog.md b/doc/100-General/10-Changelog.md index 307d0f0..5f0c4fe 100644 --- a/doc/100-General/10-Changelog.md +++ b/doc/100-General/10-Changelog.md @@ -16,6 +16,7 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic * [#861](https://github.com/Icinga/icinga-powershell-framework/pull/861) Fixes `Update-IcingaWindowsUserPermission` to ensure permissions for logon as service are granted for non-managed users, while the removal process and any logon deny rights are never touched to not break possible third-party software and manually user configuration for those users * [#864](https://github.com/Icinga/icinga-powershell-framework/pull/864) Fixes process provider which could throw an exception for integer overflow on memory usage * [#866](https://github.com/Icinga/icinga-powershell-framework/pull/866) Fixes an issue with the Icinga for Windows permission grant for the managed `icinga` user to logon as service, which causes other added local/domain users having this permission revoked for them +* [#867](https://github.com/Icinga/icinga-powershell-framework/pull/867) Fixes missing pool registering for metrics over time daemon ## 1.14.1 (2026-02-11) diff --git a/lib/daemons/ServiceCheckDaemon/daemon/Start-IcingaServiceCheckDaemon.psm1 b/lib/daemons/ServiceCheckDaemon/daemon/Start-IcingaServiceCheckDaemon.psm1 index af37ddc..c6df2fa 100644 --- a/lib/daemons/ServiceCheckDaemon/daemon/Start-IcingaServiceCheckDaemon.psm1 +++ b/lib/daemons/ServiceCheckDaemon/daemon/Start-IcingaServiceCheckDaemon.psm1 @@ -22,9 +22,11 @@ function Start-IcingaServiceCheckDaemon() { - New-IcingaThreadInstance ` - -Name 'Main' ` - -ThreadPool (Get-IcingaThreadPool -Name 'ServiceDaemonPool') ` - -Command 'Add-IcingaServiceCheckDaemon' ` - -Start; + Add-IcingaThreadPool -Name 'ServiceDaemonPool' -MaxInstances 100; + + New-IcingaThreadInstance ` + -Name 'Main' ` + -ThreadPool (Get-IcingaThreadPool -Name 'ServiceDaemonPool') ` + -Command 'Add-IcingaServiceCheckDaemon' ` + -Start; }