zabbix_export: version: '5.4' date: '2021-11-21T21:36:19Z' groups: - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates templates: - uuid: 108c8bb2c5fe4e6fa6eb51ab948a78cb template: vCenter_SNMP-VMWARE_VCSA_6.7 name: vCenter_SNMP-VMWARE_VCSA_6.7 description: | ## Description vCenter 6.7 U1 Build 10244745 ## Overview Template for SNMP check of VMware vCenter 6.7 **THIS TEMPLATE BOTH FOR ZABBIX 3.4 & 4.0** based on : https://share.zabbix.com/virtualization/vmware/snmp-check-vcenter-vcsa-6-5 09/nov/2018 **Template has been completely rebuilt!** Now it use autodiscovery and LLD. Setup procedure: **For Zabbix 3.4:** 1. Attach template 2. Create Regular Expression as shown below: Name: VMWARESVC Result is TRUE ^(.*?)((?=\.)|(?=$)) Result is FALSE ^saslauth|bas|anacro|pytho 3. Put the linked script to Externalscripts directory on Zabbix Server with replace $vcsa and given name "vcsa\_discovery" 4. Done. **For Zabbix 4.0:** 1. Attach template 2. Put the linked script to Externalscripts directory on Zabbix Server with replace $vcsa and given name "vcsa\_discovery" 3. Done. Script link: https://yadi.sk/d/uYPmitqbaRwpew There is a few important things!! 1. In update 6.7U1 VMWare cut service names in OID: berfore: vpxd after: vpx So, in discovered item names there will be a little bit strange names. - renaming discovered items still unavailable ## Author Aleksey Omelyanovich groups: - name: Templates items: - uuid: f71b38b4cb9c43489df6c09dda8df12a name: 'Ping vCenter' type: SIMPLE key: 'icmpping[,2]' delay: '120' history: 7d request_method: POST triggers: - uuid: 98bca5c5f6984764a535d6b3b14fa7e0 expression: 'last(/vCenter_SNMP-VMWARE_VCSA_6.7/icmpping[,2])<>1' name: '{HOST.HOST1} is unavailable by ICMP' priority: HIGH - uuid: 599c40748f54438896a367b925790381 name: 'File System Allocation Failure' type: SNMP_AGENT snmp_oid: 'HOST-RESOURCES-MIB::hrStorageAllocationFailures["index","HOST-RESOURCES-MIB::hrStorageDescr", "/dev"]' key: SNMP-File-System-allocation-error delay: '180' history: 7d description: 'Storage allocation file system' request_method: POST triggers: - uuid: 4d25c9a0e01a460c88bb25f7cf2875ef expression: '(last(/vCenter_SNMP-VMWARE_VCSA_6.7/SNMP-File-System-allocation-error,#1)<>last(/vCenter_SNMP-VMWARE_VCSA_6.7/SNMP-File-System-allocation-error,#2))=1' name: 'File System Allocation Error on {HOST.HOST1}' priority: WARNING - uuid: 39143f0bf56f48cfb9d4df33bb745d01 name: 'Memory Allocation Error' type: SNMP_AGENT snmp_oid: 'HOST-RESOURCES-MIB::hrStorageAllocationFailures.14' key: SNMP-Memory-Allocation-Error delay: '180' history: 7d request_method: POST triggers: - uuid: e85c8cd250be44a88021db358dc078da expression: '(last(/vCenter_SNMP-VMWARE_VCSA_6.7/SNMP-Memory-Allocation-Error,#1)<>last(/vCenter_SNMP-VMWARE_VCSA_6.7/SNMP-Memory-Allocation-Error,#2))=1' name: 'Memory Allocation Error on {HOST.HOST1}' priority: WARNING - uuid: a4ca95825149441ebd58828928a26500 name: 'Vcenter Name' type: SNMP_AGENT snmp_oid: 'SNMPv2-SMI::mib-2.47.1.1.1.1.7.1' key: SNMP-NamePlateforme delay: '3600' history: 7d trends: '0' value_type: TEXT inventory_link: NAME request_method: POST - uuid: 4c34183448f841c7b07755690abc3c72 name: 'Number of Processes' type: SNMP_AGENT snmp_oid: 'HOST-RESOURCES-MIB::hrSystemProcesses.0' key: SNMP-Number-Processes delay: '180' history: 7d request_method: POST - uuid: de0d599ca5d448a2bc1c1b8c99172e30 name: 'Snmp Availability' type: INTERNAL key: 'zabbix[host,snmp,available]' delay: '180' history: 7d request_method: POST triggers: - uuid: 6613aed9d60349a79811e56f56fa7411 expression: 'last(/vCenter_SNMP-VMWARE_VCSA_6.7/zabbix[host,snmp,available])<>1' name: 'SNMP {HOST.HOST1} Unavailable' priority: HIGH discovery_rules: - uuid: ecfcf5f84c414328a5865dea81739853 name: CPU type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},.1.3.6.1.2.1.25.3.3.1.2]' key: snmp.CPU.discovery delay: '3600' item_prototypes: - uuid: 7777c3875c9e4a1dae4e6e113a5a388b name: 'CPU {#SNMPINDEX} Utilization' type: SNMP_AGENT snmp_oid: 'HOST-RESOURCES-MIB::hrProcessorLoad.{#SNMPINDEX}' key: 'SNMP-Charge-CPU-.[{#SNMPINDEX}]' delay: '180' history: 7d units: '%' request_method: POST tags: - tag: Application value: CPU trigger_prototypes: - uuid: 60aed72587d14244bd06abb528bce54d expression: 'avg(/vCenter_SNMP-VMWARE_VCSA_6.7/SNMP-Charge-CPU-.[{#SNMPINDEX}],5m)>{$CPU_UTIL_MAX}' name: 'High CPU {#SNMPINDEX} Utilization on {HOST.HOST1}' priority: AVERAGE - uuid: 9de28d1480044547952a9309a8d15b6f name: 'CPU {#SNMPINDEX} Name' type: SNMP_AGENT snmp_oid: 'HOST-RESOURCES-MIB::hrDeviceDescr.{#SNMPINDEX}' key: 'SNMP-Name-CPU-.[{#SNMPINDEX}]' delay: '3600' history: 7d trends: '0' value_type: TEXT request_method: POST tags: - tag: Application value: CPU graph_prototypes: - uuid: 550e6fdfdf5d4cd99a80b8394fb2e504 name: 'CPU {#SNMPINDEX} Utilization' graph_items: - color: 1A7C11 item: host: vCenter_SNMP-VMWARE_VCSA_6.7 key: 'SNMP-Charge-CPU-.[{#SNMPINDEX}]' request_method: POST - uuid: 87428e42904d4e13b61fc81f99d7b42c name: 'File System' type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},.1.3.6.1.2.1.25.2.3.1.3]' key: snmp.filesystem.discovery delay: '180' item_prototypes: - uuid: 2a7b91929afe4cc79ae7527fc6c9980f name: 'File System {#SNMPVALUE} - Used Percentage' type: CALCULATED key: 'File-System-Space-Used-Percentage.[{#SNMPVALUE}]' delay: '180' history: 7d params: '100*(last(//SNMP-File-System-Space-Used.[{#SNMPVALUE}])/last(//SNMP-File-System-Space-Allocated.[{#SNMPVALUE}]))' request_method: POST tags: - tag: Application value: Filesystem trigger_prototypes: - uuid: c01d272994ed48378db3b96c049713e1 expression: 'last(/vCenter_SNMP-VMWARE_VCSA_6.7/File-System-Space-Used-Percentage.[{#SNMPVALUE}])>=99' name: 'Free Space File System {#SNMPVALUE} -< 1%- on {HOST.HOST1}' priority: HIGH - uuid: 89177477565e4d72b8e28980cb2f3364 expression: 'last(/vCenter_SNMP-VMWARE_VCSA_6.7/File-System-Space-Used-Percentage.[{#SNMPVALUE}])>=95' name: 'Free Space File System {#SNMPVALUE} -< 5%- on {HOST.HOST1}' priority: AVERAGE - uuid: 1f248527ca8a44f486270c6b3d86b3bf expression: 'last(/vCenter_SNMP-VMWARE_VCSA_6.7/File-System-Space-Used-Percentage.[{#SNMPVALUE}])>=90' name: 'Free Space File System {#SNMPVALUE} -< 10%- on {HOST.HOST1}' priority: WARNING - uuid: f8fd4da94ccd416484d143f9cd980925 name: 'File System {#SNMPVALUE} - Space Allocated' type: SNMP_AGENT snmp_oid: 'HOST-RESOURCES-MIB::hrStorageSize.{#SNMPINDEX}' key: 'SNMP-File-System-Space-Allocated.[{#SNMPVALUE}]' delay: '600' history: 7d request_method: POST tags: - tag: Application value: Filesystem - uuid: 7ede1305fc7a4c3385e6c8d52e42aab5 name: 'File System {#SNMPVALUE} - Space Used' type: SNMP_AGENT snmp_oid: 'HOST-RESOURCES-MIB::hrStorageUsed.{#SNMPINDEX}' key: 'SNMP-File-System-Space-Used.[{#SNMPVALUE}]' delay: '180' history: 7d request_method: POST tags: - tag: Application value: Filesystem request_method: POST - uuid: e539fe0b95dc48a4974b09937a998ba3 name: Network type: SNMP_AGENT snmp_oid: 'discovery[{#SNMPVALUE},.1.3.6.1.2.1.2.2.1.2]' key: snmp.network.discovery delay: '180' item_prototypes: - uuid: 1ab472e206ac413b847f1071c166a33c name: 'Interface [{#SNMPVALUE}] Admin Status' type: SNMP_AGENT snmp_oid: 'IF-MIB::ifAdminStatus.{#SNMPINDEX}' key: 'SNMP-Interface-Admin-Status.[{#SNMPVALUE}]' delay: '120' history: 7d request_method: POST tags: - tag: Application value: Network trigger_prototypes: - uuid: 0273b6ca192f4fac9cedada6a43db92b expression: 'last(/vCenter_SNMP-VMWARE_VCSA_6.7/SNMP-Interface-Admin-Status.[{#SNMPVALUE}])=0' name: 'Interface [{#SNMPVALUE}] on {HOST.HOST1} - DOWN' priority: AVERAGE - uuid: 414f9f4df5034e80a6eb68e08c5322c0 name: 'Interface [{#SNMPVALUE}] Description' type: SNMP_AGENT snmp_oid: 'IF-MIB::ifDescr.{#SNMPINDEX}' key: 'SNMP-Interface-Description.[{#SNMPVALUE}]' delay: '1800' history: 7d trends: '0' value_type: TEXT request_method: POST tags: - tag: Application value: Network - uuid: 769bb55ac1ba4ce1b6cc1bf8cf180223 name: 'Interface [{#SNMPVALUE}] IN Error' type: SNMP_AGENT snmp_oid: 'IF-MIB::ifInErrors.{#SNMPINDEX}' key: 'SNMP-Interface-IN-Error.[{#SNMPVALUE}]' delay: '180' history: 7d request_method: POST tags: - tag: Application value: Network trigger_prototypes: - uuid: 1956cb65c3464ab68d63ecbcb8b5f653 expression: '(last(/vCenter_SNMP-VMWARE_VCSA_6.7/SNMP-Interface-IN-Error.[{#SNMPVALUE}],#1)<>last(/vCenter_SNMP-VMWARE_VCSA_6.7/SNMP-Interface-IN-Error.[{#SNMPVALUE}],#2))=1' name: 'Interface [{#SNMPVALUE}] on {HOST.HOST1} - IN Error' priority: WARNING - uuid: fb071a7da9f147b9b9c167c04f5d0e26 name: 'Interface [{#SNMPVALUE}] Bytes received' type: SNMP_AGENT snmp_oid: 'IF-MIB::ifInOctets.{#SNMPINDEX}' key: 'SNMP-Interface-IN-Octets.[{#SNMPVALUE}]' delay: '180' history: 7d units: B preprocessing: - type: CHANGE_PER_SECOND parameters: - '' - type: MULTIPLIER parameters: - '8' request_method: POST tags: - tag: Application value: Network - uuid: b26ac824ee024d7d9c82d70b9371837a name: 'Interface [{#SNMPVALUE}] MAC' type: SNMP_AGENT snmp_oid: 'IF-MIB::ifPhysAddress.{#SNMPINDEX}' key: 'SNMP-Interface-MAC.[{#SNMPVALUE}]' delay: '1800' history: 7d trends: '0' value_type: TEXT request_method: POST tags: - tag: Application value: Network - uuid: 49fe91b1acf849e4baed9c0c6e0b7388 name: 'Interface [{#SNMPVALUE}] Operation Status' type: SNMP_AGENT snmp_oid: 'IF-MIB::ifOperStatus.{#SNMPINDEX}' key: 'SNMP-Interface-Operation-Status.[{#SNMPVALUE}]' delay: '120' history: 7d request_method: POST tags: - tag: Application value: Network trigger_prototypes: - uuid: d3563b8e588a43c787dc9ee9e97f2d95 expression: 'last(/vCenter_SNMP-VMWARE_VCSA_6.7/SNMP-Interface-Operation-Status.[{#SNMPVALUE}])=0' name: 'Interface [{#SNMPVALUE}] on {HOST.HOST1} - DOWN' priority: AVERAGE - uuid: 11405099784d4d2e84c101721f0d1b90 name: 'Interface [{#SNMPVALUE}] Bytes send' type: SNMP_AGENT snmp_oid: 'IF-MIB::ifOutOctets.{#SNMPINDEX}' key: 'SNMP-Interface-OUT-Octets.[{#SNMPVALUE}]' delay: '180' history: 7d units: B preprocessing: - type: CHANGE_PER_SECOND parameters: - '' - type: MULTIPLIER parameters: - '8' request_method: POST tags: - tag: Application value: Network - uuid: cf423d40f0ff4c3c997763208b0348f6 name: 'Interface [{#SNMPVALUE}] Type' type: SNMP_AGENT snmp_oid: 'IF-MIB::ifType.{#SNMPINDEX}' key: 'SNMP-Interface-Type.[{#SNMPVALUE}]' delay: '1800' history: 7d request_method: POST tags: - tag: Application value: Network graph_prototypes: - uuid: 41627046fa4044dfa888539a7503d8c0 name: 'Interface [{#SNMPVALUE}] Incoming Traffic' graph_items: - color: 1A7C11 item: host: vCenter_SNMP-VMWARE_VCSA_6.7 key: 'SNMP-Interface-IN-Octets.[{#SNMPVALUE}]' - uuid: 14a63e8f046b4ebf85bd76d3416b4255 name: 'Interface [{#SNMPVALUE}] Outgoing Traffic' graph_items: - color: 1A7C11 item: host: vCenter_SNMP-VMWARE_VCSA_6.7 key: 'SNMP-Interface-OUT-Octets.[{#SNMPVALUE}]' - uuid: dab7b89e5e3a4488b5821aa676438729 name: 'Interface [{#SNMPVALUE}] Total Traffic' graph_items: - color: 1A7C11 item: host: vCenter_SNMP-VMWARE_VCSA_6.7 key: 'SNMP-Interface-IN-Octets.[{#SNMPVALUE}]' - sortorder: '1' color: F63100 item: host: vCenter_SNMP-VMWARE_VCSA_6.7 key: 'SNMP-Interface-OUT-Octets.[{#SNMPVALUE}]' request_method: POST - uuid: fb39fb2351d3409182eef4d5bb54ba8b name: 'VCSA Services' type: EXTERNAL key: vcsa_discovery delay: 1h filter: evaltype: AND conditions: - macro: '{#VMWARESVC}' value: '^(.*?)((?=\.)|(?=$))' formulaid: A - macro: '{#VMWARESVC}' value: ^saslauth|bas|anacro|pytho operator: NOT_MATCHES_REGEX formulaid: B item_prototypes: - uuid: 764609c35330400aa3070186244c647e name: 'Process [{#VMWARESVC}] CPU Usage' type: CALCULATED key: 'Process-Usage-[{#VMWARESVC}]' delay: 30s value_type: FLOAT units: '%' params: '(max(//SNMP-Process-Perf-CPU-[{#VMWARESVC}],60s:now-1s)-min(//SNMP-Process-Perf-CPU-[{#VMWARESVC}],60s:now-1s))/10' tags: - tag: Application value: VMWare-Services trigger_prototypes: - uuid: 1911c1d23c61458a9e7b489b14e7f4ff expression: 'avg(/vCenter_SNMP-VMWARE_VCSA_6.7/Process-Usage-[{#VMWARESVC}],5m)>{$CPU_UTIL_MAX}' name: 'Service [{#VMWARESVC}] high CPU usage on {HOST.HOST1}' priority: AVERAGE - uuid: 7912a71b689540cfbbdb0c0b7bf4fa3b name: 'Process [{#VMWARESVC}] Memory Usage' type: SNMP_AGENT snmp_oid: 'HOST-RESOURCES-MIB::hrSWRunPerfMem["index","HOST-RESOURCES-MIB::hrSWRunName", "{#PARAMETERS}"]' key: 'SNMP-Process-Memory-[{#VMWARESVC}]' units: B tags: - tag: Application value: VMWare-Services - uuid: de94633e619943c3a9096263dbb31f9a name: 'Process [{#VMWARESVC}] CPU centi-seconds' type: SNMP_AGENT snmp_oid: 'HOST-RESOURCES-MIB::hrSWRunPerfCPU["index","HOST-RESOURCES-MIB::hrSWRunName", "{#PARAMETERS}"]' key: 'SNMP-Process-Perf-CPU-[{#VMWARESVC}]' delay: 30s tags: - tag: Application value: VMWare-Services - uuid: 8e680572c0434fa28490884db31f2ee9 name: 'Process [{#VMWARESVC}] Status' type: SNMP_AGENT snmp_oid: 'HOST-RESOURCES-MIB::hrSWRunStatus["index","HOST-RESOURCES-MIB::hrSWRunName", "{#PARAMETERS}"]' key: 'SNMP-Process-Status-[{#VMWARESVC}]' tags: - tag: Application value: VMWare-Services trigger_prototypes: - uuid: 23053e44d07d4e19afef17ab9edf7a0d expression: 'nodata(/vCenter_SNMP-VMWARE_VCSA_6.7/SNMP-Process-Status-[{#VMWARESVC}],5m)=1' name: 'Service [{#VMWARESVC}] not running on {HOST.HOST1}' priority: HIGH graph_prototypes: - uuid: 0ecbd340d57a4e0793e4879133a98bdf name: 'Service [{#VMWARESVC}] CPU Usage' graph_items: - color: 1A7C11 item: host: vCenter_SNMP-VMWARE_VCSA_6.7 key: 'Process-Usage-[{#VMWARESVC}]' macros: - macro: '{$CPU_UTIL_MAX}' value: '90' - macro: '{$SNMP_PORT}' value: '161'