需要监控 ESXI 和 vSphere 系统的状态,开启默认的 SNMP
一、VMware ESXI 开启
SSH 登录到ESXI上执行命令如下:
- [root@ESXI:~] esxcli system snmp set --enable true
- [root@ESXI:~] esxcli system snmp set --communities public
- [root@ESXI:~] esxcli system snmp get
- Authentication:
- Communities: public
- Enable: true
- Engineid: 80001ADC0512586737811695110431
- Hwsrc: indications
- Largestorage: true
- Loglevel: warning
- Notraps:
- Port: 161
- Privacy:
- Remoteusers:
- Syscontact:
- Syslocation:
- Targets:
- Users:
- V3targets:
二、VMware vCenter Server 开启: