參考:
http://www.linuxeye.com/Linux/2838.html
需要安裝的軟件包,支持解析調(diào)用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時才能是該功能生效疚宇,意為預(yù)先配置的vmware監(jiān)控實例數(shù)量决记。 (特別注意)
VMwareFrequency=60 #獲取更新vmware集群結(jié)構(gòu)的最小間隔時間从绘,單位為分鐘奕谭。
VMwareCacheSize=8M #內(nèi)存中維護的vmware集群結(jié)構(gòu)的大小
重啟zabbix_server服務(wù)
/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)
關(guān)聯(lián)模版
Template Module ICMP Ping
Template SNMP OS ESXi
Template VM VMware
Template VM VMware Guest
Template VM VMware Hypervisor
Zabbix-hashID-VIMBlX-ESXI
zabbix會通過模版自動發(fā)現(xiàn)Esxi主機上的虛擬機甘苍,并添加相關(guān)狀態(tài)檢測
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
相關(guān)參考