Easily discover performance counters for a chosen class within PerfRawData and add more on the fly. Out of the box includes all counters for:
- DHCP Server (Win32_PerfRawData_DHCP_Server)
- DNS (Win32_PerfRawData_DNS_DNS)
- Does not support two performance counters that start with the same two letters
eg.Tcp_IPv4
&Tcp_IPv6
. Will be fixed soon!
Zabbix 4.4.1
- Copy
perf_counter_discovery.ps1
to folder CustomScripts in your Zabbix Agent directory. eg
C:\Program Files\Zabbix Agent\CustomScripts\perf_counter_discovery.ps1
- Add this line to your
zabbix_agentd.conf
UserParameter=perf_counter.discover[*],powershell -noninteractive -file "C:\Program Files\Zabbix Agent\CustomScripts\perf_counter_discovery.ps1" $1
- Import
perf_counter_discovery.xml
template to Zabbix
- Import
perf_counter_discovery.xml
to Zabbix - Open template
Discover Performance Counters
and clone existing discovery rule such as Discover DNS Performance Counters- Change name to accurately reflect your new counter
- Replace key value with your new counter eg. from
perf_counter.discover[DNS]
toperf_counter.discover[Tcp_IPv4]
- Create new Item Prototype with the below settings: