关于zabbix对vmware Esxi的监控

参考:
http://www.linuxeye.com/Linux/2838.html

需要安装的软件包,支持解析调用SOAP接口返回的XML

apt-get install libcurl4-openssl-dev
apt-get install libxml2-dev 
apt-get install libxml2

修改配置文件

root@dev-vhost011 ~]# cat /etc/zabbix/zabbix_server.conf

StartVMwareCollectors=5  #只有大于0时才能是该功能生效,意为预先配置的vmware监控实例数量。 (特别注意)
VMwareFrequency=60      #获取更新vmware集群结构的最小间隔时间,单位为分钟。
VMwareCacheSize=8M       #内存中维护的vmware集群结构的大小

重启zabbix_server服务

/etc/init.d/zabbix-server restart

用户宏配置

#主机宏
{SPASSWORD} => esxi root passwd
{SNMP COWUNITY} => Snmp Community Strings
{SURL} => https://esxi-ip/sdk/sdk
{SUSERNAME}  => root
{SUUID} => 16d06C68 一 5137 一 11e2 一 891a 一 40 eg075C82 (Esxi主机UUID)

关联模版

Template Module ICMP Ping 
Template SNMP OS ESXi 
Template VM VMware 
Template VM VMware Guest 
Template VM VMware Hypervisor 
Zabbix-hashID-VIMBlX-ESXI

zabbix会通过模版自动发现Esxi主机上的虚拟机,并添加相关状态检测

Virtual Machines VM Guest statepy CS win2012R2 12C-100_11 vmwVMGuestState.1331 
Virtual Machines VM Guest statepy CS win2012R2 17C-100_12 vmwVMGuestState.1281 
Virtual Machines VM Guest statepy CS win2012R2 17C-100_13 vmwVMGuestState.1291 
Virtual Machines VM Guest statepy CS win2012R2 17C-100_14 vmwVMGuestState.1121 
Virtual Machines VM Guest statepy CS win2012R2 18C-100_15 vmwVMGuestState.111 
Virtual Machines VM Guest statepy CS win2012R2 18C-100_16 vmwVMGuestState.1131 
Virtual Machines VM Guest statepy CS win2012R2 18C-100_17 vmwVMGuestState.1141 
Virtual Machines VM Guest statepy CS win2012R2 19C-100_18 vmwVMGuestState.1151 
Virtual Machines VM Guest statepy CS win2012R2 19C-100_19 vmwVMGuestState.1161 

相关参考

  • https://www.cnblogs.com/bigberg/p/7244370.html
  • 下载ESXi SNMP模板 http://www.zabbix.org/wiki/Zabbix_Templates

你可能感兴趣的:(关于zabbix对vmware Esxi的监控)