zabbix 监控项目获取注册表系统屏保文件名称失败:The system cannot find the file specified.

服务器端:centos 8 + zabbix 6.2 + mysql 8

被监控机器:windows11 ,windows server 2008

客户端引擎:zabbix_agent 6.2.7 和zabbix_agent2 6.2.7

根据官网资料:https://www.zabbix.com/documentation/current/en/manual/config/items/itemtypes/zabbix_agent/win_keys#registry.getkeymodename-regexp

官方文档的案例,可以返回
registry.data["HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting","EnableZip"]
获得屏保文件名称,报错:The system cannot find the file specified.
registry.data["HKEY_CURRENT_USER\Control Panel\Desktop","SCRNSAVE.EXE"]

在客户机器上存在 HKCU\Control Panel\Desktop 这个路径
PS C:\Windows\system32> reg query "HKEY_CURRENT_USER\Control Panel\Desktop" /v "SCRNSAVE.EXE"
HKEY_CURRENT_USER\Control Panel\Desktop
    SCRNSAVE.EXE    REG_SZ    C:\Windows\system32\ssText3d.scr

经过测试发现,只有 HKEY_CURRENT_USER 路径下的注册表取值都读不到。

请先 登录 后评论

1 个回答

御前侍卫张五哥 - 羽毛球菜鸟

是其中一个windows提示这个还是都有这个提示?

请先 登录 后评论
  • 1 关注
  • 0 收藏,1088 浏览
  • 田磊 提出于 2023-03-30 08:36