【发布时间】:2019-04-08 14:46:13
【问题描述】:
我尝试使用 zabbix 代理监控 cpu 服务器,zabbix 不支持我的项目密钥,我尝试了这个项目密钥:
#system.run["powershell.exe -NoProfile -ExecutionPolicy ByPass -File C:\zabbix\conf\CPU_%.ps1"]
#system.run["C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -File C:\zabbix\conf\CPU_%.ps1",]
我想知道zabbix支持哪个item key?
感谢您的回复
【问题讨论】:
-
为什么不简单地使用 percounter? "perf_counter[\Processor(_Total)\% User Time] perf_counter[\Processor(_Total)\% Privileged Time] perf_counter[\System\Processor Queue Length] perf_counter[\Paging File(_Total)\% Usage]"
-
您是否在代理上设置了
EnableRemoteCommands=1?默认情况下禁用此功能,但 system.run 键需要它才能工作。另外:日志在说什么?
标签: powershell zabbix