We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 970b998 commit 2479af6Copy full SHA for 2479af6
lib/core/framework/Invoke-IcingaInternalServiceCall.psm1
@@ -17,7 +17,7 @@ function Invoke-IcingaInternalServiceCall()
17
}
18
19
# Test our Icinga for Windows service. If the service is not installed or not running, execute the plugin locally
20
- $IcingaForWindowsService = Get-IcingaWindowsServiceStatus -Service 'icingapowershell';
+ $IcingaForWindowsService = Get-Service -Service 'icingapowershell' -ErrorAction SilentlyContinue;
21
22
if ($null -eq $IcingaForWindowsService -Or $IcingaForWindowsService.Status -ne 'Running') {
23
return $NULL;
0 commit comments