We look out for the windows. Windows + Zabbix

  • Tutorial

Introduction


The Zabbix system has the ability to bind a template to Windows-based servers and computers. Called Template OS Windows.
At one point, I realized: it would be nice to screw a bunch of counters there

Practice "Agent"


If you have installed Zabbix agent, then we will communicate with the OS through it.

When viewing the Template OS Windows template, we pay attention to the data element:
Average disk write queue length perf_counter[\234(_Total)\1404].

What do these numbers mean \ 234 (_Total) \ 1404. ?

On Windows, these numbers represent internal performance counter identifiers. But if you have installed the Zabbix base with UTF8 encoding, then nothing prevents us from using Russian names in the counters.

We
typeperf -q

get the counters as follows: And if we have several hard drives (interfaces, etc.):
typeperf -qx

Too much information? Filtering:
typeperf "\Физический диск(_Total)\"

Another option is to get 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?
To do this, we will read the counters through SNMP:

snmpwalk -Of -c public -v 2c 192.168.0.1

If we 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 names at http://support.ipmonitor.com/snmp_center.aspx )

Linux option is more informative.

Conclusion


It remains to connect the necessary counters and it will be possible to monitor the performance of the system.

Examples of patterns:
Agent Windows: http://yadi.sk/d/emnLSQlv1VPxj (Disk System Performance)
SNMP Windows: http://yadi.sk/d/aHcKTrJm1VPyJ (Monitor Network Interface)
SNMP Printers: http: // yadi. sk / d / 5lggU-8d1VPyN (Status of HP Printer Consumables )

Also popular now: