zabbix_export: version: '5.4' date: '2021-11-21T21:26:20Z' groups: - uuid: ccbdf8b894e34bd584853182b263808f name: 'Templates - Comunidade' templates: - uuid: e2710b6383854c30a2e051080c9d38b7 template: 'Virt VMware Hypervisor ESXi - Andre Bello' name: 'Virt VMware Hypervisor ESXi - Andre Bello' description: | ## Overview Contact: [andreantunes.si@gmail.com](mailto:andreantunes.si@gmail.com) Skype: andreantunes.si Incluied: Datastore free, free %, Total Memory: Used memory, Used memory %, Total Memory, *How to obtain ESXi UUID* 0. You need to enable MOB vib, esxcli does not seems to provide the valid uuid for this. 1. enable MOB vib : Go to you're vsphere Advanced Settings, Config, Hostagent, plugins, solo, check "Config.HostAgent.plugins.solo.enableMob" 2. Browse to https://esxi.hostname/mob/?moid=ha-host&doPath=hardware.systemInfo 3. disable MOB vib again (uncheck Config.HostAgent.plugins.solo.enableMob) Your HOSTNAME will be your UUID Else: **esxcfg-info -u** Used Macros: {$USERNAME} -> User connect ESxi {$PASSWORD} Password access to Esxi {$URL} - https://Your ip Esxi/sdk ## Author Andre Bello groups: - name: 'Templates - Comunidade' items: - uuid: ba255cfc7a6f480694f9d85988d6aa0b name: 'Cluster name' type: SIMPLE key: 'vmware.hv.cluster.name[{$URL},{HOST.HOST}]' delay: '600' trends: '0' value_type: CHAR username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Cluster name of the guest VM.' tags: - tag: Application value: General - uuid: f4b729592a3a432f82e4cc28cfe08515 name: 'CPU usage' type: SIMPLE key: 'vmware.hv.cpu.usage[{$URL},{HOST.HOST}]' delay: '600' 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: 44f2923f716b4c85a169d7580a71a748 name: 'Full name' type: SIMPLE key: 'vmware.hv.fullname[{$URL},{HOST.HOST}]' delay: '600' trends: '0' value_type: CHAR username: '{$USERNAME}' password: '{$PASSWORD}' description: 'The complete product name, including the version information.' tags: - tag: Application value: General - uuid: b51990f0f1d6412b9353e51dfdd7fc6c name: 'CPU frequency' type: SIMPLE key: 'vmware.hv.hw.cpu.freq[{$URL},{HOST.HOST}]' delay: '600' 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: 2387a725f8814b2994a31e7b4219cb7d name: 'CPU model' type: SIMPLE key: 'vmware.hv.hw.cpu.model[{$URL},{HOST.HOST}]' delay: '600' trends: '0' value_type: CHAR username: '{$USERNAME}' password: '{$PASSWORD}' description: 'The CPU model.' tags: - tag: Application value: CPU - tag: Application value: Hardware - uuid: e3587dd8a51e48ae9208596992f15bb4 name: 'CPU cores' type: SIMPLE key: 'vmware.hv.hw.cpu.num[{$URL},{HOST.HOST}]' delay: '600' 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: ae5454c71d58404ca8a99e52185103cf name: 'CPU threads' type: SIMPLE key: 'vmware.hv.hw.cpu.threads[{$URL},{HOST.HOST}]' delay: '600' username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Number of physical CPU threads on the host.' tags: - tag: Application value: CPU - tag: Application value: Hardware - uuid: 39a4af73557b4aae871e85a192618a2e name: 'Total Memory' type: SIMPLE key: 'vmware.hv.hw.memory[{$URL},{HOST.HOST}]' delay: '600' units: B username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Physical memory usage on the host.' tags: - tag: Application value: Memory - uuid: 0d3a9dc108c644389ad03bd2ec5d6834 name: Model type: SIMPLE key: 'vmware.hv.hw.model[{$URL},{HOST.HOST}]' delay: '600' trends: '0' value_type: CHAR username: '{$USERNAME}' password: '{$PASSWORD}' description: 'The system model identification.' tags: - tag: Application value: Hardware - uuid: 969cdc21307149bd9a86c99d9d7ad0c2 name: 'Bios UUID' type: SIMPLE key: 'vmware.hv.hw.uuid[{$URL},{HOST.HOST}]' delay: '600' trends: '0' value_type: CHAR username: '{$USERNAME}' password: '{$PASSWORD}' description: 'The hardware BIOS identification.' tags: - tag: Application value: Hardware - uuid: 39917e8e977a4d1ebca470bf26b013bd name: Vendor type: SIMPLE key: 'vmware.hv.hw.vendor[{$URL},{HOST.HOST}]' delay: '600' trends: '0' value_type: CHAR username: '{$USERNAME}' password: '{$PASSWORD}' description: 'The hardware vendor identification.' tags: - tag: Application value: Hardware - uuid: ebdb6716c993487abbf2d9a94a53ea41 name: 'Used memory %' type: CALCULATED key: 'vmware.hv.memory.pused[{$URL},{HOST.HOST}]' delay: '600' value_type: FLOAT units: '%' params: 'last(//vmware.hv.memory.used[{$URL},{HOST.HOST}]) * 100 / last(//vmware.hv.hw.memory[{$URL},{HOST.HOST}])' description: 'Physical memory usage on the host.' tags: - tag: Application value: Memory triggers: - uuid: ae1033d9a97d4070bc104ec950cec10b expression: 'last(/Virt VMware Hypervisor ESXi - Andre Bello/vmware.hv.memory.pused[{$URL},{HOST.HOST}])>95' name: 'Memory usage is above 95%' priority: HIGH - uuid: a748e995c7a64323baaa757b63df5297 name: 'Ballooned memory' type: SIMPLE key: 'vmware.hv.memory.size.ballooned[{$URL},{HOST.HOST}]' delay: '600' 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: ce91d5faf66044cfb106213cfd357532 name: 'Used Memory' type: SIMPLE key: 'vmware.hv.memory.used[{$URL},{HOST.HOST}]' delay: '600' units: B username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Physical memory usage on the host.' tags: - tag: Application value: Memory - uuid: 735ecea91d0f4e98870bb731c3e0c837 name: 'Number of bytes received' type: SIMPLE key: 'vmware.hv.network.in[{$URL},{HOST.HOST},bps]' delay: '600' units: Bps username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: Network - uuid: 64151859f3ba4a5f92beb730f7660acf name: 'Number of bytes transmitted' type: SIMPLE key: 'vmware.hv.network.out[{$URL},{HOST.HOST},bps]' delay: '600' units: Bps username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: Network - uuid: f03b1e591b3b4dd1af8a464fc12d2ef8 name: 'Overall status' type: SIMPLE key: 'vmware.hv.status[{$URL},{HOST.HOST}]' delay: '600' 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 triggers: - uuid: f77724d3f7a94869a0d659bf565204c2 expression: 'last(/Virt VMware Hypervisor ESXi - Andre Bello/vmware.hv.status[{$URL},{HOST.HOST}])<>1' name: 'Overall status = {ITEM.VALUE}' priority: HIGH - uuid: c7cc8e54f1cd43d79c779ce9130a644b name: Uptime type: SIMPLE key: 'vmware.hv.uptime[{$URL},{HOST.HOST}]' delay: '600' units: uptime username: '{$USERNAME}' password: '{$PASSWORD}' description: 'System uptime.' tags: - tag: Application value: General - uuid: 8d2d8d6d15bf4ccab700780ea446894c name: Version type: SIMPLE key: 'vmware.hv.version[{$URL},{HOST.HOST}]' delay: '600' trends: '0' value_type: CHAR username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Dot-separated version string.' tags: - tag: Application value: General - uuid: 602d47d437104536b593b969dee08da2 name: 'Number of guest VMs' type: SIMPLE key: 'vmware.hv.vm.num[{$URL},{HOST.HOST}]' delay: '600' username: '{$USERNAME}' password: '{$PASSWORD}' description: 'Number of guest virtual machines.' tags: - tag: Application value: General discovery_rules: - uuid: e04976c8351e4e719749f2d6cb0e9b28 name: 'Datastore discovery' type: SIMPLE key: 'vmware.hv.datastore.discovery[{$URL},{HOST.HOST}]' delay: '86400' username: '{$USERNAME}' password: '{$PASSWORD}' lifetime: '0' item_prototypes: - uuid: 405bda8d8bdf4760b6b72352e2c46721 name: 'Average read latency of the datastore $3' type: SIMPLE key: 'vmware.hv.datastore.read[{$URL},{HOST.HOST},{#DATASTORE},latency]' delay: '600' username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: Datastore - uuid: 1d05a4d080ab48fa93494e3937df112d name: 'Datastore Free $3' type: SIMPLE key: 'vmware.hv.datastore.size[{$URL},{HOST.HOST},{#DATASTORE},free]' delay: '600' units: B username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: Datastore - uuid: 6b6fbf46201147ab8151b987fea6b3b8 name: 'Datastore Free % $3' type: SIMPLE key: 'vmware.hv.datastore.size[{$URL},{HOST.HOST},{#DATASTORE},pfree]' delay: '600' value_type: FLOAT units: '%' username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: Datastore trigger_prototypes: - uuid: 6d8e8a8697f1446a981be89f1cc2d0c3 expression: 'last(/Virt VMware Hypervisor ESXi - Andre Bello/vmware.hv.datastore.size[{$URL},{HOST.HOST},{#DATASTORE},pfree])<15' name: '{#DATASTORE} is 85% Used' priority: AVERAGE dependencies: - name: '{#DATASTORE} is 90% Used' expression: 'last(/Virt VMware Hypervisor ESXi - Andre Bello/vmware.hv.datastore.size[{$URL},{HOST.HOST},{#DATASTORE},pfree])<10' - name: '{#DATASTORE} is 95% Used' expression: 'last(/Virt VMware Hypervisor ESXi - Andre Bello/vmware.hv.datastore.size[{$URL},{HOST.HOST},{#DATASTORE},pfree])<5' - uuid: 1e02b6baa77d460d9edb994197445097 expression: 'last(/Virt VMware Hypervisor ESXi - Andre Bello/vmware.hv.datastore.size[{$URL},{HOST.HOST},{#DATASTORE},pfree])<10' name: '{#DATASTORE} is 90% Used' priority: HIGH dependencies: - name: '{#DATASTORE} is 95% Used' expression: 'last(/Virt VMware Hypervisor ESXi - Andre Bello/vmware.hv.datastore.size[{$URL},{HOST.HOST},{#DATASTORE},pfree])<5' - uuid: 20d329f8051b48428817a718ee6e9986 expression: 'last(/Virt VMware Hypervisor ESXi - Andre Bello/vmware.hv.datastore.size[{$URL},{HOST.HOST},{#DATASTORE},pfree])<5' name: '{#DATASTORE} is 95% Used' priority: DISASTER - uuid: 35e7f8853cfd41e39571a4af1cc41739 name: 'Datastore Total % $3' type: SIMPLE key: 'vmware.hv.datastore.size[{$URL},{HOST.HOST},{#DATASTORE},total]' delay: '600' units: B username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: Datastore - uuid: 1a44cb4f1f3c410a8f98451650e01abe name: 'Average write latency of the datastore $3' type: SIMPLE key: 'vmware.hv.datastore.write[{$URL},{HOST.HOST},{#DATASTORE},latency]' delay: '600' username: '{$USERNAME}' password: '{$PASSWORD}' tags: - tag: Application value: Datastore valuemaps: - uuid: 479a4d0446b942abb25ace4467aa3116 name: 'VMware status' mappings: - value: '0' newvalue: gray - value: '1' newvalue: green - value: '2' newvalue: yellow - value: '3' newvalue: red