ESXi 7.0 Access Zabbix 7.0 Full Configuration Guide (SNMP v2c)
Detailed VMware ESXi 7.0.3 complete configuration process for Zabbix 7.0.28 monitoring system access via SNMP v2c protocol, which contains ESXi end SNMP service settings, firewall release, Zabbix host addition and automatic characterization.
The ESXi host, with access to Zabbix, allows continuous observation of host accessibility, operation time, Network interface traffic and base system state, which is suitable for basic inspection for the virtualization platform. The text should read ESXi 7.0 and Zabbix 7.0 Example , Introduction and adoption SNMP v2c Steps to complete access , and Description SNMP Monitoring and vCenter API Controlled applicable borders 。
First, let's be clear about what SNMP v2c can monitor.
SNMP v2c has the advantage of being simple, compatible and suitable for fast-track Network equipment and server base indicators. ESXi access allows the collection of host names, operation time, Network interface status, transmit and receive traffic and some system-level information.
Note that SNMP v2c uses community string for access control and that the content of the communication is not encryption. So, community don't use public or private, And only allowed. Zabbix Server or Zabbix Proxy Management address Visits UDP 161 Ports 。 If VMware business indicators such as virtual machine lists, data storage capacity, cluster relationships, resource pools and virtual machine performance are required, it is recommended that vCenter API monitoring be further used and not rely on SNMP.
Preparation for access
- ESXi host version: 7.0 or a series of patches for managing address fixed.
- Zabbix Server or Proxy: 7.0 is able to access the ESXi management segment.
- Network policy: Zabbix access UDP 161 Ports to ESXi, return traffic cannot be intercepted by firewall.
- Surveillance certificates : Prepare a group. Length Enough. 、 For surveillance only. SNMP community。
- TimeSync: ESXi, Zabbix Server, Proxy is consistent and allows for the timing of the alarm.
III. Configure SNMP v2c on ESXi 7.0
1. Open ESXi Shell or SSH
SSH can be started on SSH in ESXi Host Client 's Management-service 'or ESXi Shell can be opened via DCUI. After the configuration is completed, it is recommended that SSH service be closed to reduce the management exposure time.
2. Set community and Zabbix target address
The following command is executed after login to the ESXi host. Please put the example in YOUR_STRONG_COMMUNITY Replace with the actual value, ZABBIX_SERVER_IP Replace with address for Zabbix Server or Proxy:
esxcli system snmp set --communities YOUR_STRONG_COMMUNITY
esxcli system snmp set --targets ZABBIX_SERVER_IP@161/YOUR_STRONG_COMMUNITY
esxcli network firewall ruleset set --ruleset-id snmp --enabled true
esxcli system snmp set --enable true
If other SNMP targets have been configured in the environment, execute --targets Always keep the original target and avoid overwhelming existing surveillance configurations. Configure to view the current status:
esxcli system snmp get
Focus on whether community, target address, Ports and enabler are correct. Some environments need to restart SNMP service after they have been modified to perform the test command first; If the test fails, further processing is done according to ESXi log and service status.
3. Start testing from Zabbix Server or Proxy
Use snmpwalk on Zabbix Server or Proxy to verify connectivity:
snmpwalk -v 2c -c YOUR_STRONG_COMMUNITY ESXI_IP 1.3.6.1.2.1.1
The sysName, sysUpTime etc., Description SNMP service, Network route, community and firewall strategies are generally normal. If time is exceeded, do not modify the Zabbix template first, check whether UDP 161 is released and whether the request is sent from the correct Proxy address.
iv. Create ESXi host in Zabbix 7.0
1. Add SNMP interface
Enter "Data Acquisition - Host - Create Host", fill in ESXi administration IP, add SNMP interface in "interface" and Ports fill 161, version selected SNMPv2c. community suggests using macros to save, e.g.:
{$SNMP_COMMUNITY}
Places macros at the host or host group level, and community is changed only to change macros and not to change the controls one by one.
2. Select Monitor Template
If only basic availability and interface flow is required, the SNMP template suitable for Zabbix 7.0 can be used, and the actual webcard name of ESXi will be used to filter the monitoring items. If VMware is required for the virtual machine, data storage, cluster and resource pool, VMware should be monitored through vCenter API configuration VMware and SNMP should not be recommended as a complete VMware monitoring program.
3. Suggested Priority Monitoring Indicators
| Indicators | Common OID | Purpose |
|---|---|---|
| Host Name | .1.3.6.1.2.1.1.5.0 | Identification of the navigator. |
| System running time | .1.3.6.1.2.1.1.3.0 | Found host restart or abnormal interruption |
| interface flow in direction | .1.3.6.1.2.1.2.2.1.10 | Observe network throughput and sudden flow |
| interface coming in. | .1.3.6.1.2.1.2.2.1.16 | Watch the bandwidth of the exit and the abnormality. |
V. Common troubleshooting
Problem 1: snmpwalk Timeout
Check ESXi management IP in turn, whether ESXi firewall allows SNMP, UDP 161 is through the center firewall, and Zabbix Proxy uses an export address that is different from the expected.
Question 2: returns authentication failure
Usually community is inconsistent, or there are spaces and invisible characters in Zabbix host macros. It is recommended to re-enter the ESXi and Zabbix ends manually and to avoid copying illustrative strings with quotation marks.
Question 3: Hostable but Monitor Data Not Available
Checks the monitoring item type, SNMP interface, OID and update time intervals first by snmpwalk to verify whether the corresponding OID is actually able to return the data. Do not just look at the "no data" hint at the front end of Zabbix to judge the Network malfunction.
Problem 4: Want to monitor virtual machines CPU, memory and data storage
Such indicators are usually more appropriate for collection through vCenter API. SNMP can be added to the host base availability and Network indicators, while the VMware exclusive indicator recommends the harmonization of the tube by API.
VI. Recommendations for security enhancements
- Only SNMP is enabled in the management section. Access to UDP 161 from the public network is prohibited.
- Use random, long enough community and periodically replace it.
- Close SSH after configuration has been completed, only to be opened on a temporary basis while maintenance is being performed.
- Yes. ESXi、Zabbix Server and Proxy Do it. minimum Permissions firewall Access control 。
- SNMP has been put in place to provide a warning that the SNMP round, login failure and mainframe is not accessible, and to avoid the silence of the surveillance system.
Summary
The key steps for ESXi 7.0 access to Zabbix 7.0 are: Configure SNMP community, Specify Zabbix Targets, Release ESXi firewall, Use snmpwalk to verify, and create SNMP interface and monitoring items in Zabbix. SNMP v2c is suitable for basic inspection; If an enterprise needs a complete VMware resource and a virtual machine performance view, a control structure should be designed in conjunction with vCenter API.
If you have a larger ESXi host, you should select one to complete the validation and then use the one-time configuration and host macro-barrel to avoid a disruption of the control by modifying the entire host at once. Huanan Tengfei Technology may assist in planning the Zabbix monitoring and follow-up alarm operations programme in accordance with the existing Network and virtualization size and security requirements of the enterprise.











