monitoring-plugins
monitoring-plugins copied to clipboard
check_service should be able to check multiple windows services at once
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
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
Yes exactly. :-)