5.02021-11-21T21:36:17ZTemplatesvCenter_SNMP-VMWARE_VCSA_6.7vCenter_SNMP-VMWARE_VCSA_6.7## 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.
<https://support.zabbix.com/browse/ZBXNEXT-3753> - renaming discovered items still unavailable
## Author
Aleksey Omelyanovich
TemplatesCPUFilesystemNetworkVMWare-Services- Ping vCenterSIMPLEicmpping[,2]1207dPOST{last()}<>1{HOST.HOST1} is unavailable by ICMPHIGH
- File System Allocation FailureSNMP_AGENTHOST-RESOURCES-MIB::hrStorageAllocationFailures["index","HOST-RESOURCES-MIB::hrStorageDescr", "/dev"]SNMP-File-System-allocation-error1807dStorage allocation file systemPOST{diff()}=1File System Allocation Error on {HOST.HOST1}WARNING
- Memory Allocation ErrorSNMP_AGENTHOST-RESOURCES-MIB::hrStorageAllocationFailures.14SNMP-Memory-Allocation-Error1807dPOST{diff()}=1Memory Allocation Error on {HOST.HOST1}WARNING
- Vcenter NameSNMP_AGENTSNMPv2-SMI::mib-2.47.1.1.1.1.7.1SNMP-NamePlateforme36007d0TEXTNAMEPOST
- Number of ProcessesSNMP_AGENTHOST-RESOURCES-MIB::hrSystemProcesses.0SNMP-Number-Processes1807dPOST
- Snmp AvailabilityINTERNALzabbix[host,snmp,available]1807dPOST{last()}<>1SNMP {HOST.HOST1} UnavailableHIGH
CPUSNMP_AGENTdiscovery[{#SNMPVALUE},.1.3.6.1.2.1.25.3.3.1.2]snmp.CPU.discovery3600CPU {#SNMPINDEX} UtilizationSNMP_AGENTHOST-RESOURCES-MIB::hrProcessorLoad.{#SNMPINDEX}SNMP-Charge-CPU-.[{#SNMPINDEX}]1807d%CPUPOST{avg(5m)}>{$CPU_UTIL_MAX}High CPU {#SNMPINDEX} Utilization on {HOST.HOST1}AVERAGECPU {#SNMPINDEX} NameSNMP_AGENTHOST-RESOURCES-MIB::hrDeviceDescr.{#SNMPINDEX}SNMP-Name-CPU-.[{#SNMPINDEX}]36007d0TEXTCPUPOSTCPU {#SNMPINDEX} Utilization1A7C11- vCenter_SNMP-VMWARE_VCSA_6.7SNMP-Charge-CPU-.[{#SNMPINDEX}]
POSTFile SystemSNMP_AGENTdiscovery[{#SNMPVALUE},.1.3.6.1.2.1.25.2.3.1.3]snmp.filesystem.discovery180File System {#SNMPVALUE} - Used PercentageCALCULATEDFile-System-Space-Used-Percentage.[{#SNMPVALUE}]1807d100*(last(SNMP-File-System-Space-Used.[{#SNMPVALUE}])/last(SNMP-File-System-Space-Allocated.[{#SNMPVALUE}]))FilesystemPOST{last()}>=99Free Space File System {#SNMPVALUE} -< 1%- on {HOST.HOST1}HIGH{last()}>=95Free Space File System {#SNMPVALUE} -< 5%- on {HOST.HOST1}AVERAGE{last()}>=90Free Space File System {#SNMPVALUE} -< 10%- on {HOST.HOST1}WARNINGFile System {#SNMPVALUE} - Space AllocatedSNMP_AGENTHOST-RESOURCES-MIB::hrStorageSize.{#SNMPINDEX}SNMP-File-System-Space-Allocated.[{#SNMPVALUE}]6007dFilesystemPOSTFile System {#SNMPVALUE} - Space UsedSNMP_AGENTHOST-RESOURCES-MIB::hrStorageUsed.{#SNMPINDEX}SNMP-File-System-Space-Used.[{#SNMPVALUE}]1807dFilesystemPOSTPOSTNetworkSNMP_AGENTdiscovery[{#SNMPVALUE},.1.3.6.1.2.1.2.2.1.2]snmp.network.discovery180Interface [{#SNMPVALUE}] Admin StatusSNMP_AGENTIF-MIB::ifAdminStatus.{#SNMPINDEX}SNMP-Interface-Admin-Status.[{#SNMPVALUE}]1207dNetworkPOST{last()}=0Interface [{#SNMPVALUE}] on {HOST.HOST1} - DOWNAVERAGEInterface [{#SNMPVALUE}] DescriptionSNMP_AGENTIF-MIB::ifDescr.{#SNMPINDEX}SNMP-Interface-Description.[{#SNMPVALUE}]18007d0TEXTNetworkPOSTInterface [{#SNMPVALUE}] IN ErrorSNMP_AGENTIF-MIB::ifInErrors.{#SNMPINDEX}SNMP-Interface-IN-Error.[{#SNMPVALUE}]1807dNetworkPOST{diff()}=1Interface [{#SNMPVALUE}] on {HOST.HOST1} - IN ErrorWARNINGInterface [{#SNMPVALUE}] Bytes receivedSNMP_AGENTIF-MIB::ifInOctets.{#SNMPINDEX}SNMP-Interface-IN-Octets.[{#SNMPVALUE}]1807dBNetworkCHANGE_PER_SECONDMULTIPLIER8POSTInterface [{#SNMPVALUE}] MACSNMP_AGENTIF-MIB::ifPhysAddress.{#SNMPINDEX}SNMP-Interface-MAC.[{#SNMPVALUE}]18007d0TEXTNetworkPOSTInterface [{#SNMPVALUE}] Operation StatusSNMP_AGENTIF-MIB::ifOperStatus.{#SNMPINDEX}SNMP-Interface-Operation-Status.[{#SNMPVALUE}]1207dNetworkPOST{last()}=0Interface [{#SNMPVALUE}] on {HOST.HOST1} - DOWNAVERAGEInterface [{#SNMPVALUE}] Bytes sendSNMP_AGENTIF-MIB::ifOutOctets.{#SNMPINDEX}SNMP-Interface-OUT-Octets.[{#SNMPVALUE}]1807dBNetworkCHANGE_PER_SECONDMULTIPLIER8POSTInterface [{#SNMPVALUE}] TypeSNMP_AGENTIF-MIB::ifType.{#SNMPINDEX}SNMP-Interface-Type.[{#SNMPVALUE}]18007dNetworkPOSTInterface [{#SNMPVALUE}] Incoming Traffic1A7C11- vCenter_SNMP-VMWARE_VCSA_6.7SNMP-Interface-IN-Octets.[{#SNMPVALUE}]
Interface [{#SNMPVALUE}] Outgoing Traffic1A7C11- vCenter_SNMP-VMWARE_VCSA_6.7SNMP-Interface-OUT-Octets.[{#SNMPVALUE}]
Interface [{#SNMPVALUE}] Total Traffic1A7C11- vCenter_SNMP-VMWARE_VCSA_6.7SNMP-Interface-IN-Octets.[{#SNMPVALUE}]
1F63100- vCenter_SNMP-VMWARE_VCSA_6.7SNMP-Interface-OUT-Octets.[{#SNMPVALUE}]
POSTVCSA ServicesEXTERNALvcsa_discovery1hAND{#VMWARESVC}^(.*?)((?=\.)|(?=$))A{#VMWARESVC}^saslauth|bas|anacro|pythoNOT_MATCHES_REGEXBProcess [{#VMWARESVC}] CPU UsageCALCULATEDProcess-Usage-[{#VMWARESVC}]30sFLOAT%delta(SNMP-Process-Perf-CPU-[{#VMWARESVC}],60,1)/10VMWare-Services{avg(5m)}>{$CPU_UTIL_MAX}Service [{#VMWARESVC}] high CPU usage on {HOST.HOST1}AVERAGEProcess [{#VMWARESVC}] Memory UsageSNMP_AGENTHOST-RESOURCES-MIB::hrSWRunPerfMem["index","HOST-RESOURCES-MIB::hrSWRunName", "{#PARAMETERS}"]SNMP-Process-Memory-[{#VMWARESVC}]BVMWare-ServicesProcess [{#VMWARESVC}] CPU centi-secondsSNMP_AGENTHOST-RESOURCES-MIB::hrSWRunPerfCPU["index","HOST-RESOURCES-MIB::hrSWRunName", "{#PARAMETERS}"]SNMP-Process-Perf-CPU-[{#VMWARESVC}]30sVMWare-ServicesProcess [{#VMWARESVC}] StatusSNMP_AGENTHOST-RESOURCES-MIB::hrSWRunStatus["index","HOST-RESOURCES-MIB::hrSWRunName", "{#PARAMETERS}"]SNMP-Process-Status-[{#VMWARESVC}]VMWare-Services{nodata(5m)}=1Service [{#VMWARESVC}] not running on {HOST.HOST1}HIGHService [{#VMWARESVC}] CPU Usage1A7C11- vCenter_SNMP-VMWARE_VCSA_6.7Process-Usage-[{#VMWARESVC}]
{$CPU_UTIL_MAX}90{$SNMP_PORT}161