monitoring-plugins icon indicating copy to clipboard operation
monitoring-plugins copied to clipboard

check_service should be able to check multiple windows services at once

Open rtritscher opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe.

I'm checking multiple windows-services on a host with almost the same name - they just differ by a serial number. Currently, each windows-service needs its own check.

Describe the solution you'd like

--service accepts also regular expressions

two new arguments: --warning, --critical, accepting ranges: e.g. at least 10 but not more than 20 Windows-Services must meet --status

Alternatives

No response

Additional context

No response

rtritscher avatar Aug 19 '22 10:08 rtritscher

Something like this?

service.exe --service="^win.*" --status=running --warning=5:

4 services named "^win.*" with status "running" found, but expected "5:" [WARNING].

Service Name        ! Display Name                              ! Status  ! Startup
--------------------+-------------------------------------------+---------+-----------
WinDefend           ! Windows Defender Antivirus Service        ! running ! automatic
WinHttpAutoProxySvc ! WinHTTP Web Proxy Auto-Discovery Service  ! running ! manual
Winmgmt             ! Windows Management Instrumentation        ! running ! automatic
WinRM               ! Windows Remote Management (WS-Management) ! running ! automatic

markuslf avatar Aug 26 '22 18:08 markuslf

Yes exactly. :-)

rtritscher avatar Sep 05 '22 11:09 rtritscher