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

Add support for expanding values/data in matched registry subkey assertions #31

Open
atc0005 opened this issue Oct 18, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request output/extended Long Service Output (aka, "extended" or "detailed") registry windows
Milestone

Comments

@atc0005
Copy link
Owner

atc0005 commented Oct 18, 2022

When testing the check_reboot plugin on a Windows Server 2012 R2 box this status was continually shown:

WARNING: Reboot needed (applied 15 reboot assertions, 1 matched)

**ERRORS**

* reboot assertions matched, reboot needed

**DETAILED INFO**


Summary:

- 15 total reboot assertions applied
- 1 total reboot assertions matched

--------------------------------------------------

Reboot required because:


- Subkeys for key HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\WindowsUpdate\\Services\\Pending found

Once I logged into the box and checked I found that the subkey was:

  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Services\Pending\117cab2d-82b1-4b5a-a08c-4d62dbee7782

and with these values set:

Name Type Data
ClientApplicationID REG_SZ Service Recovery
RegisterWithAU REG_DWORD 0x1

I do not yet know why Service Recovery is set and is not cleared on restart, but having this additional data available via Nagios would be useful at a glance. Gating it behind the --verbose flag would be the plan.

@atc0005 atc0005 added enhancement New feature or request output/extended Long Service Output (aka, "extended" or "detailed") windows labels Oct 18, 2022
@atc0005 atc0005 added this to the Future milestone Oct 18, 2022
@atc0005 atc0005 self-assigned this Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request output/extended Long Service Output (aka, "extended" or "detailed") registry windows
Projects
None yet
Development

No branches or pull requests

1 participant