公司用VMware做虚拟化,15+HPE 服务器做集群,现需要用zabbix监控其状态,于是想通过打开主机的snmp协议来采集数据,监控其状态,注意其数据是ESXI系统返回的。
ssh登录到ESXI上执行命令如下:
esxcli system snmp set --enable true
esxcli system snmp set --communities public
[root@GYQ-Prod-P07:~] esxcli system snmp set --enable true [root@GYQ-Prod-P07:~] esxcli system snmp set --communities public [root@GYQ-Prod-P07:~] esxcli system snmp get Authentication: Communities: public Enable: true Engineid: 00000063000000a100000000 Hwsrc: indications Largestorage: true Loglevel: info Notraps: Port: 161 Privacy: Remoteusers: Syscontact: Syslocation: Targets: Users: V3targets: