Active5 years ago
Monitoring VMware ESX, ESXi, vSphere and vCenter Server. Vmware-install.pl will uninstall any previous version. If you prefer to get more hands on you can. I try to install zabbix_agent 3 on ESXi-6, zabbix can read data from ESXi-6 after allow service in ESXi-6 Firewall and zabbix agent flag in 'configuration -> host' page is green. But i can not monitor my server resource because zabbix have not any template for monitoring ESXi-6 with Zabbix_agent or i can not find any template, all i found were. Then I decided to make Zabbix understand the original Check_Mk ESX Agent output. So I wrote a wrapp. Type Template. It accepts connections from a Zabbix server/proxy/agent or the zabbix_get binary and translates them to VMWare API calls. Starting from version 2.2, Zabbix. Install the Zabbix monitoring agent binaries Installing the Zabbix agent is quite simple, you could try the RedHat RPMs I tried with the generic Linux 2.6.x binaries and it worked. The only thing you have to consider, that the ESX console doesn’t come with wget, so you probably will have to SCP the rpm package to your ESX server. Also visit our other article to install zabbix agent on CentOS/RHEL Step 1: Download latest windows zabbix agent source code from zabbix official site or use below link to download zabbix agent 3.0.0.
The current vmware infrastructure is a mix of ESX and ESXi at 3, 3.5 and 4.1 releases. What I would like to achieve is being able to monitore the free space of the datastores through zabbix which is our current monitoring solution.
Is there a way of achieving this?
Matt DelvesMatt Delves
3 Answers
This is trivial with the VMware API and VMware has some example scripts that you can use as a starting point. First, download the vSphere SDK for Perl 4.1 from http://www.vmware.com/support/developer/viperltoolkit/ and install it on your Zabbix server. You'll need this version to support ESX/ESXi 3.0.1 through 4.1.
Then you can use one of the included Perl scripts, such as dsbrowse.pl, as a starting point for making your own custom check in Zabbix. The SDK also includes other scripts which may be useful.
![Download Install Zabbix Agent On Esxi 5 Download Install Zabbix Agent On Esxi 5](/uploads/1/2/6/2/126299269/237252290.png)
How To Install Zabbix Agent On Linux
62k2929 gold badges165165 silver badges249249 bronze badges
StarfishStarfish
If you have a vcenter server, and have upgraded to Zabbix 2.2 - the vmware monitoring is now a feature of Zabbix.
![Download Install Zabbix Agent On Esxi 5 Download Install Zabbix Agent On Esxi 5](/uploads/1/2/6/2/126299269/134739088.jpg)
Read more here in the documentation: https://www.zabbix.com/documentation/2.2/manual/vm_monitoring
Jesper Grann LaursenJesper Grann Laursen
There are a lot of different ways you could go about this. Probably the most painless way would be to use zabbix 1.8.x's ssh login ability to run a simple shell script on the vmware server that would return the result to you. You have to compile zabbix_server with libssh for it to have the capability to do this.
Once you've compiled zabbix server with the ssh capability, just go to the vmware server 'Host' and add an 'Item'. From the drop down list will be 'SSH Agent'. Choose that, have it login to the vmware host, run the simple shell script which returns the space utilization of the datastore.
Another possibility would be to install zabbix_sender (or a homemade equivalent) on the vmware host and have it periodically send the datastore results to zabbix_server.
RomeoRomeo