Zabbix - Monitoring VSphere Server

I found the best way to monitor a vsphere host is the following.

First create a readonly user on vsphere.


  • Logon to vshere with root or another administrator account.
  • Click on Inventory
  • Click on Local Users & Group
  • Right click and Select Add
  • Enter the Login:  User Name: and Password Credentails.
  • Once the user has been created click on the Permissions tab.
  • Right click and select Add Permission
  • Click the Add button and select your newly created user.
  • click on Ok to save.
  • Test the read only account by logging out and using the credentials to log onto vsphere.
Next we need the sphere UUID to ensure that our zabbix template works as expected.

Access the following url
  • https://{vsphere_server_ip}/mob/?moid=ha-host&doPath=hardware.systemInfo
  • enter the readonly credentais when prompted.
  • copy the uuid string from within the displayed data.
Within Zabbix - go to Configuration->Hosts and click on Create Host
  • Under the host name paste the copied uuid from earlier.
  • Under Visible name, enter something useful.
  • Enter the ip address under Agent Interfaces
  • Then click on Templates and select Template Virt Vmware and Template Virt Vmware Hypervisor
  • Click on Macros and add the following
  • {$URL}    enter  https://{vsphere_server_ip}/sdk
  • {$USERNAME}  enter the readonly sphere username
  • {$PASSWORD}  enter the readonly sphere password 
  • Click on Add to save the host.
  • Wait a few minutes and you should start receiving data, which you can then graph etc.  

Comments

Popular posts from this blog

DSTV Now on Amazon Fire TV Stick

Update Openvas Feeds

Zabbix - adding apt update checks