Reference URL
https://www.zabbix.com/documentation/5.0/manual/config/items/itemtypes/snmp
https://blog.csdn.net/zdl244/article/details/105311303
Huawei switch oid query
https://support.huawei.com/mibtoolweb/enterpriseMibInfo/zh#PBI2-6691579_PBI2-22070326
First configure snmp
snmp-agent sys-info version v2c on the switch ##This v2 is the corresponding snmp protocol version in cacti;
snmp-agent community read ci Publiceup ##Publiceup is the community name
snmp-agent trap enable ##Enable snmp -agent trap
snmp-agent target-host trap address udp-domain 10.7.1.103 udp-port 161 params securityname Publiceup
snmp-agent target-host trap address udp-domain 10.7.1.103 params securityname Publiceup ###Allow to SNMP server 10.7. 4.14 Send Trap messages, the community name used is Publiceup
zabbix server中安装snmpwalk
yum install -y net-snmp net-snmp-utils
Check oid on Huawei official website
Use the snmpwalk command in zabbix server to find the current device free memory problem
snmpwalk -v 2c -c Publiceup 10.7.4.14 1.3.6.1.4.1.2011.6.3.5.1.1.3
The result is as follows
Snmpv2-smi:: followed by the key value
enterprises.2011.6.3.5.1.1.3.0.0.0
After the comparison, it can be seen that the official oid lacks .0.0.0,
so add .0.0.0 after the oid 1.3.6.1.4.1.2011.6.3.5.1.1.3 and then query and
compare the two query results again . If it is found to be consistent, it indicates that the oid is correct. Note that the snmp oid value added in zabbix must be correct, otherwise the data cannot be obtained. The official oid needs to be verified by combining the key value.
So if the key value added in zabbix is a verified oid, for
example, after this 1.3.6.1.4.1.2011.6.3.5.1.1.3 query the free memory oid
verification, the correct oid should be 1.3.6.1.4.1.2011.6 .3.5.1.1.3.0.0.0
New templates in Zabbix,
To add a new monitoring item, the key value and snmp oid value must be consistent with those found above.
Add graphics to the template, link the monitoring items just set in the graphics,
add hosts, link template test When
adding hosts, pay attention to setting snmp parameters, snmp select v2 and
set the macro consistent with the switch setting, the value of the macro should be the same as the snmp group in the switch
Check the results with the same name . If the settings are correct, there should be data in the graph