Introduction
In Zabbix, it is possible to bind a template to Windows-based servers and computers. Called Template OS Windows.
At one point, I realized: it would be nice to have a bunch of counters in there too
Practice "Agent"
If you have Zabbix agent installed, then we will communicate with the OS through it.
When viewing the Template OS template for Windows, pay attention to the data item:
Average disk write queue length perf_counter[\234(_Total)\1404].
What do these numbers mean
\ 234 (_Total) \ 1404. ?
In Windows, these numbers indicate internal identifiers for performance counters. But if you have installed the Zabbix base with UTF8 encoding, then nothing prevents us from using Russian names in the counters
')
We get the counters as follows:
typeperf -q
And if we have several hard drives (interfaces, etc.):
typeperf -qx
Too much information? We filter:
typeperf "\ (_Total)\"
Another option is to get the counters:
lodctr /s:perfcount.txt
Opening the file we will see the identifiers and their name at the beginning in English and then in Russian.
SNMP practice
But what to do when it is impossible (or not willing) to install an agent?
For this, we will read the counters via SNMP:
snmpwalk -Of -c public -v 2c 192.168.0.1
If run under Windows, the result will be:
.iso.3.6.1.2.1.1.1.0 = STRING: "Hardware: Intel64 Family 6 Model 44 Stepping 2 AT / AT COMPATIBLE - Software: Windows Version 6.1 (Build 7601 Multiprocessor Free)"If run under Linux, the result will be:
.iso.org.dod.internet.mgmt.mib-2.system.sysDescr.0 = STRING: Hardware: Intel64 Family 6 Model 44 Stepping 2 AT / AT COMPATIBLE - Software: Windows Version 6.1 (Build 7601 Multiprocessor Free)(You can also search for matching numbers with the names at
http://support.ipmonitor.com/snmp_center.aspx )
Linux version is more informative.
Conclusion
It remains to connect the necessary counts and it will be possible to monitor the performance of the system.
Template examples:
Agent Windows:
http://yadi.sk/d/emnLSQlv1VPxj (Disk System Performance)
Windows SNMP:
http://yadi.sk/d/aHcKTrJm1VPyJ (Monitor the network interface)
SNMP Printers:
http://yadi.sk/d/5lggU-8d1VPyN (Condition of HP printer consumables)