You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Icinga PowerShell Framework v1.13.0 - Test-IcingaForWindowsService - Exception calling "Substring" with "2" argument(s): "Length cannot be less than zero.
#778
After updating Icinga PowerShell Framework to v1.13.0, the Test-IcingaForWindowsService cmdlet stopped working
PS C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-framework> Test-IcingaForWindowsService
Exception calling "Substring" with "2" argument(s): "Length cannot be less than zero.
Parameter name: length"
At C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-framework\cache\framework_cache.psm1:4260 char:5
+ [string]$ServicePath = $ServiceConfig.ServicePath.SubString(0, $S ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentOutOfRangeException
You cannot call a method on a null-valued expression.
At C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-framework\cache\framework_cache.psm1:4262 char:9
+ if ($ServicePath.Contains('"')) {
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
[Passed]: Your service installation is properly referring to "icinga-powershell-framework.psd1" for module imports.
True
Icinga for Windows environment overview:
PowerShell Root => C:\Program Files\WindowsPowerShell\Modules
Icinga for Windows Service Path => C:\Program Files\icinga-framework-service
Icinga for Windows Service User => NT Authority\NetworkService
Icinga for Windows Service Pid => 8392
Icinga for Windows JEA Pid =>
Icinga Agent Path => C:\Program Files\ICINGA2
Icinga Agent User => NT Authority\NetworkService
Defined Default User =>
Icinga Managed User => False
PowerShell Version => 5.1.20348.2849
Operating System => Microsoft Windows Server 2022 Standard
Operating System Version => 10.0.20348
JEA Context =>
JEA Session File =>
Api Check Forwarder => True
Debug Mode => False
Icinga for Windows Certificate:
Issuer => CN=Icinga CA
Subject => CN=dev05.holding.com
List of configured background daemons on this system:
Hello
After updating Icinga PowerShell Framework to v1.13.0, the Test-IcingaForWindowsService cmdlet stopped working
Icinga for Windows environment overview:
PowerShell Root => C:\Program Files\WindowsPowerShell\Modules
Icinga for Windows Service Path => C:\Program Files\icinga-framework-service
Icinga for Windows Service User => NT Authority\NetworkService
Icinga for Windows Service Pid => 8392
Icinga for Windows JEA Pid =>
Icinga Agent Path => C:\Program Files\ICINGA2
Icinga Agent User => NT Authority\NetworkService
Defined Default User =>
Icinga Managed User => False
PowerShell Version => 5.1.20348.2849
Operating System => Microsoft Windows Server 2022 Standard
Operating System Version => 10.0.20348
JEA Context =>
JEA Session File =>
Api Check Forwarder => True
Debug Mode => False
Icinga for Windows Certificate:
Issuer => CN=Icinga CA
Subject => CN=dev05.holding.com
List of configured background daemons on this system:
Start-IcingaWindowsRESTApi
No arguments defined
List of configured background service checks on this system:
=> https://icinga.com/docs/icinga-for-windows/latest/doc/110-Installation/06-Collect-Metrics-over-Time/
No background service checks configured
List of configured repositories on this system. The list order matches the apply order:
No repositories configured
Installed components on this system:
Component Version
agent 2.14.2
framework 1.13.0
plugins 1.13.0
The text was updated successfully, but these errors were encountered: