2.1.0p5 raw; Ubuntu 20.04 LTS; Windows 10 22H2 end points
I have mk_inventory.vbs
for Check_MK HW/SW Inventory
running on Windows end points for more than a year.
I made a custom view of Windows hosts, with the intention to keep track of recent updates are installed or not.
Hosts: Inventory: Operating System ➤ Kernel Version
gives 10.0.19045
, which is nice, but doesn’t change so often. The essential info, namely the Windows Update Build Revision (UBR), I have it on PDQ Inventory but I want to retire that tool, is not to be found on Checkmk.
Maybe it is Hosts: Inventory: Operating System ➤ Version
, but it returns empty.
Also Hosts: Inventory: Operating System ➤ Service Packs
is empty.
Not sure if this is a bug or misconfiguration.
Less important, but also nice to have would be to display the feature update version, which currently is 22H2
for most of my clients here.
Looked in mk_inventory.vbs
and saw it uses WMI to get the Win32_OperatingSystem
details. What I am after, I can’t find it in WMI.
Did find most of the information in the Windows registry:
; OS version 10.0.19045.3324 seperated over 4 keys
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\]
"CurrentMajorVersionNumber"=dword:0000000a
"CurrentMinorVersionNumber"=dword:00000000
"CurrentBuildNumber"="19045"
"UBR"=dword:00000cfc
; OS version 10.0.19045.3324 as 1 string
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Update\TargetingInfo\Installed\Client.OS.rs2.amd64]
"Version"="10.0.19045.3324"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Update\TargetingInfo\Installed\Windows.UpdateStackPackage.amd64]
"Version"="10.0.19045.3324"
; Feature update version
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\]
"DisplayVersion"="22H2"
I didn’t find a Werk related to above.
Where to go from here?
- maybe it’s a bug or not available for raw
- feature request and just wait…
- modify
mk_inventory.vbs
, soHosts: Inventory: Operating System ➤ Kernel Version
shows UBR too.
anyone who did this already and give pointers or code? - recommendations for a different approach, which also gives value as option for column in custom host view.