Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Overview
The VMWare VMware module will connect it to a vSphere server.
- it will detect automatically any new Virtual machines and ESX hypervisors.
- it will collect data from the ESX and Vitual machines.
Configuration
To define a VMWare VMware source module:
- You must declare the VMWare VMware module in the file /etc/shinken/synchronizers/synchronizer-master.cfg.
- Then configure the source in the file /etc/shinken/modules/sync-vmware.cfg
| Info | ||
|---|---|---|
| ||
During the shinken Shinken Enterprise installation process, a VMWare 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 | 1 | 1 - Activate the module 0 - Viewed in the interface, but dondoesn't collect data nor import objects. |
| 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. |
| Info | ||
|---|---|---|
| ||
The default column shows the value that it is used by the module if the Shinken Administror Enterprise Administrator didn't not set it. |
Definition Example
Here there an example of the module definition:
| Code Block |
|---|
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
} |
Automatic templates for Virtual Server based on their OS
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 VMware tools).
Here is the list of the host templates that may be automatically attached to a host detected in an ESX:
- centos
- debian
- debian5
- debian6
- fedora
- linux
- oracle-linux
- redhat
- redhat4
- redhat5
- redhat6
- windows
- windows-datacenter
- windows-enterprise
- windows2000
- windows2003
- windows2008
- windows2008r2
- windows2012
- windows7
- windowsnt
- windowsvista
- windowsxp
Mutilple vSphere
=> Define an addtionnal VMWare additional VMware source module. You can have has may VMWare many VMware source module as you need.
To add an ESX to you your monitoring environementenvironment:
- Duplicate the cfg file
- for exemple, sync-vmware.cfg => sync-vmware-EU.cfg
- for exemple, sync-vmware.cfg => sync-vmware-EU.cfg
- Update parameters inside sync-vmware-EU.cfg pointing to the new ESX
- at minimumleast, you need to change module_name and vcenter parameters
- => module_name sync-vmware_EU
- => vcenter myesx-EU.ovh.com
- at minimumleast, you need to change module_name and vcenter parameters
- Edit the file /etc/shinken/synchronizers/synchronizer-master.cfg
Edit the line sources
sources syncui,cfg-file-shinken,active-dir,sync-vmware,sync-vmware-EU,cfg-file-nagios,discovery
Restart the synchronizer
- => service shinken restart synchronizer
| Panel | ||
|---|---|---|
| ||
|