使用 SNMPv2-MIB监控ESXi的设备
VMware MIB 文件为 SNMP 管理软件定义 ESXi 主机和 vCenter Server 提供的信息。
SNMPv2-MIB
[root@cacti ~]# snmpwalk -v 2c -c public 122.122.122.122 .1 | more #查看所有信息
SNMPv2-MIB::sysDescr.0 = STRING: VMware ESXi 5.5.0 build-2143827 VMware, Inc. x86_64
SNMPv2-MIB::sysName.0 = STRING: QVPS101101109
HOST-RESOURCES-MIB::hrDeviceDescr.1 = STRING: CPU Pkg/ID/Node: 0/0/0 Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GH
HOST-RESOURCES-MIB::hrDeviceDescr.33 = STRING: LUN DELL PERC H730P Adp 4.25 naa.614187706c5cdf001e8d753c1209da
HOST-RESOURCES-MIB::hrDeviceDescr.34 = STRING: LUN DELL PERC H730P Adp 4.25 naa.614187706c5cdf001e8d747105f3ff
HOST-RESOURCES-MIB::hrSWInstalledDate.1 = STRING: 2016-3-29,0:0:0.0
SNMPv2-SMI::mib-2.47.1.1.1.1.2.1 = STRING: "Dell Inc. DSS1500"
SNMPv2-SMI::mib-2.47.1.2.1.1.2.1 = STRING: "VMware vCenter Server"
SNMPv2-SMI::enterprises.6876.1.1.0 = STRING: "VMware ESXi"
SNMPv2-SMI::enterprises.6876.1.2.0 = STRING: "5.5.0"
SNMPv2-SMI::enterprises.6876.3.5.2.1.5.1 = STRING: "LSI Logic / Symbios Logic PERC H730P Adapter"
SNMPv2-SMI::enterprises.6876.3.5.2.1.5.2 = STRING: "Intel Corporation Haswell-E DMI2"
SNMPv2-SMI::enterprises.6876.4.20.102.0 = Timeticks: (247129720) 28 days, 14:28:17.20
......
.....
OID具体数值
snmpwalk -v 2c -c public 122.122.122.122 sysDescr.0
snmpwalk -v 2c -c public 122.122.122.122 hrDeviceDescr.1
snmpwalk -v 2c -c public 122.122.122.122 mib-2.47.1.1.1.1.2.1
snmpwalk -v 2c -c public 122.122.122.122 enterprises.6876.3.5.2.1.5.1
ESXi 的snmp默认配置
/etc/vmware/snmp.xml
# cat /etc/vmware/snmp.xml
esxi-snmp" width="776" height="144" class="aligncenter size-full wp-image-1384" srcset="https://hqyman.cn/zb_users/upload/2024/08/20240805171633_70340.png 776w, https://www.zhangfangzhou.cn/wp-content/uploads/2016/04/esxi-snmp-768x143.png 768w, https://www.zhangfangzhou.cn/wp-content/uploads/2016/04/esxi-snmp-600x111.png 600w" sizes="(max-width: 776px) 100vw, 776px" style="height: auto; max-width: 100%; border: 0px; clear: both; display: block; margin: 0px auto;"/>
已经把真正ESXi主机的IP地址修改为122.122.122.122
推荐本站淘宝优惠价购买喜欢的宝贝:
本文链接:https://hqyman.cn/post/7425.html 非本站原创文章欢迎转载,原创文章需保留本站地址!
休息一下~~