VMware

VMware

VMware develops virtualization software. Virtualization software creates an abstraction layer over computer hardware that allows the hardware elements of a single computer— processors, memory, storage, and more— to be divided into multiple virtual computers, commonly called virtual machines (VMs).

Available solutions




Source: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/app/vmware


Template VM VMware macros

Overview

For Zabbix version: 5.2

Setup

Refer to the vendor documentation.

Zabbix configuration

No specific Zabbix configuration is required.

Macros used

Name Description Default
{$VMWARE.PASSWORD}

VMware service {$USERNAME} user password

``
{$VMWARE.URL}

VMware service (vCenter or ESX hypervisor) SDK URL (https://servername/sdk)

``
{$VMWARE.USERNAME}

VMware service user name

``

Template links

There are no template links in this template.

Discovery rules

Items collected

Group Name Description Type Key and additional info

Triggers

Name Description Expression Severity Dependencies and additional info

Feedback

Please report any issues with the template at https://support.zabbix.com

Template VM VMware

Overview

For Zabbix version: 5.2
The template to monitor VMware vCenter and ESX hypervisor. The "Template VM VMware Hypervisor" and "Template VM VMware Guest" templates are used by discovery and normally should not be manually linked to a host. For additional information please check https://www.zabbix.com/documentation/current/manual/vm_monitoring

Setup

  1. Compile zabbix server with required options (--with-libxml2 and --with-libcurl)
  2. Set the StartVMwareCollectors option in Zabbix server configuration file to 1 or more
  3. Create a new host
  4. Set the host macros (on host or template level) required for VMware authentication:
    {$VMWARE.URL}
    {$VMWARE.USERNAME}
    {$VMWARE.PASSWORD}
  5. Link the template to host created early

Zabbix configuration

No specific Zabbix configuration is required.

Template links

Name
Template VM VMware macros

Discovery rules

Name Description Type Key and additional info
Discover VMware clusters

Discovery of clusters

SIMPLE vmware.cluster.discovery[{$VMWARE.URL}]
Discover VMware datastores

-

SIMPLE vmware.datastore.discovery[{$VMWARE.URL}]
Discover VMware hypervisors

Discovery of hypervisors.

SIMPLE vmware.hv.discovery[{$VMWARE.URL}]
Discover VMware VMs

Discovery of guest virtual machines.

SIMPLE vmware.vm.discovery[{$VMWARE.URL}]

Items collected

Group Name Description Type Key and additional info
VMware VMware: Event log

Collect VMware event log. See also: https://www.zabbix.com/documentation/current/manual/config/items/preprocessing/examples#filtering_vmware_event_log_records

SIMPLE vmware.eventlog[{$VMWARE.URL},skip]
VMware VMware: Full name

VMware service full name.

SIMPLE vmware.fullname[{$VMWARE.URL}]

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1d

VMware VMware: Version

VMware service version.

SIMPLE vmware.version[{$VMWARE.URL}]

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1d

VMware VMware: Status of "{#CLUSTER.NAME}" cluster

VMware cluster status.

SIMPLE vmware.cluster.status[{$VMWARE.URL},{#CLUSTER.NAME}]
VMware VMware: Average read latency of the datastore {#DATASTORE}

Amount of time for a read operation from the datastore (milliseconds).

SIMPLE vmware.datastore.read[{$VMWARE.URL},{#DATASTORE},latency]
VMware VMware: Free space on datastore {#DATASTORE} (percentage)

VMware datastore space in percentage from total.

SIMPLE vmware.datastore.size[{$VMWARE.URL},{#DATASTORE},pfree]
VMware VMware: Total size of datastore {#DATASTORE}

VMware datastore space in bytes.

SIMPLE vmware.datastore.size[{$VMWARE.URL},{#DATASTORE}]
VMware VMware: Average write latency of the datastore {#DATASTORE}

Amount of time for a write operation to the datastore (milliseconds).

SIMPLE vmware.datastore.write[{$VMWARE.URL},{#DATASTORE},latency]

Triggers

Name Description Expression Severity Dependencies and additional info

Feedback

Please report any issues with the template at https://support.zabbix.com

You can also provide a feedback, discuss the template or ask for help with it at ZABBIX forums.

Template VM VMware Guest

Overview

For Zabbix version: 5.2

Setup

Refer to the vendor documentation.

Zabbix configuration

No specific Zabbix configuration is required.

Template links

Name
Template VM VMware macros

Discovery rules

Name Description Type Key and additional info
Network device discovery

Discovery of all network devices.

SIMPLE vmware.vm.net.if.discovery[{$VMWARE.URL},{HOST.HOST}]
Disk device discovery

Discovery of all disk devices.

SIMPLE vmware.vm.vfs.dev.discovery[{$VMWARE.URL},{HOST.HOST}]
Mounted filesystem discovery

Discovery of all guest file systems.

SIMPLE vmware.vm.vfs.fs.discovery[{$VMWARE.URL},{HOST.HOST}]

Items collected

Group Name Description Type Key and additional info
VMware VMware: Cluster name

Cluster name of the guest VM.

SIMPLE vmware.vm.cluster.name[{$VMWARE.URL},{HOST.HOST}]

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1d

VMware VMware: Number of virtual CPUs

Number of virtual CPUs assigned to the guest.

SIMPLE vmware.vm.cpu.num[{$VMWARE.URL},{HOST.HOST}]

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1d

VMware VMware: CPU ready

Time that the virtual machine was ready, but could not get scheduled to run on the physical CPU during last measurement interval (VMware vCenter/ESXi Server performance counter sampling interval - 20 seconds)

SIMPLE vmware.vm.cpu.ready[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: CPU usage

Current upper-bound on CPU usage. The upper-bound is based on the host the virtual machine is current running on, as well as limits configured on the virtual machine itself or any parent resource pool. Valid while the virtual machine is running.

SIMPLE vmware.vm.cpu.usage[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Datacenter name

Datacenter name of the guest VM.

SIMPLE vmware.vm.datacenter.name[{$VMWARE.URL},{HOST.HOST}]

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1d

VMware VMware: Hypervisor name

Hypervisor name of the guest VM.

SIMPLE vmware.vm.hv.name[{$VMWARE.URL},{HOST.HOST}]

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1d

VMware VMware: Ballooned memory

The amount of guest physical memory that is currently reclaimed through the balloon driver.

SIMPLE vmware.vm.memory.size.ballooned[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Compressed memory

The amount of memory currently in the compression cache for this VM.

SIMPLE vmware.vm.memory.size.compressed[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Private memory

Amount of memory backed by host memory and not being shared.

SIMPLE vmware.vm.memory.size.private[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Shared memory

The amount of guest physical memory shared through transparent page sharing.

SIMPLE vmware.vm.memory.size.shared[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Swapped memory

The amount of guest physical memory swapped out to the VM's swap device by ESX.

SIMPLE vmware.vm.memory.size.swapped[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Guest memory usage

The amount of guest physical memory that is being used by the VM.

SIMPLE vmware.vm.memory.size.usage.guest[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Host memory usage

The amount of host physical memory allocated to the VM, accounting for saving from memory sharing with other VMs.

SIMPLE vmware.vm.memory.size.usage.host[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Memory size

Total size of configured memory.

SIMPLE vmware.vm.memory.size[{$VMWARE.URL},{HOST.HOST}]

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1d

VMware VMware: Power state

The current power state of the virtual machine.

SIMPLE vmware.vm.powerstate[{$VMWARE.URL},{HOST.HOST}]

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1h

VMware VMware: Committed storage space

Total storage space, in bytes, committed to this virtual machine across all datastores.

SIMPLE vmware.vm.storage.committed[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Uncommitted storage space

Additional storage space, in bytes, potentially used by this virtual machine on all datastores.

SIMPLE vmware.vm.storage.uncommitted[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Unshared storage space

Total storage space, in bytes, occupied by the virtual machine across all datastores, that is not shared with any other virtual machine.

SIMPLE vmware.vm.storage.unshared[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Uptime

System uptime.

SIMPLE vmware.vm.uptime[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Number of bytes received on interface {#IFDESC}

VMware virtual machine network interface input statistics (bytes per second).

SIMPLE vmware.vm.net.if.in[{$VMWARE.URL},{HOST.HOST},{#IFNAME},bps]
VMware VMware: Number of packets received on interface {#IFDESC}

VMware virtual machine network interface input statistics (packets per second).

SIMPLE vmware.vm.net.if.in[{$VMWARE.URL},{HOST.HOST},{#IFNAME},pps]
VMware VMware: Number of bytes transmitted on interface {#IFDESC}

VMware virtual machine network interface output statistics (bytes per second).

SIMPLE vmware.vm.net.if.out[{$VMWARE.URL},{HOST.HOST},{#IFNAME},bps]
VMware VMware: Number of packets transmitted on interface {#IFDESC}

VMware virtual machine network interface output statistics (packets per second).

SIMPLE vmware.vm.net.if.out[{$VMWARE.URL},{HOST.HOST},{#IFNAME},pps]
VMware VMware: Average number of bytes read from the disk {#DISKDESC}

VMware virtual machine disk device read statistics (bytes per second).

SIMPLE vmware.vm.vfs.dev.read[{$VMWARE.URL},{HOST.HOST},{#DISKNAME},bps]
VMware VMware: Average number of reads from the disk {#DISKDESC}

VMware virtual machine disk device read statistics (operations per second).

SIMPLE vmware.vm.vfs.dev.read[{$VMWARE.URL},{HOST.HOST},{#DISKNAME},ops]
VMware VMware: Average number of bytes written to the disk {#DISKDESC}

VMware virtual machine disk device write statistics (bytes per second).

SIMPLE vmware.vm.vfs.dev.write[{$VMWARE.URL},{HOST.HOST},{#DISKNAME},bps]
VMware VMware: Average number of writes to the disk {#DISKDESC}

VMware virtual machine disk device write statistics (operations per second).

SIMPLE vmware.vm.vfs.dev.write[{$VMWARE.URL},{HOST.HOST},{#DISKNAME},ops]
VMware VMware: Free disk space on {#FSNAME}

VMware virtual machine file system statistics (bytes).

SIMPLE vmware.vm.vfs.fs.size[{$VMWARE.URL},{HOST.HOST},{#FSNAME},free]
VMware VMware: Free disk space on {#FSNAME} (percentage)

VMware virtual machine file system statistics (percentages).

SIMPLE vmware.vm.vfs.fs.size[{$VMWARE.URL},{HOST.HOST},{#FSNAME},pfree]
VMware VMware: Total disk space on {#FSNAME}

VMware virtual machine total disk space (bytes).

SIMPLE vmware.vm.vfs.fs.size[{$VMWARE.URL},{HOST.HOST},{#FSNAME},total]

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1d

VMware VMware: Used disk space on {#FSNAME}

VMware virtual machine used disk space (bytes).

SIMPLE vmware.vm.vfs.fs.size[{$VMWARE.URL},{HOST.HOST},{#FSNAME},used]

Triggers

Name Description Expression Severity Dependencies and additional info
VMware: {HOST.HOST} has been restarted (uptime < 10m)

Uptime is less than 10 minutes

{TEMPLATE_NAME:vmware.vm.uptime[{$VMWARE.URL},{HOST.HOST}].last()}<10m WARNING

Manual close: YES

Feedback

Please report any issues with the template at https://support.zabbix.com

Template VM VMware Hypervisor

Overview

For Zabbix version: 5.2

Setup

Refer to the vendor documentation.

Zabbix configuration

No specific Zabbix configuration is required.

Template links

Name
Template VM VMware macros

Discovery rules

Name Description Type Key and additional info
Datastore discovery

-

SIMPLE vmware.hv.datastore.discovery[{$VMWARE.URL},{HOST.HOST}]

Items collected

Group Name Description Type Key and additional info
VMware VMware: Cluster name

Cluster name of the guest VM.

SIMPLE vmware.hv.cluster.name[{$VMWARE.URL},{HOST.HOST}]

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1d

VMware VMware: CPU usage

Aggregated CPU usage across all cores on the host in Hz. This is only available if the host is connected.

SIMPLE vmware.hv.cpu.usage[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Datacenter name

Datacenter name of the hypervisor.

SIMPLE vmware.hv.datacenter.name[{$VMWARE.URL},{HOST.HOST}]

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1d

VMware VMware: Full name

The complete product name, including the version information.

SIMPLE vmware.hv.fullname[{$VMWARE.URL},{HOST.HOST}]

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1d

VMware VMware: CPU frequency

The speed of the CPU cores. This is an average value if there are multiple speeds. The product of CPU frequency and number of cores is approximately equal to the sum of the MHz for all the individual cores on the host.

SIMPLE vmware.hv.hw.cpu.freq[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: CPU model

The CPU model.

SIMPLE vmware.hv.hw.cpu.model[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: CPU cores

Number of physical CPU cores on the host. Physical CPU cores are the processors contained by a CPU package.

SIMPLE vmware.hv.hw.cpu.num[{$VMWARE.URL},{HOST.HOST}]

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1d

VMware VMware: CPU threads

Number of physical CPU threads on the host.

SIMPLE vmware.hv.hw.cpu.threads[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Total memory

The physical memory size.

SIMPLE vmware.hv.hw.memory[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Model

The system model identification.

SIMPLE vmware.hv.hw.model[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Bios UUID

The hardware BIOS identification.

SIMPLE vmware.hv.hw.uuid[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Vendor

The hardware vendor identification.

SIMPLE vmware.hv.hw.vendor[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Ballooned memory

The amount of guest physical memory that is currently reclaimed through the balloon driver. Sum of all guest VMs.

SIMPLE vmware.hv.memory.size.ballooned[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Used memory

Physical memory usage on the host.

SIMPLE vmware.hv.memory.used[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Number of bytes received

VMware hypervisor network input statistics (bytes per second).

SIMPLE vmware.hv.network.in[{$VMWARE.URL},{HOST.HOST},bps]
VMware VMware: Number of bytes transmitted

VMware hypervisor network output statistics (bytes per second).

SIMPLE vmware.hv.network.out[{$VMWARE.URL},{HOST.HOST},bps]
VMware VMware: Health state rollup

The host health state rollup sensor value: gray - unknown, green - ok, red - it has a problem, yellow - it might have a problem.

SIMPLE vmware.hv.sensor.health.state[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Overall status

The overall alarm status of the host: gray - unknown, green - ok, red - it has a problem, yellow - it might have a problem.

SIMPLE vmware.hv.status[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Uptime

System uptime.

SIMPLE vmware.hv.uptime[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Version

Dot-separated version string.

SIMPLE vmware.hv.version[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Number of guest VMs

Number of guest virtual machines.

SIMPLE vmware.hv.vm.num[{$VMWARE.URL},{HOST.HOST}]
VMware VMware: Average read latency of the datastore {#DATASTORE}

Average amount of time for a read operation from the datastore (milliseconds).

SIMPLE vmware.hv.datastore.read[{$VMWARE.URL},{HOST.HOST},{#DATASTORE},latency]
VMware VMware: Free space on datastore {#DATASTORE} (percentage)

VMware datastore space in percentage from total.

SIMPLE vmware.hv.datastore.size[{$VMWARE.URL},{HOST.HOST},{#DATASTORE},pfree]
VMware VMware: Total size of datastore {#DATASTORE}

VMware datastore space in bytes.

SIMPLE vmware.hv.datastore.size[{$VMWARE.URL},{HOST.HOST},{#DATASTORE}]
VMware VMware: Average write latency of the datastore {#DATASTORE}

Average amount of time for a write operation to the datastore (milliseconds).

SIMPLE vmware.hv.datastore.write[{$VMWARE.URL},{HOST.HOST},{#DATASTORE},latency]

Triggers

Name Description Expression Severity Dependencies and additional info
VMware: The {HOST.HOST} health is Red

One or more components in the appliance might be in an unusable status and the appliance might become unresponsive soon. Security patches might be available.

{TEMPLATE_NAME:vmware.hv.sensor.health.state[{$VMWARE.URL},{HOST.HOST}].last()}=3 HIGH

Depends on:

- VMware: The {HOST.HOST} health is Red

VMware: The {HOST.HOST} health is Yellow

One or more components in the appliance might become overloaded soon.

{TEMPLATE_NAME:vmware.hv.sensor.health.state[{$VMWARE.URL},{HOST.HOST}].last()}=2 AVERAGE

Depends on:

- VMware: The {HOST.HOST} health is Red

- VMware: The {HOST.HOST} health is Red

- VMware: The {HOST.HOST} health is Yellow

VMware: The {HOST.HOST} health is Red

One or more components in the appliance might be in an unusable status and the appliance might become unresponsive soon. Security patches might be available.

{TEMPLATE_NAME:vmware.hv.status[{$VMWARE.URL},{HOST.HOST}].last()}=3 HIGH
VMware: The {HOST.HOST} health is Yellow

One or more components in the appliance might become overloaded soon.

{TEMPLATE_NAME:vmware.hv.status[{$VMWARE.URL},{HOST.HOST}].last()}=2 AVERAGE

Depends on:

- VMware: The {HOST.HOST} health is Red

VMware: {HOST.HOST} has been restarted (uptime < 10m)

Uptime is less than 10 minutes

{TEMPLATE_NAME:vmware.hv.uptime[{$VMWARE.URL},{HOST.HOST}].last()}<10m WARNING

Manual close: YES

Feedback

Please report any issues with the template at https://support.zabbix.com

Add your solution