How to Configure ESXi in Zabbix

 

 

Step 1:-   SDK Installation in the Proxy Server.

 

Note: - Always keep in mind that if we want to monitor ESXi machine then before that we need to do background work in the proxy server which under this ESXi machines are mapped.

Background work in Proxy Server:

(i)                  Login to proxy server.

 

(ii)                Now Install SDK( software Development Kit ) in proxy server

Note:- Remember SDK installation is one time installation for all proxy.

 

(iii)               SDK Installation Steps: Install VMWARE Perl SDK

 

     IN RHEL 6.3 32 bit

 

#  yum install e2fsprogs-devel libuuid-devel perl-XML-LibXML openssl-devel

 

    IN RHEL 6.3 64 bit

 

# yum install e2fsprogs-devel libuuid-devel glibc.i686 perl-XML-LibXML openssl-devel

 

To install vSphere SDK for Perl on RHEL

1  Untar the vSphere SDK for Perl binary that you downloaded.

 

# tar –zxvf VMware-vSphere-CLI-6.X.X-XXXXX.XXXX.x86_64.tar.gz

 

# cd vmware-vsphere-cli-distrib

 

# ./vmware-install.pl

 

# mkdir /usr/lib64/perl5/AppUtil/

 

# cd /root/VMWARE-Zabbix-DS/vmware-vsphere-cli-distrib/apps/AppUtil

 

# cp * /usr/lib64/perl5/AppUtil/

 

Copy DS Discovery Scripts.

# cp dsbrowse.pl /usr/lib/zabbix/externalscripts/

# cp ds_discovery.pl /usr/lib/zabbix/externalscripts/

# chmod 755 /usr/lib/zabbix/externalscripts/ds_discovery.pl

# chmod 755 /usr/lib/zabbix/externalscripts/dsbrowse.pl

 

VERIFICATIONS:

DS Discovery:

# /usr/lib/zabbix/externalscripts/ds_discovery.pl  --url https://172.16.24.11/sdk/vimService --username root --password 'welcome@123'

 

Datastore1 Free space:

# /usr/lib/zabbix/externalscripts/dsbrowse.pl --url https://172.16.24.11/sdk/vimService --username root --password 'welcome@123' -name datastore1 --attributes  freespace

 

Datastore1 Total Capacity:

# /usr/lib/zabbix/externalscripts/dsbrowse.pl --url https://172.16.24.11/sdk/vimService --username root --password 'welcome@123' -name datastore1 --attributes capacity

 

Step 2:-  We have completed SDK installation the proxy server, Now we have to configure ESXi machine the zabbix.

For this we required below three inputs to add in the zabbix macros.

(a)    USERNAME of ESXI

(b)   Password of ESXI

(c)    UUID of ESXI

 

Username & Password collect from Virtualization team & use below link to get UUID of ESXi machine .

To Find uuid of ESX Server.

URL: https://192.168.124.3/mob/?moid=ha-host&doPath=hardware%2esystemInfo

Note: Replace IP Address With correct on and enter username and password when prompted.

 

 

Step 3:-   Need to Apply Template and Create Macros in frontend.

 

Example:-

{$USERNAME}                   EX: root

{$PASSWORD}                   EX: pass

{$URL}                                  Ex: https://X.X.X.X/sdk

{$UUID}                               Ex: 4c4c4544-0032-3610-8030-b2c04f5a5231

 

 

 

 

Configuration Completed.



PLEASE WRITE A FEEDBACK OR SUGGESTIONS TO BELOW EMAIL ID’S.

prashantkumar.chawan@gmail.com

info@mytara.co.in