5.02021-11-21T21:33:45ZTemplates/VirtualizationVM VMware UUID VM StandaloneVM VMware UUID VM Standalone## Overview
Standalone template modified from Zabbix's "VM VMware Guest" for monitoring selected VMs instead of all VMs as per Zabbix's auto-discovery template. Modified from 3.4.7 and 3.0.15
**Requirements**
* Read-only ESXi user credentials
* ESXi server IP address
* VM (Virtual Machine not host) UUID
* VMware Tools installed in VM
**To obtain** **VM UUID** (<http://www-01.ibm.com/support/docview.wss?uid=swg21682150>)
* Login to vSphere client
* Go to Virtual Machines
* Verify column headers include UUID. If not, right button click on column header and select UUID
* Select desire VM, right button click and "Copy to Clipboard"
* CTRL-V into text editor, select UUID, copy and paste.
UUID value can also be obtained by viewing the VM's .vmx file via SSH shell. Value is defined as **uuid.bios** but must be formatted in the correct form. So if uuid.bios="42 10 c1 62 e3 1e 70 e6-4a 03 b4 6a bb e1 7b 4f", UUID is "4210c162-e31e-70e6-4a03-b46abbe17b4f"
**To use**
* Create new Host
* Go to **Templates**
* Search for, select "VMware UUID VM Standalone" and add
* Go to **Macros**, **Inherited and Host Macros**
* Click Change to modify the values for
+ {$USERNAME} : ESXi username
+ {$PASSWORD} : ESXi password
+ {$URL} : https://{ESXi-IP-Address}/sdk
+ {$UUID} : UUID in lower case
* Click Add
For those using Grafana, I have uploaded the dashboard to <https://grafana.com/dashboards/4809>
**Others**
Edit **zabbix\_server.conf** and update value of **StartVMwareCollectors** to more than 0 and restart zabbix-server.
## Author
Zabbix
Templates/VirtualizationCPUDisksFilesystemsGeneralInterfacesMemoryNetworkStorageVM Filesystems- Cluster nameSIMPLEvmware.vm.cluster.name[{$URL},{$UUID}]1h0CHAR{$USERNAME}{$PASSWORD}Cluster name of the guest VM.General
- Number of virtual CPUsSIMPLEvmware.vm.cpu.num[{$URL},{$UUID}]{$USERNAME}{$PASSWORD}Number of virtual CPUs assigned to the guest.CPU
- CPU readySIMPLEvmware.vm.cpu.ready[{$URL},{$UUID}]ms{$USERNAME}{$PASSWORD}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)CPU
- CPU usageSIMPLEvmware.vm.cpu.usage[{$URL},{$UUID}]Hz{$USERNAME}{$PASSWORD}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.CPU
- Datacenter nameSIMPLEvmware.vm.datacenter.name[{$URL},{$UUID}]0CHAR{$USERNAME}{$PASSWORD}Datacenter name of the guest VM.General
- Hypervisor nameSIMPLEvmware.vm.hv.name[{$URL},{$UUID}]1h0CHAR{$USERNAME}{$PASSWORD}Hypervisor name of the guest VM.General
- Ballooned memorySIMPLEvmware.vm.memory.size.ballooned[{$URL},{$UUID}]B{$USERNAME}{$PASSWORD}The amount of guest physical memory that is currently reclaimed through the balloon driver.Memory
- Compressed memorySIMPLEvmware.vm.memory.size.compressed[{$URL},{$UUID}]B{$USERNAME}{$PASSWORD}The amount of memory currently in the compression cache for this VM.Memory
- Private memorySIMPLEvmware.vm.memory.size.private[{$URL},{$UUID}]DISABLEDB{$USERNAME}{$PASSWORD}Amount of memory backed by host memory and not being shared.Memory
- Shared memorySIMPLEvmware.vm.memory.size.shared[{$URL},{$UUID}]B{$USERNAME}{$PASSWORD}The amount of guest physical memory shared through transparent page sharing.Memory
- Swapped memorySIMPLEvmware.vm.memory.size.swapped[{$URL},{$UUID}]B{$USERNAME}{$PASSWORD}The amount of guest physical memory swapped out to the VM's swap device by ESX.Memory
- Guest memory usageSIMPLEvmware.vm.memory.size.usage.guest[{$URL},{$UUID}]B{$USERNAME}{$PASSWORD}The amount of guest physical memory that is being used by the VM.Memory
- Host memory usageSIMPLEvmware.vm.memory.size.usage.host[{$URL},{$UUID}]B{$USERNAME}{$PASSWORD}The amount of host physical memory allocated to the VM, accounting for saving from memory sharing with other VMs.Memory
- Memory sizeSIMPLEvmware.vm.memory.size[{$URL},{$UUID}]B{$USERNAME}{$PASSWORD}Total size of configured memory.Memory
- Power stateSIMPLEvmware.vm.powerstate[{$URL},{$UUID}]{$USERNAME}{$PASSWORD}The current power state of the virtual machine.GeneralVMware VirtualMachinePowerState
- Committed storage spaceSIMPLEvmware.vm.storage.committed[{$URL},{$UUID}]B{$USERNAME}{$PASSWORD}Total storage space, in bytes, committed to this virtual machine across all datastores.Storage
- Uncommitted storage spaceSIMPLEvmware.vm.storage.uncommitted[{$URL},{$UUID}]B{$USERNAME}{$PASSWORD}Additional storage space, in bytes, potentially used by this virtual machine on all datastores.Storage
- Unshared storage spaceSIMPLEvmware.vm.storage.unshared[{$URL},{$UUID}]B{$USERNAME}{$PASSWORD}Total storage space, in bytes, occupied by the virtual machine across all datastores, that is not shared with any other virtual machine.Storage
- UptimeSIMPLEvmware.vm.uptime[{$URL},{$UUID}]uptime{$USERNAME}{$PASSWORD}System uptime.General
Network device discoverySIMPLEvmware.vm.net.if.discovery[{$URL},{$UUID}]1h{$USERNAME}{$PASSWORD}Discovery of all network devices.Number of bytes received on interface {#IFDESC}SIMPLEvmware.vm.net.if.in[{$URL},{$UUID},{#IFNAME},bps]Bps{$USERNAME}{$PASSWORD}InterfacesNumber of packets received on interface {#IFDESC}SIMPLEvmware.vm.net.if.in[{$URL},{$UUID},{#IFNAME},pps]{$USERNAME}{$PASSWORD}InterfacesNumber of bytes transmitted on interface {#IFDESC}SIMPLEvmware.vm.net.if.out[{$URL},{$UUID},{#IFNAME},bps]Bps{$USERNAME}{$PASSWORD}InterfacesNumber of packets transmitted on interface {#IFDESC}SIMPLEvmware.vm.net.if.out[{$URL},{$UUID},{#IFNAME},pps]{$USERNAME}{$PASSWORD}InterfacesDisk device discoverySIMPLEvmware.vm.vfs.dev.discovery[{$URL},{$UUID}]1h{$USERNAME}{$PASSWORD}Discovery of all disk devices.Average number of bytes read from the disk {#DISKDESC}SIMPLEvmware.vm.vfs.dev.read[{$URL},{$UUID},{#DISKNAME},bps]Bps{$USERNAME}{$PASSWORD}DisksAverage number of reads from the disk {#DISKDESC}SIMPLEvmware.vm.vfs.dev.read[{$URL},{$UUID},{#DISKNAME},ops]{$USERNAME}{$PASSWORD}DisksAverage number of bytes written to the disk {#DISKDESC}SIMPLEvmware.vm.vfs.dev.write[{$URL},{$UUID},{#DISKNAME},bps]Bps{$USERNAME}{$PASSWORD}DisksAverage number of writes to the disk {#DISKDESC}SIMPLEvmware.vm.vfs.dev.write[{$URL},{$UUID},{#DISKNAME},ops]{$USERNAME}{$PASSWORD}DisksMounted filesystem discoverySIMPLEvmware.vm.vfs.fs.discovery[{$URL},{$UUID}]1h{$USERNAME}{$PASSWORD}Discovery of all guest file systems.Free disk space on {#FSNAME}SIMPLEvmware.vm.vfs.fs.size[{$URL},{$UUID},{#FSNAME},free]B{$USERNAME}{$PASSWORD}VM FilesystemsFree disk space on {#FSNAME} (percentage)SIMPLEvmware.vm.vfs.fs.size[{$URL},{$UUID},{#FSNAME},pfree]FLOAT%{$USERNAME}{$PASSWORD}VM FilesystemsTotal disk space on {#FSNAME}SIMPLEvmware.vm.vfs.fs.size[{$URL},{$UUID},{#FSNAME},total]1hB{$USERNAME}{$PASSWORD}VM FilesystemsUsed disk space on {#FSNAME}SIMPLEvmware.vm.vfs.fs.size[{$URL},{$UUID},{#FSNAME},used]B{$USERNAME}{$PASSWORD}VM Filesystems{$PASSWORD}{Password}{$URL}https://{ESXi}/sdk{$USERNAME}zabbix{$UUID}VMware VirtualMachinePowerState0poweredOff1poweredOn2suspended