zabbix_export: version: '5.4' date: '2021-11-21T21:33:43Z' groups: - uuid: 02e4df4f20b848e79267641790f241da name: Templates/Virtualization templates: - uuid: 25f39024845147eb995ae1def9d8ef60 template: 'VM VMware UUID ESXi Standalone' name: 'VM VMware UUID ESXi Standalone' description: | ## 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 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} : 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 . 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. ) ## Author Zabbix groups: - name: Templates/Virtualization items: - uuid: 328044c3e7f647248352ebbc744e77c2 name: 'Event log' type: SIMPLE key: 'vmware.eventlog[{$URL}]' trends: '0' value_type: LOG username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: Log - uuid: ae16fcda4d0c4806bef9aa2b42af8a82 name: 'Cluster name' type: SIMPLE key: 'vmware.hv.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: 6c4975734cd74a5fbfa16066163631e6 name: 'CPU usage' type: SIMPLE key: 'vmware.hv.cpu.usage[{$URL},{$UUID}]' units: Hz username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Aggregated CPU usage across all cores on the host in Hz. This is only available if the host is connected.' tags: - tag: Application value: CPU - uuid: 7d77e1b7534847c9a28ee948e7a42f07 name: 'Datacenter name' type: SIMPLE key: 'vmware.hv.datacenter.name[{$URL},{$UUID}]' trends: '0' value_type: CHAR username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Datacenter name of the hypervisor.' tags: - tag: Application value: General - uuid: 39becd86613a455db5ab33ff915f0049 name: 'Full name' type: SIMPLE key: 'vmware.hv.fullname[{$URL},{$UUID}]' delay: 1h trends: '0' value_type: CHAR username: '{$USERNAME}' password: '{$PASSWORD}' description: 'The complete product name, including the version information.' tags: - tag: Application value: General - uuid: 43102a14426e41ebac2de065b9032b29 name: 'CPU frequency' type: SIMPLE key: 'vmware.hv.hw.cpu.freq[{$URL},{$UUID}]' delay: 1h units: Hz username: '{$USERNAME}' password: '{$PASSWORD}' description: '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.' tags: - tag: Application value: CPU - tag: Application value: Hardware - uuid: de3fbb3583cb4305b04f6dca6ef4bfe1 name: 'CPU model' type: SIMPLE key: 'vmware.hv.hw.cpu.model[{$URL},{$UUID}]' delay: 1h trends: '0' value_type: CHAR username: '{$USERNAME}' password: '{$PASSWORD}' description: 'The CPU model.' tags: - tag: Application value: CPU - tag: Application value: Hardware - uuid: 482fdeb342474435af973a692ba20953 name: 'CPU cores' type: SIMPLE key: 'vmware.hv.hw.cpu.num[{$URL},{$UUID}]' delay: 1h username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Number of physical CPU cores on the host. Physical CPU cores are the processors contained by a CPU package.' tags: - tag: Application value: CPU - tag: Application value: Hardware - uuid: 9cb59b211c834494b0607b76c2194ed7 name: 'CPU threads' type: SIMPLE key: 'vmware.hv.hw.cpu.threads[{$URL},{$UUID}]' delay: 1h username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Number of physical CPU threads on the host.' tags: - tag: Application value: CPU - tag: Application value: Hardware - uuid: d317fe4616304384bfe8275205c611a3 name: 'Total memory' type: SIMPLE key: 'vmware.hv.hw.memory[{$URL},{$UUID}]' delay: 1h units: B username: '{$USERNAME}' password: '{$PASSWORD}' description: 'The physical memory size.' tags: - tag: Application value: Hardware - tag: Application value: Memory - uuid: f1f0168d65764d54baee83e9bf53bcc7 name: Model type: SIMPLE key: 'vmware.hv.hw.model[{$URL},{$UUID}]' delay: 1h trends: '0' value_type: CHAR username: '{$USERNAME}' password: '{$PASSWORD}' description: 'The system model identification.' tags: - tag: Application value: Hardware - uuid: 09b46967f16c43b6a69889b9238218bf name: 'Bios UUID' type: SIMPLE key: 'vmware.hv.hw.uuid[{$URL},{$UUID}]' delay: 1h trends: '0' value_type: CHAR username: '{$USERNAME}' password: '{$PASSWORD}' description: 'The hardware BIOS identification.' tags: - tag: Application value: Hardware - uuid: 6a32a32eec4642ac885cedff539e06d7 name: Vendor type: SIMPLE key: 'vmware.hv.hw.vendor[{$URL},{$UUID}]' delay: 1h trends: '0' value_type: CHAR username: '{$USERNAME}' password: '{$PASSWORD}' description: 'The hardware vendor identification.' tags: - tag: Application value: Hardware - uuid: dce7ad0516ee480b911f37b5e8dd8067 name: 'Ballooned memory' type: SIMPLE key: 'vmware.hv.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. Sum of all guest VMs.' tags: - tag: Application value: Memory - uuid: fee6006f647649dbac92cdbe2e823339 name: 'Used memory' type: SIMPLE key: 'vmware.hv.memory.used[{$URL},{$UUID}]' units: B username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Physical memory usage on the host.' tags: - tag: Application value: Memory - uuid: 0a1e3649217843d68811fc8e265977fb name: 'Number of bytes received' type: SIMPLE key: 'vmware.hv.network.in[{$URL},{$UUID},bps]' units: Bps username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: Network - uuid: e5871f5786d1478ba8a35b2582cb637e name: 'Number of bytes transmitted' type: SIMPLE key: 'vmware.hv.network.out[{$URL},{$UUID},bps]' units: Bps username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: Network - uuid: 676adf85b91647349ebc20dbf45e1fde name: 'Health state rollup' type: SIMPLE key: 'vmware.hv.sensor.health.state[{$URL},{$UUID}]' username: '{$USERNAME}' password: '{$PASSWORD}' description: 'The host health state rollup sensor value: gray - unknown, ok, red - it has a problem, yellow - it might have a problem.' valuemap: name: 'VMware status' tags: - tag: Application value: General - uuid: 0616fc222b064bcf9dcb876e99a0fb13 name: 'Overall status' type: SIMPLE key: 'vmware.hv.status[{$URL},{$UUID}]' username: '{$USERNAME}' password: '{$PASSWORD}' description: 'The overall alarm status of the host: gray - unknown, ok, red - it has a problem, yellow - it might have a problem.' valuemap: name: 'VMware status' tags: - tag: Application value: General - uuid: 855db719176c48668b6e8461db2a342f name: Uptime type: SIMPLE key: 'vmware.hv.uptime[{$URL},{$UUID}]' delay: 1h units: uptime username: '{$USERNAME}' password: '{$PASSWORD}' description: 'System uptime.' tags: - tag: Application value: General - uuid: cca931721d3b4c57822cb1d0ac244154 name: Version type: SIMPLE key: 'vmware.hv.version[{$URL},{$UUID}]' delay: 1h trends: '0' value_type: CHAR username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Dot-separated version string.' tags: - tag: Application value: General - uuid: e3a102c595b9434aaddb0a0639aa6f96 name: 'Number of guest VMs' type: SIMPLE key: 'vmware.hv.vm.num[{$URL},{$UUID}]' delay: 1h username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Number of guest virtual machines.' tags: - tag: Application value: General discovery_rules: - uuid: fbe11439eea34235ad1cbbd8f21fb7e8 name: 'Datastore discovery' type: SIMPLE key: 'vmware.hv.datastore.discovery[{$URL},{$UUID}]' delay: 1h username: '{$USERNAME}' password: '{$PASSWORD}' item_prototypes: - uuid: afdcd39cb2464b54b65ad66d879bdb89 name: 'Average read latency of the datastore $3' type: SIMPLE key: 'vmware.hv.datastore.read[{$URL},{$UUID},{#DATASTORE},latency]' username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: Datastore - uuid: 2227f1aa9417470eadf8e26f3467a9fc name: 'Free space on datastore $3 (percentage)' type: SIMPLE key: 'vmware.hv.datastore.size[{$URL},{$UUID},{#DATASTORE},pfree]' value_type: FLOAT units: '%' username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: Datastore - uuid: 4efeb4de2d94417ca9e4c6dd3bb2eac5 name: 'Total size of datastore $3' type: SIMPLE key: 'vmware.hv.datastore.size[{$URL},{$UUID},{#DATASTORE}]' units: B username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: Datastore - uuid: c7589296a3424c0e8c7621bef1667f9c name: 'Average write latency of the datastore $3' type: SIMPLE key: 'vmware.hv.datastore.write[{$URL},{$UUID},{#DATASTORE},latency]' username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: Datastore macros: - macro: '{$PASSWORD}' - macro: '{$URL}' value: 'https://{ESXi}/sdk' - macro: '{$USERNAME}' value: zabbix - macro: '{$UUID}' valuemaps: - uuid: 72023804144241448aa410a128d39554 name: 'VMware status' mappings: - value: '0' newvalue: gray - value: '1' newvalue: green - value: '2' newvalue: yellow - value: '3' newvalue: red