Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Prefer startup type of services fetching over WMI instead of Get-Services #126

Conversation

LordHepipud
Copy link
Collaborator

@LordHepipud LordHepipud commented Jan 21, 2021

In some cases, it can happen that Get-Service which is used primarily to fetch most of the service data, is not providing any results of the startup type of the service. This results in an error on the plugin, as the monitoring of all services which should be running Automatic and throw a critical if not exited properly is no longer possible. The result is simply "Ok" with no services checked as the status code is always 0 for all services and not matching the actual comparison value of 2 (Automatic)

@LordHepipud LordHepipud force-pushed the fix/fetch_service_startup_type_over_wmi_instead_of_get_services branch from accd287 to 37f0df1 Compare January 21, 2021 14:21
@LordHepipud LordHepipud self-assigned this Jan 21, 2021
@LordHepipud LordHepipud added the bug Something isn't working label Jan 21, 2021
@LordHepipud LordHepipud added this to the v1.4.0 milestone Jan 21, 2021
@LordHepipud LordHepipud merged commit 14ce201 into master Jan 29, 2021
@LordHepipud LordHepipud modified the milestones: v1.4.0, v1.3.1 Feb 3, 2021
@LordHepipud LordHepipud deleted the fix/fetch_service_startup_type_over_wmi_instead_of_get_services branch May 20, 2021 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant