5.02021-11-21T21:33:41ZTemplates/VirtualizationVM VMware UUID ESXi StandaloneVM VMware UUID ESXi Standalone## Overview
Standalone template modified from Zabbix's "VM VMware Hypervisor" template that includes ESXI event log from Zabbix's "VM VMware" template. Modified from 3.4.7 and 3.0.15
Requirements
1. Read-only ESXi user credentials
2. ESXi server UUID#
3. ESXi server IP address
Zabbix config required
Edit **zabbix\_server.conf,** update **StartVMwareCollectors** value to more than 0 and restart zabbix-server. For more details, refer to <https://www.zabbix.com/documentation/4.0/manual/vm_monitoring#configuration>
To use
1. Create new Host* (preferably in host group VMware)
2. Go to **Templates**
3. Search for, select "VMware UUID ESXi Standalone" and add
4. Go to **Macros**, **Inherited and host Macros**
5. Click **Change** to modify the values for
1. {$USERNAME} : ESXi username
2. {$PASSWORD} : ESXi password
3. {$URL} : <https://{ESXi-IP-Address}/sdk>
4. {$UUID} : UUID in lower case#
6. Click **Add**
**#**Obtaining UUID
Login to your ESXi server, run**esxcfg-info -u |awk '{print tolower($0)}'** from SSH shell (Thanks to Travis Quinnelly)
Else
1. Vsphere Advanced Settings, Config, Hostagent, plugins, solo, check "Config.HostAgent.plugins.solo.enableMob"
2. Browse to [https:///mob/?moid=ha-host&doPath=hardware.systemInfo](mob/?moid=ha-host&doPath=hardware.systemInfo)
3. Copy down value
4. Uncheck as in step 1
*Grafana dashboard
For those using Grafana, I have uploaded dashboard to <https://grafana.com/dashboards/4812>. Note that your host must be in Zabbix host group **VMware**.
Others
If template does not work, try using the official Zabbix VMware monitoring (e.g. <https://www.zabbix.com/documentation/4.0/manual/vm_monitoring>)
## Author
Zabbix
Templates/VirtualizationCPUDatastoreGeneralHardwareLogMemoryNetwork- Event logSIMPLEvmware.eventlog[{$URL}]0LOG{$USERNAME}{$PASSWORD}Log
- Cluster nameSIMPLEvmware.hv.cluster.name[{$URL},{$UUID}]1h0CHAR{$USERNAME}{$PASSWORD}Cluster name of the guest VM.General
- CPU usageSIMPLEvmware.hv.cpu.usage[{$URL},{$UUID}]Hz{$USERNAME}{$PASSWORD}Aggregated CPU usage across all cores on the host in Hz. This is only available if the host is connected.CPU
- Datacenter nameSIMPLEvmware.hv.datacenter.name[{$URL},{$UUID}]0CHAR{$USERNAME}{$PASSWORD}Datacenter name of the hypervisor.General
- Full nameSIMPLEvmware.hv.fullname[{$URL},{$UUID}]1h0CHAR{$USERNAME}{$PASSWORD}The complete product name, including the version information.General
- CPU frequencySIMPLEvmware.hv.hw.cpu.freq[{$URL},{$UUID}]1hHz{$USERNAME}{$PASSWORD}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.CPUHardware
- CPU modelSIMPLEvmware.hv.hw.cpu.model[{$URL},{$UUID}]1h0CHAR{$USERNAME}{$PASSWORD}The CPU model.CPUHardware
- CPU coresSIMPLEvmware.hv.hw.cpu.num[{$URL},{$UUID}]1h{$USERNAME}{$PASSWORD}Number of physical CPU cores on the host. Physical CPU cores are the processors contained by a CPU package.CPUHardware
- CPU threadsSIMPLEvmware.hv.hw.cpu.threads[{$URL},{$UUID}]1h{$USERNAME}{$PASSWORD}Number of physical CPU threads on the host.CPUHardware
- Total memorySIMPLEvmware.hv.hw.memory[{$URL},{$UUID}]1hB{$USERNAME}{$PASSWORD}The physical memory size.HardwareMemory
- ModelSIMPLEvmware.hv.hw.model[{$URL},{$UUID}]1h0CHAR{$USERNAME}{$PASSWORD}The system model identification.Hardware
- Bios UUIDSIMPLEvmware.hv.hw.uuid[{$URL},{$UUID}]1h0CHAR{$USERNAME}{$PASSWORD}The hardware BIOS identification.Hardware
- VendorSIMPLEvmware.hv.hw.vendor[{$URL},{$UUID}]1h0CHAR{$USERNAME}{$PASSWORD}The hardware vendor identification.Hardware
- Ballooned memorySIMPLEvmware.hv.memory.size.ballooned[{$URL},{$UUID}]B{$USERNAME}{$PASSWORD}The amount of guest physical memory that is currently reclaimed through the balloon driver. Sum of all guest VMs.Memory
- Used memorySIMPLEvmware.hv.memory.used[{$URL},{$UUID}]B{$USERNAME}{$PASSWORD}Physical memory usage on the host.Memory
- Number of bytes receivedSIMPLEvmware.hv.network.in[{$URL},{$UUID},bps]Bps{$USERNAME}{$PASSWORD}Network
- Number of bytes transmittedSIMPLEvmware.hv.network.out[{$URL},{$UUID},bps]Bps{$USERNAME}{$PASSWORD}Network
- Health state rollupSIMPLEvmware.hv.sensor.health.state[{$URL},{$UUID}]{$USERNAME}{$PASSWORD}The host health state rollup sensor value: gray - unknown, ok, red - it has a problem, yellow - it might have a problem.GeneralVMware status
- Overall statusSIMPLEvmware.hv.status[{$URL},{$UUID}]{$USERNAME}{$PASSWORD}The overall alarm status of the host: gray - unknown, ok, red - it has a problem, yellow - it might have a problem.GeneralVMware status
- UptimeSIMPLEvmware.hv.uptime[{$URL},{$UUID}]1huptime{$USERNAME}{$PASSWORD}System uptime.General
- VersionSIMPLEvmware.hv.version[{$URL},{$UUID}]1h0CHAR{$USERNAME}{$PASSWORD}Dot-separated version string.General
- Number of guest VMsSIMPLEvmware.hv.vm.num[{$URL},{$UUID}]1h{$USERNAME}{$PASSWORD}Number of guest virtual machines.General
Datastore discoverySIMPLEvmware.hv.datastore.discovery[{$URL},{$UUID}]1h{$USERNAME}{$PASSWORD}Average read latency of the datastore $3SIMPLEvmware.hv.datastore.read[{$URL},{$UUID},{#DATASTORE},latency]{$USERNAME}{$PASSWORD}DatastoreFree space on datastore $3 (percentage)SIMPLEvmware.hv.datastore.size[{$URL},{$UUID},{#DATASTORE},pfree]FLOAT%{$USERNAME}{$PASSWORD}DatastoreTotal size of datastore $3SIMPLEvmware.hv.datastore.size[{$URL},{$UUID},{#DATASTORE}]B{$USERNAME}{$PASSWORD}DatastoreAverage write latency of the datastore $3SIMPLEvmware.hv.datastore.write[{$URL},{$UUID},{#DATASTORE},latency]{$USERNAME}{$PASSWORD}Datastore{$PASSWORD}{$URL}https://{ESXi}/sdk{$USERNAME}zabbix{$UUID}VMware status0gray1green2yellow3red