typeperf -qx>>perfcounter.txt
Then open file.See the picture.
In windows services find out what is exe and service name and search for exe name in perfcounter file.
Add zabbix agent and ports. I do it via command line, it is faster.
netsh advfirewall firewall add rule name="zabbix" dir=in action=allow protocol=TCP localport=10050
netsh advfirewall firewall add rule name="zabbixu" dir=in action=allow protocol=UDP localport=10050
Install zabbix agent.
msiexec /I zabbix_agent-2.0.2_x86.msi server=zabbix.pasts.lv rmtcmd=1 /qn
Add PerfCounter to zabbix_agentd.conf file with name you found. In my case
PerfCounter=Ax32Serv,"\Process(Ax32Serv)\% Processor Time",60
Create item to monitor service state- up or down left is service name in windows services to the right item properties in zabbix server. Service Name goes to key.
The same way on Zabbix Server create new item to monitor particular exe file we wrote in zabbix_agentd.conf file. Create according trigger to notice about service state
Check the latest data to ensure items are being monitored.
Vuala service and exe now are being monitored
Nav komentāru:
Ierakstīt komentāru