During the Shinken Enterprise installation process, a VMware module called sync-vmware is defined but set to inactive. |
| Property | Example | Description |
|---|---|---|
source_name | sync-vmware | Name of this source. Must be unique. |
| order | 3 | Order in the merge algorithm of this source data. Look in the Synchronizer page for more information about it. |
| import_interval | 5 | Launch this source every import_inverval minutes. |
| modules | sync-vmware | The module to launch |
| enabled | 0 | 1 - Activate the source 0 - Viewed in the interface, but doesn't collect data nor import objects. |
| description | This source is about loading hosts from VMware vSphere | A description to show on the UI. |
Here is the list of parameters required by the module to be updated the in cfg file.
| Property | Default (if not set) | Description |
|---|---|---|
| vcenter | vcenter.fqdn.com | FQDN (Fully Qualified Domain Name) or IP Address of the vSphere server. |
| user | DOMAIN\user | User used to connect to the vSphere server. Must be a read-only account. |
| password | PASSWORD | Password for the user access. |
| esx_templates | esx | Host template to set on the detected esx or esxi hosts. |
| vm_templates | vmware-vm | Host template to set on the detected virtual servers. |
The default column shows the value used by the module if the Shinken Enterprise Administrator didn't set it. |
Here there an example of the module definition:
define module{
module_name sync-vmware
module_type sync-vmware
check_esx_path /var/lib/shinken/libexec/synchronizer/esx_discovery.pl
vcenter myesx.ovh.com
user admin
password XYZ
esx_templates esx
vm_templates vmware-vm
} |
Some host templates are automatically added to the detected Virtual Server, based on the value set on the vSphere data
(VM definition and/or the VMware tools).
Here is the list of the host templates that may be automatically attached to a host detected in an ESX:
As a source/module can talk to one vSphere server only, in order to take data from numerous vSphere servers, you must define as many source/module as your vSpheres instances.
To link your monitoring solution to a new vSphere, you must:
Edit the line sources:
sources syncui,cfg-file-shinken,active-dir,sync-vmware,sync-vmware-EU,cfg-file-nagios,discovery
Then you can restart the synchronizer