The VMWare module
To define a VMWare source module:
During the shinken installation process, a VMWare module called sync-vmware is defined but set to inactive. |
Here is the list of parameters required by the module to be defined the in cfg file.
| Property | Default (if not set) | Description |
|---|---|---|
| enable | 0 | 1 - Activate the module 0 - Viewed in the interface, but don't collect data. |
| 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 that it is used by the module if the Shinken Administror didn't not set. |
Here there an example of the module definition:
define module{
enable 1
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:
=> Define an addtionnal VMWare source module. You can have has may VMWare source module as you need.
To add an ESX to you monitoring environement:
Edit the line sources
sources syncui,cfg-file-shinken,active-dir,sync-vmware,sync-vmware-EU,cfg-file-nagios,discovery
Restart the synchronizer