zabbix_export: version: '5.4' date: '2021-11-21T21:33:47Z' groups: - uuid: 02e4df4f20b848e79267641790f241da name: Templates/Virtualization templates: - uuid: 365f05f1200d45dcb71443ea98d9c17f template: 'VM VMware UUID VM Standalone' name: 'VM VMware UUID VM Standalone' description: | ## 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** () * 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 **Others** Edit **zabbix\_server.conf** and update value of **StartVMwareCollectors** to more than 0 and restart zabbix-server. ## Author Zabbix groups: - name: Templates/Virtualization items: - uuid: 8977f19c02b14cdbbbc0ff452c4a9f5c name: 'Cluster name' type: SIMPLE key: 'vmware.vm.cluster.name[{$URL},{$UUID}]' delay: 1h trends: '0' value_type: CHAR username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Cluster name of the guest VM.' tags: - tag: Application value: General - uuid: e561083d77c641c38480d7e96636384d name: 'Number of virtual CPUs' type: SIMPLE key: 'vmware.vm.cpu.num[{$URL},{$UUID}]' username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Number of virtual CPUs assigned to the guest.' tags: - tag: Application value: CPU - uuid: cc3c499152fd407eb222fb0adc276cb0 name: 'CPU ready' type: SIMPLE key: 'vmware.vm.cpu.ready[{$URL},{$UUID}]' units: ms username: '{$USERNAME}' password: '{$PASSWORD}' description: '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)' tags: - tag: Application value: CPU - uuid: df9c0eb76a9747b59672f2bb471360e2 name: 'CPU usage' type: SIMPLE key: 'vmware.vm.cpu.usage[{$URL},{$UUID}]' units: Hz username: '{$USERNAME}' password: '{$PASSWORD}' description: '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.' tags: - tag: Application value: CPU - uuid: d88474e0d130483aa7ba029cd182d915 name: 'Datacenter name' type: SIMPLE key: 'vmware.vm.datacenter.name[{$URL},{$UUID}]' trends: '0' value_type: CHAR username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Datacenter name of the guest VM.' tags: - tag: Application value: General - uuid: fd1dabea498b464b912d85e4e4ac1551 name: 'Hypervisor name' type: SIMPLE key: 'vmware.vm.hv.name[{$URL},{$UUID}]' delay: 1h trends: '0' value_type: CHAR username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Hypervisor name of the guest VM.' tags: - tag: Application value: General - uuid: 591d37868e9f4bfa8c5fda463692e45f name: 'Ballooned memory' type: SIMPLE key: 'vmware.vm.memory.size.ballooned[{$URL},{$UUID}]' units: B username: '{$USERNAME}' password: '{$PASSWORD}' description: 'The amount of guest physical memory that is currently reclaimed through the balloon driver.' tags: - tag: Application value: Memory - uuid: 23abc06618ef4e9bb83d35c50c35d6ec name: 'Compressed memory' type: SIMPLE key: 'vmware.vm.memory.size.compressed[{$URL},{$UUID}]' units: B username: '{$USERNAME}' password: '{$PASSWORD}' description: 'The amount of memory currently in the compression cache for this VM.' tags: - tag: Application value: Memory - uuid: 230013369eb040e9b03744ce6227b05a name: 'Private memory' type: SIMPLE key: 'vmware.vm.memory.size.private[{$URL},{$UUID}]' status: DISABLED units: B username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Amount of memory backed by host memory and not being shared.' tags: - tag: Application value: Memory - uuid: 8f234b1ee3b54e55a5f8431f46ff660e name: 'Shared memory' type: SIMPLE key: 'vmware.vm.memory.size.shared[{$URL},{$UUID}]' units: B username: '{$USERNAME}' password: '{$PASSWORD}' description: 'The amount of guest physical memory shared through transparent page sharing.' tags: - tag: Application value: Memory - uuid: c405f5ecda6f4e6c994681bbe68a8627 name: 'Swapped memory' type: SIMPLE key: 'vmware.vm.memory.size.swapped[{$URL},{$UUID}]' units: B username: '{$USERNAME}' password: '{$PASSWORD}' description: 'The amount of guest physical memory swapped out to the VM''s swap device by ESX.' tags: - tag: Application value: Memory - uuid: 5318e96609414dc3b72a8765765f4e9a name: 'Guest memory usage' type: SIMPLE key: 'vmware.vm.memory.size.usage.guest[{$URL},{$UUID}]' units: B username: '{$USERNAME}' password: '{$PASSWORD}' description: 'The amount of guest physical memory that is being used by the VM.' tags: - tag: Application value: Memory - uuid: c8a02f0f594749ab8991761f1769ba12 name: 'Host memory usage' type: SIMPLE key: 'vmware.vm.memory.size.usage.host[{$URL},{$UUID}]' units: B username: '{$USERNAME}' password: '{$PASSWORD}' description: 'The amount of host physical memory allocated to the VM, accounting for saving from memory sharing with other VMs.' tags: - tag: Application value: Memory - uuid: 7791ad874f7648c09470ccf18540e14e name: 'Memory size' type: SIMPLE key: 'vmware.vm.memory.size[{$URL},{$UUID}]' units: B username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Total size of configured memory.' tags: - tag: Application value: Memory - uuid: 97852a9cc0784333b15d96214a9b57ce name: 'Power state' type: SIMPLE key: 'vmware.vm.powerstate[{$URL},{$UUID}]' username: '{$USERNAME}' password: '{$PASSWORD}' description: 'The current power state of the virtual machine.' valuemap: name: 'VMware VirtualMachinePowerState' tags: - tag: Application value: General - uuid: 4afd4a3b01f34de8905f5fb86aca3ec9 name: 'Committed storage space' type: SIMPLE key: 'vmware.vm.storage.committed[{$URL},{$UUID}]' units: B username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Total storage space, in bytes, committed to this virtual machine across all datastores.' tags: - tag: Application value: Storage - uuid: 5c1bd109a64a47b8968c2d17bdcde536 name: 'Uncommitted storage space' type: SIMPLE key: 'vmware.vm.storage.uncommitted[{$URL},{$UUID}]' units: B username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Additional storage space, in bytes, potentially used by this virtual machine on all datastores.' tags: - tag: Application value: Storage - uuid: 3c31099af1d64321a80fb083e7d86063 name: 'Unshared storage space' type: SIMPLE key: 'vmware.vm.storage.unshared[{$URL},{$UUID}]' units: B username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Total storage space, in bytes, occupied by the virtual machine across all datastores, that is not shared with any other virtual machine.' tags: - tag: Application value: Storage - uuid: dc25bcf1fefc48e89ecff6e88c56653d name: Uptime type: SIMPLE key: 'vmware.vm.uptime[{$URL},{$UUID}]' units: uptime username: '{$USERNAME}' password: '{$PASSWORD}' description: 'System uptime.' tags: - tag: Application value: General discovery_rules: - uuid: 1a717c6e9d2a497ca991b2be5286c93f name: 'Network device discovery' type: SIMPLE key: 'vmware.vm.net.if.discovery[{$URL},{$UUID}]' delay: 1h username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Discovery of all network devices.' item_prototypes: - uuid: dfceed80d175422292d78ecdde639c55 name: 'Number of bytes received on interface {#IFDESC}' type: SIMPLE key: 'vmware.vm.net.if.in[{$URL},{$UUID},{#IFNAME},bps]' units: Bps username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: Interfaces - uuid: 3e6d6e5fb19f4a55ac9c266a1054a5f0 name: 'Number of packets received on interface {#IFDESC}' type: SIMPLE key: 'vmware.vm.net.if.in[{$URL},{$UUID},{#IFNAME},pps]' username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: Interfaces - uuid: 7c4c5a736dd24d1b9418c1c6b5fc3807 name: 'Number of bytes transmitted on interface {#IFDESC}' type: SIMPLE key: 'vmware.vm.net.if.out[{$URL},{$UUID},{#IFNAME},bps]' units: Bps username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: Interfaces - uuid: 4b1df6617b264c16bad50ce9b9fbdf60 name: 'Number of packets transmitted on interface {#IFDESC}' type: SIMPLE key: 'vmware.vm.net.if.out[{$URL},{$UUID},{#IFNAME},pps]' username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: Interfaces - uuid: b709cab609d342c9ad87751d7a36cd11 name: 'Disk device discovery' type: SIMPLE key: 'vmware.vm.vfs.dev.discovery[{$URL},{$UUID}]' delay: 1h username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Discovery of all disk devices.' item_prototypes: - uuid: 511f413390004642bba7799a53ac1597 name: 'Average number of bytes read from the disk {#DISKDESC}' type: SIMPLE key: 'vmware.vm.vfs.dev.read[{$URL},{$UUID},{#DISKNAME},bps]' units: Bps username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: Disks - uuid: 02f3ef0ecc664263a3b96d0de1e49e0c name: 'Average number of reads from the disk {#DISKDESC}' type: SIMPLE key: 'vmware.vm.vfs.dev.read[{$URL},{$UUID},{#DISKNAME},ops]' username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: Disks - uuid: 69d14653c9b146479e5200e1ac0d9b77 name: 'Average number of bytes written to the disk {#DISKDESC}' type: SIMPLE key: 'vmware.vm.vfs.dev.write[{$URL},{$UUID},{#DISKNAME},bps]' units: Bps username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: Disks - uuid: 5f8acd205cd64acba6f139a0f8321434 name: 'Average number of writes to the disk {#DISKDESC}' type: SIMPLE key: 'vmware.vm.vfs.dev.write[{$URL},{$UUID},{#DISKNAME},ops]' username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: Disks - uuid: d07bc6ba7a8a470a8f1eb62ec619b727 name: 'Mounted filesystem discovery' type: SIMPLE key: 'vmware.vm.vfs.fs.discovery[{$URL},{$UUID}]' delay: 1h username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Discovery of all guest file systems.' item_prototypes: - uuid: 938f81eb0deb4379bb975b4b21c063c9 name: 'Free disk space on {#FSNAME}' type: SIMPLE key: 'vmware.vm.vfs.fs.size[{$URL},{$UUID},{#FSNAME},free]' units: B username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: 'VM Filesystems' - uuid: 1a2aa9b816fe4f41b573442c1a03320d name: 'Free disk space on {#FSNAME} (percentage)' type: SIMPLE key: 'vmware.vm.vfs.fs.size[{$URL},{$UUID},{#FSNAME},pfree]' value_type: FLOAT units: '%' username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: 'VM Filesystems' - uuid: 33a8cd76682841718261cccfc49adc13 name: 'Total disk space on {#FSNAME}' type: SIMPLE key: 'vmware.vm.vfs.fs.size[{$URL},{$UUID},{#FSNAME},total]' delay: 1h units: B username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: 'VM Filesystems' - uuid: 2761da128b8941c092d70a470859a23d name: 'Used disk space on {#FSNAME}' type: SIMPLE key: 'vmware.vm.vfs.fs.size[{$URL},{$UUID},{#FSNAME},used]' units: B username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: 'VM Filesystems' macros: - macro: '{$PASSWORD}' value: '{Password}' - macro: '{$URL}' value: 'https://{ESXi}/sdk' - macro: '{$USERNAME}' value: zabbix - macro: '{$UUID}' valuemaps: - uuid: 224a80361d38482aa269ef2a949d67a5 name: 'VMware VirtualMachinePowerState' mappings: - value: '0' newvalue: poweredOff - value: '1' newvalue: poweredOn - value: '2' newvalue: suspended