'zabbix agent return powershell value

i try to monitor cpu server with zabbix agent, my item key is not supported on zabbix, i tried this item key :

#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",]

i want to know which item key in zabbix is supported ?

thanks for any response



Solution 1:[1]

Add the line to zabbix_agentd.conf or zabbix_agent2.conf:

UserParameter=CPU[*], powershell -File "C:\zabbix\conf\CPU_%.ps1"

Add element Zabbix Agent (Active) with key CPU[]

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 depak