-
Notifications
You must be signed in to change notification settings - Fork 29
Invoke-IcingaCheckService missing Automatic services. #432
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
Comments
Here is a fixed version of the code:
|
Hello Thank you for the issue. This is not a bug but by design. As for example: if you have Edge or Chrome installed on a Windows machine, you will see the service for updating the browser is set to "Automatic". But after the system boots and the update procedure is completed, the service will end itself with exit code 0. This is the behavior we used for the plugin, as a service that ends itself with exit code 0 has not crashed and was gracefully shut down. If you need to check important services, you should always add a check to ensure the service is running, to detect if a user has shut down a service for example. I explained the reason for this on a talk at OSMC in 2022 in detail: https://youtu.be/Y_FQjRymPBU?si=1Xh-rrMzjpKRnF3e&t=1425 |
We are seeing that if we set a simple filter such as Alert on Automatic services different to running, not all services on the specific machine are captured. There are services which are down and of startup Automatic.
This is quite a serious bug.
The text was updated successfully, but these errors were encountered: