Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of Zabbix 3.2.6 Monitoring Virtual Machine VMware

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article is about Zabbix 3.2.6 monitoring virtual machine VMware example analysis, the editor feels very practical, so share with you to learn, I hope you can learn something after reading this article, say no more, follow the editor to have a look.

I. Overview

Since Zabbix 2.2.0, monitoring the VMware virtualized environment is supported. Zabbix automatically discovers VMware hypervisors and virtual machines using low-level (low-level) rules and creates hosts to monitor them. The default template provided by Zabbix is used to monitor VMware vCenter or ESX hypervisor.

1. Monitoring principle

The monitoring of the virtual machine is mainly divided into two steps. First, the vmware collector Zabbix processes goes back to collect the data of the virtual machine. These processes obtain the necessary data from the VMware web service through the SOAP protocol, preprocess the data, then store the data in the Zabbix server shared memory, and then retrieve the data through the VMware keys check.

Official documents:

Starting with Zabbix version 2.4.4, there are two types of data collected: VMware configuration data and VMware performance counter data. Both types are collected independently by the vmware collector. Therefore, it is recommended that you enable more collectors than the monitored VMware services. Otherwise, the retrieval of VMware performance counter statistics may be delayed by the retrieval of VMware configuration data (it takes some time for a large installation).

Currently, only data storage, network interface and disk device statistics and custom performance counter entries are based on VMware performance counter information.

2. Discovery

Zabbix can automatically discover VMware virtual machines using low-level discovery rules, and an example of key is shown in the figure below.

3. Mainframe prototype

Host prototypes are created using low-level discovery rules, and when virtual machines are discovered, these samples automatically become real hosts. Before they are discovered, these virtual machines do not have their own monitoring entries and triggers, and are not used for hosts linked to templates. The host found is an existing host and will use its IP and host configuration.

4. Virtual machine template

"Template Virt VMware" template should be used for VMware vCenter and ESX hypervisor monitoring. The "Template Virt VMware Hypervisor" and "Template Virt VMware Guest" templates are used by discovery and normally should not be manually linked to a host.

II. Installation and configuration

1. Zabbix server configuration

In order to meet the monitoring of virtual machines, Zabbix needs to add-- with-libxml2 and-- with-libcurl when compiling. For dependencies, please make your own Baidu, which is very simple.

You not only need to add the above parameters when compiling, but also need to open the following items in the configuration file of Zabbix server. You can modify the specific values according to your actual situation, and restart the zabbix_server service.

# vim / etc/zabbix/zabbix_server.conf

The number of monitoring processes enabled by StartVMwareCollectors=5 #. For more information, please see the official introduction of VMwareFrequency=60VMwarePerfFrequency=60VMwareCacheSize=80MVMwareTimeout=10service zabbix_server restart.

2. Host configuration

Using a virtual machine to simply check that the host must be equipped with the following macro variables.

{$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 you have created the virtual machine, you can automatically discover the virtual machine. You can adjust the configuration file DebugLevel to 5 to view the detailed log information.

III. Verification

In order to speed up the addition of monitoring, we modify the time interval checked here, and then modify it back after it has been added.

Soon after, we found a lot of virtual machines in the host list area, as shown below:

For convenience, we can click on a host and add a monitoring image to it.

View monitoring data.

The above is an example analysis of Zabbix 3.2.6 monitoring virtual machine VMware. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report