Closed
Description
Hello,
I have many services with random names at the end so I use wildcard *. I would like to check Status Running but only if Service has Startup type Automatic. Now the Manual startup type is also matched and throwing an error. Can this be implemented? Maybe also with Startup type Automatic (Delayed Start) as some services use it.
PS C:\Windows\system32> Invoke-IcingaCheckService -Service ABCD* -Exclude $null -Status Running -Verbosity 3
[CRITICAL] Services: 1 Critical 2 Ok [CRITICAL] Service "ABCD_manual" (Stopped) (All must be [OK])
_ [OK] Service "ABCD_automatic": Running
_ [CRITICAL] Service "ABCD_manual": Stopped is not matching threshold Running
_ [OK] Service "ABCD_automatic": Running
Thank you,
Regards
Ferenc