Zabbix WMI监控

 

检查Windows OS是否激活,5表示处于通知模式,1表示已激活

wmi.get[root\cimv2,select LicenseStatus FROM SoftwareLicensingProduct WHERE Description like '%Windows%' and ProductKeyID like '%-%']

 

检查以下补丁是否已安装,未反正返回空值

wmi.get[root\cimv2,select HotFixID from Win32_QuickFixEngineering where (HotFixID = 'KB4012212') OR (HotFixID = 'KB4012213') Or (HotFixID = 'KB4012214') Or (HotFixID = 'KB4012215')]

 

posted on 2019-03-20 17:12  momingliu11  阅读(800)  评论(0编辑  收藏  举报