Áú»¢¶Ä²©

5 Monitor VMware with Áú»¢¶Ä²©

Introduction

This page walks you through the steps required to start basic monitoring of VMware.

Who this guide is for

This guide is designed for new Áú»¢¶Ä²© users and contains the minimum set of steps required to enable basic monitoring of VMware. If you are looking for deep customization options or require more advanced configuration, see the Virtual machine monitoring section or the Configuration section of Áú»¢¶Ä²© manual.

Prerequisites

Before proceeding with this guide, you need to download and install Áú»¢¶Ä²© server and Áú»¢¶Ä²© frontend according to the instructions for your OS.

This guide is based on the following setup:

  • Áú»¢¶Ä²© version: 7.0 (installed from packages)
  • OS distribution: Ubuntu
  • OS version: 22.04 (Jammy)
  • Áú»¢¶Ä²© components: Server, Frontend, Agent
  • Database: MySQL
  • Web server: Apache

It is assumed that VMware is already configured. This guide does not cover the configuration of VMware.

Configure Áú»¢¶Ä²© server

To monitor VMware, the vmware collector Áú»¢¶Ä²© processes need to be enabled. For more information on how VMware monitoring is performed, see Virtual machine monitoring.

1. Open the Áú»¢¶Ä²© server configuration file.

vi /etc/zabbix/zabbix_server.conf

2. Locate and set the StartVMwareCollectors parameter in Áú»¢¶Ä²© server configuration file to 2 or more (the default value is 0).

### Option: StartVMwareCollectors
       #       Number of pre-forked vmware collector instances.
       #
       # Mandatory: no
       # Range: 0-250
       # Default:
       # StartVMwareCollectors=0
       
       StartVMwareCollectors=2

3. Restart Áú»¢¶Ä²© server.

systemctl restart zabbix-server

Once the vmware collector processes have been started, move on to the next step.

Configure Áú»¢¶Ä²© frontend

1. Log into Áú»¢¶Ä²© frontend.

2. Create a host in Áú»¢¶Ä²© web interface:

  • In the Host name field, enter a host name (for example, "VMware environment").
  • In the Templates field, type or select the "VMware FQDN" (or "VMware") template. For more information on these templates, see Virtual machine monitoring.
  • In the Host groups field, type or select a host group (for example, a new host group "VMware").

  • In the Macros tab, set the following host macros:
    • {$VMWARE.URL} - VMware service (vCenter or ESXi hypervisor) SDK URL (https://servername/sdk)
    • {$VMWARE.USERNAME} - VMware service user name
    • {$VMWARE.PASSWORD} - VMware service {$VMWARE.USERNAME} user password

3. Click the Add button to create the host. This host will represent your VMware environment.

View collected metrics

Congratulations! At this point, Áú»¢¶Ä²© is already monitoring your VMware environment.

Depending on the configuration of your VMware environment, Áú»¢¶Ä²© may discover and then create hosts for the discovered entities. Note that the discovery and creation of hosts can also be executed manually, if necessary.

To view created hosts, navigate to the Data collection ¡ú Hosts menu section.

To view collected metrics, navigate to the Monitoring ¡ú Hosts menu section and click Latest data next to the created "VMware environment" host or one of the hosts that were created for the discovered entities.

This action will open a list of all the latest metrics collected from the selected host.

Note that some items have no data and the Not supported state. This is because Áú»¢¶Ä²© cannot find valid performance counters on the specific datastore, as it is not enabled in the VMware environment being monitored.

Set up problem alerts

Áú»¢¶Ä²© can notify you about a problem with your infrastructure using a variety of methods. This guide provides basic configuration steps for sending email alerts.

1. Navigate to User settings ¡ú Profile, switch to the Media tab and add your email.

2. Follow the guide for Receiving a problem notification.

Next time, when Áú»¢¶Ä²© detects a problem, you should receive an alert via email.

See also

  • Creating an item - how to start monitoring additional metrics.
  • Problem escalations - how to create multi-step alert scenarios (e.g., first send message to the system administrator, then, if a problem is not resolved in 45 minutes, send message to the data center manager).
  • Virtual machine monitoring - additional information about VMware monitoring (data collection process, server configuration options, troubleshooting guidance, etc.).
  • VMware monitoring item keys - a full list of VMware metrics that can be monitored using Áú»¢¶Ä²©.
  • Template - additional information about the VMware template.
  • Template - additional information about the VMware FQDN template.