I. Overview
Starting with Zabbix 2.2.0 support for monitoring VMware virtualized environments, Zabbix automatically discovers VMware hypervisors and virtual machines using low-level (low-level) rules. and create hosts to monitor them, Zabbix provides a default template for monitoring VMware vCenter or ESX hypervisor.
1. Principle of monitoring
The monitoring of virtual machines is divided into two main steps, first , vmware collector Zabbix processes go back to collect the data of the virtual machine, these processes obtain the necessary data from the VMware Web service through the SOAP protocol, The data is preprocessed and then deposited into the Zabbix server shared memory, which is then Zabbix retrieved through the VMware keys check.
I translate the slag, too lazy to translate, directly affixed to the official documents.
Starting with Zabbix version 2.4.4 The collected data are divided into 2 types:vmware configuration data and VMware perfor Mance counter data. Both types is collected independently by VMware collectors. Because of this are recommended to enable more collectors than the monitored VMware services. Otherwise retrieval of VMware Performance counter statistics might be delayed by the retrieval of VMware configuration dat A (which takes a while for large installations).
Currently only datastore, network interface and disk device statistics and custom performance counter items is based on t He VMware performance counter information.
2. Discovery
Zabbix can use low-level discovery rules to automatically discover VMware virtual machines, which is an example of a key.
3. Mainframe prototype
Mainframe prototyping using low-level discovery rules, when virtual machines are discovered, these prototypes are automatically turned into real hosts, and before they are discovered, these VMS do not have their own monitoring entries and triggers, not the hosts that are linked to the template, the hosts that are found to belong to an existing host, and use his IP and host configuration.
4. Virtual machine templates
"Template Virt VMware" Template should is used for VMware VCenter and ESX hypervisor monitoring. The "template Virt VMware Hypervisor" and "template Virt VMware Guest" Templates is used by discovery and normally should Not being manually linked to a host.
Second, installation configuration
1. Zabbix Server Configuration
To meet the monitoring of the virtual machine, Zabbix in the compile time need to add --with-libxml2 and --with-libcurl, about the dependency relationship, we please Baidu, very simple.
Not only compile the time need to add the above parameters, but also in the Zabbix server configuration file to open the following items, the specific values can be modified according to their own situation, and restart Zabbix_server services.
StartVMwareCollectors = 5 #Number of monitoring processes opened, see the official introduction for details
VMwareFrequency = 60
VMwarePerfFrequency = 60
VMwareCacheSize = 80M
VMwareTimeout = 10
service zabbix_server restart
2. Host Configuration
Using a virtual machine, simply check that the host must have the following macro variable.
-
{$URL} -VMware service (vCenter or ESX hypervisor) SDK URL (HTTPS://SERVERNAME/SDK).
-
{$USERNAME} -VMware service user name
-
{$PASSWORD} -VMware service {$USERNAME} user PASSWORD
Then link the virtual machine template.
After creation, you can automatically discover the virtual machine, you can adjust the configuration file DebugLevel to 5来 to see the detailed log information.
Third, verification
In order to speed up the monitoring of the addition, we here to revise the check the time interval, add and then change back.
Soon after, we found a lot of VMS in the host list area, such as:
For convenience, we can click on a host to add a monitor image to it.
View monitoring data.
Reference Document: Https://www.zabbix.com/documentation/3.2/manual/vm_monitoring
This article is from the "Operation and maintenance bit record" blog, please make sure to keep this source http://wzlinux.blog.51cto.com/8021085/1947572
Zabbix 3.2.6 monitoring Virtual machine vmware