中文

Zabbix, alarm access AI large model...

2026-08-01 Huanan Tengfei Technology
Zabbix, alarm access AI large model...

one 、 Why would a security alarm be needed? AI: operations and maintenance ♪ The Bureau of Vulnerabilities ♪ one Home. operations and maintenance The team. , We're tired of warning. (AlertFatigue) It's all a problem. 。

ESXi 7.0 Access Zabbix 7.0 Full Configuration Guide

SNMP v2c protocol — including NexusOps MCP automation scheme

Environmental information:ESXi 7.0.3 build-21313628 → Zabbix 7.0.28 | Access:SNMP v2c

In the enterprise IT infrastructure operations and maintenance, the VMware ESXi virtualization platform is connected to the Zabbix monitoring system, which is a key step towards achieving unified surveillance, fail-warning and performance analysis. Pass. SNMP( Simple Network Management agreements ) Mode Access , Both available ESXi Host CPU、 memory 、 storage 、 Network Wait. cores Indicators , I don't need to be here. ESXi Install additional agents on top 。 This document will fully record ESXi 7.0.3 access to the Zabbix 7.0.28 full process configuration via SNMP v2c protocol.

One. 、ESXi End SNMP Configure

1. Open ESXi SSH service

ESXi defaults not to open SSH and needs to be manually enabled in the Web management interface. Open Browser Access ESXi Manage address (if https://ESXi-IP/ui/#/host/manage/services) Found in the service list TSM-SSH, click "start" on it.

2. Configure and enable SNMP service

SNMP configuration is completed by connecting SSH to the ESXi host, by following the following command. Note: The known limit for VMware is that SNMP service must be configured by command line community to start, not directly in Web interface.

#1. View the current SNMP configuration esxcli system snmp get # 2. Set SNMP Community (group name) esxcli system snmp set --communities public #3. Enable SNMP service esxcli system snmp set --enable true # 4. Set SNMP end mouth (default 161) esxcli system snmp set --port 161

3. Configure firewall rules

Even if SNMP service is started, ESXi firewall defaults to block UDP 161 Ports entry traffic. The SNMP firewall ruleset must be clearly released:

esxcli network firewall ruleset set --ruleset-id snmp --allowed-all true
esxcli network firewall ruleset set --ruleset-id snmp --enabled true
esxcli network firewall refresh

4. Start and validate SNMP service

Upon completion of the above configuration, start and validate the SNMP daemon:

# Start SNMP service /etc/init.d/snmpd start # View SNMP Process ps -c grep snmp # View full SNMP configuration esxcli system snmp get

On the Zabbix Server host, snmpwalk command is used to test connectivity:

snmpwalk -v 2c -c public ESXi_IP 1.3.6.1.2.1.1.1.0

A successful response should include "VMware ESXi 7.0.3 build-21313628" Equalties UnionTech Shizuku! , Description SNMP The configuration is correct and Network Koda. 。

5. Configure confirmation summary

Configure Item Value
Community public
Ports 161 (UDP)
SNMP service Status snmpd is running
firewall Rules SNMP ruleset released and enabled
External Response Test snmpwalk returns UnionTech at normal

Two. 、Zabbix End Add ESXi Host

1. Web Interface Add (Recommended)

Login Zabbix Web management interface, enter Configure Quick Host Quick Create Host, fill in the following configuration:

Fields Recommended value Description
Host Name ESXi-7.0.3 A name that is easy to identify.
Visible Name ESXi 7.0.3 Display name in dashboard
Groups Hypervisors Group to virtualization host group
Interface type SNMP Select SNMP instead of Agent
SNMP IP address ESXi Management IP By Actual
SNMP Version SNMPv2c The stability is best.
Community public Consistent with ESXi configuration

Search and associate in the Template tab after saving host "Template Net VMware ESXi SNMP" template. Zabbix Server Yes. automatic Pass. SNMP Interrogation ESXi, How many? minutes I'll be right there. " Monitoring → Latest data " I saw it. CPU Usage rate 、 memory Usage 、 Disk capacity 、 Network Traffic 、 System operation Time is waiting. cores Indicators 。

2. NexusOps MCP Automation Program (Progress)

For an environment requiring volume management , We can use it. NexusOps MCP It's... API interface automatic Create Zabbix Host 。 NexusOps uses the Streamable HTTP (SSE) protocol to interact with Zabbix API via a tool call.

Basic call process: Call first initialize Initialize sessions and fetch Session ID, reuse zabbix_create_host Tool creation host:

# MCP tool calls for example result = call_tool(session_id, ' zabbix_create_host ' , { ' host_name ' : ' ESXi-7.0.3 ' , ' ip ' : ' 192.168.2.201 ' , ' group ' : ' Hypervisors ' , ' template ' : ' })

NexusOps MCP provides a total of 14 Zabbix management tools to cover the creation of hosts, indicator queries, alarm confirmation, and historical data export. But what needs to be noticed is... , Pass. MCP After Creating Host , It still needs to be here. Zabbix Web Interface manual Supplementary SNMP Interface type Configure & Monitor Template Linking 。

III. Quick check of key commands

Operation Command
View SNMP Configuration esxcli system snmp get
Set Community+ enabled esxcli system snmp set --communities public --enable true --port 161
Release firewall esxcli network firewall ruleset set --ruleset-id snmp --allowed-all true --enabled true && esxcli network firewall refresh
Start SNMP service /etc/init.d/snmpd start
Validation process ps -c | grep snmp
External connectivity testing snmpwalk -v 2c -c public ESXi_IP 1.3.6.1.2.1.1.1.0

Common issues and concerns

⚠️ Question one. :SSH Unopened

SSH for ESXi is not a default service open, and esxcli commands can only be executed remotely after manual has been enabled by Web management interface (service TSM-SSH Z).

⚠️ Question II :SNMP Cannot From Web Interface Direct Start

This is the known behaviour of VMware - snmpd service can only start without first having configured community specifications by esxcli command line. Click on Web interface to start SNMP service invalid.

Question three: firewall Rules omitted

The most common omission in the configuration of ESXi SNMP is the firewall rule. Even if SNMP service is started, the undisable external connection request for firewall will be discarded directly by ESXi, as snmpwalk is not responding. It's got to be done. esxcli network firewall ruleset set --ruleset-id snmp --allowed-all true。

Question four: Automation tools need to be supplemented manually when they are created

When creating Zabbix hosts with MCP API or a script batch, if the tool Not supported directly sets SNMP Interface type and the template is associated, login Zabbix Web interfaces will be required to supplement these two configurations with manual for each host. It is recommended that priority be given to creating a single template host through the Web interface, and that API automation be taken into account in bulk deployment.

After completing all the above configurations, the ESXi host will be formally integrated into the Zabbix unified system. SNMP access does not require additional Zabbix Agent installed on ESXi, is simple and stable, and is recommended for virtualization environmental monitoring.

(full text completed)

Related Content