-
Notifications
You must be signed in to change notification settings - Fork 28
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
Invoke-IcingaCheckUpdates 1.7.0 - local call results in WARNING, service-call by Incinga2 says OK #255
Comments
Thank you for the issue. The problem is, that the Network User is not having enough permissions to fetch the current Windows Update list. To resolve this, you can either use JEA Profiles Or change the GPO to allow fetching for pending updates for any user:
If last option does not resolve the problem, the only solution would be the usage of JEA Profiles |
Thanks for the info - this option doesn't resolve the problem, even after reboot. |
one last suggestion: if the plugin receives an information from the os that it is not allowed to query this object it should probably better send an UNKNOWN instead of OK and add the os-answer to the output (if possible) |
Yes this would be nice, but as far as I can tell it is not possible. We already added some checks if certain objects can't be accessed, but if you fetch the Windows Updates and have no permissions, you receive an empty list. Maybe I can find another solution for this topic. |
I tried to dig down on this issue and made some smaller adjustments to the update plugin. However, in case there is no exception thrown during the lookup on updates, we cannot print an error as far as I'm aware. For permission errors, I would advise to have a look on JEA Profiles |
I've created a service/monitor with the Invoke-IcingaCheckUpdates command, version 1.7.0 (same issue with 1.6.0).
"Inspect" shows the following call:
There is currently one update waiting on the system, so the monitor should create a WARNING-state.
Opening a PS locally (no difference between an admin-PS and a non-privileged PS) and call this command
The Icinga2-service is running in the context of "NT AUTHORITY\NetworkService".
The text was updated successfully, but these errors were encountered: