Would you like to learn how to use Zabbix to monitor a Vmware ESXi server and all the virtual machines? In this tutorial, we are going to show you how to configure Zabbix to monitor a Vmware ESXi server.

• Zabbix 3.4.12
• Vmware ESXi 5.5
• Vmware ESXi 6.0
• Vmware ESXi 6.5

Equipment list

Here you can find the list of equipment used to create this tutorial.

This link will also show the software list used to create this tutorial.

Zabbix Playlist:

On this page, we offer quick access to a list of videos related to Zabbix installation.

Don’t forget to subscribe to our youtube channel named FKIT.

Tutorial – Enable Zabbix Vmware Monitoring

First, we need to edit the Zabbix server configuration file and enable the Vmware monitor feature.

Locate the zabbix_server configuration file.

Copy to Clipboard

Edit the configuration file.

Copy to Clipboard

Here is the original file, before our configuration.

Copy to Clipboard

Add the following line at the end of the file.

Copy to Clipboard

Here is the new file with our configuration.

Copy to Clipboard

In our example, the Zabbix server was configured to start automatically 5 Vmware collector processes.

Now, you need to restart the Zabbix service.

If you used our installation guide, you can restart Zabbix using the following command:

Copy to Clipboard

If the Zabbix server was started successfully, you should see a message similar to this on the log file:

Copy to Clipboard

Congratulations! you have enabled the feature required to monitor Vmware on Zabbix.

You can now use the Zabbix server dashboard to add Vmware ESXi to the network monitoring service.

Tutorial Zabbix – Monitoring Vmware ESXi

Now, we need to access the Zabbix server dashboard and add the Linux computer as a Host.

Open your browser and enter the IP address of your web server plus /zabbix.

In our example, the following URL was entered in the Browser:

• http://35.162.85.57/zabbix

On the login screen, use the default username and default password.

• Default Username: Admin
• Default Password: zabbix

zabbix login

After a successful login, you will be sent to the Zabbix Dashboard.

zabbix dashboard

On the dashboard screen, access the Configuration menu and select the Host option.

zabbix add host

On the top right of the screen, click on the Create host button.

Zabbix Create Host

On the Host configuration screen, you will have to enter the following information:

• Host Name – Enter a Hostname to identify the Vmware ESXi server.
• Visible Hostname – Repeat the hostname.
• New group – Enter a name to identify a group of similar devices.
• Agent Interface – Enter the IP address of the Vmware ESXi.

Here is the original image, before our configuration.

zabbix linux - Antes

Here is the new image with our configuration.

Zabbix Vmware Host

Next, we need to configure the Vmware login information and IP address using Macros.

Zabbix will use this information to connect to the Vmware server and collect data.

Access the Macros tab on the top of the screen and create the following macros:

Copy to Clipboard
Zabbix connect Vmware ESXI server

Next, we need to associate the host with a specific network monitor template.

By default, Zabbix comes with a large variety of monitoring templates.

Access the Templates tab on the top of the screen.

Click on the Select button and locate the template named: TEMPLATE VM VMWARE.

zabbix vmware monitor template

Click on the Add button (1).

Click on the Add button (2).

After a few minutes, you will be able to see the initial result on the Zabbix Dashboard.

The final result will take at least two hours.

By default, Zabbix will wait 1 hour to discover the virtual machines available on the ESXi server.

By default, Zabbix will wait 1 extra hour to discover the virtual machines disk and network interfaces.

Congratulations! You have configured Zabbix to monitor a Vmware ESXi server.

Congratulations! You have configured Zabbix to monitor all virtual machines from a Vmware ESXi server.