Skip to content

[Feature-Request] Invoke-IcingaCheckService Filter Service Startup type not only Service status #211

Closed
@ferencmatyas

Description

@ferencmatyas

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions