Skip to main content

VMware vCenter v4

Prerequisites​

Centreon Plugin​

Install this plugin on each needed poller:

yum install centreon-plugin-Virtualization-Vmware2-Connector-Plugin

Centreon VMware daemon​

Installation​

Install this daemon on each needed poller:

yum install centreon-plugin-Virtualization-VMWare-daemon

Configuration​

To configure the access to your infrastructure, edit the "/etc/centreon/centreon_vmware.pm" configuration file:

%centreon_vmware_config = (
vsphere_server => {
default => {
url => 'https://<ip_hostname>/sdk',
username => '<username>',
password => '<password>'
}
}
);

1;

Make sure to replace variables with needed information:

  • ip_hostname: IP address or hostname of the vCenter or ESX (if standalone),
  • username: username with at least "read only" access to the vCenter or ESX,
  • password: password of the username.

You can configure multiple vCenter / vSphere / ESX connections using this structure:

%centreon_vmware_config = (
vsphere_server => {
default => {
url => 'https://<ip_hostname>/sdk',
username => '<username>',
password => '<password>'
},
'my_other_vcenter' => {
url => 'https://<ip_hostname>/sdk',
username => '<username>',
password => '<password>'
},
},
port => 5700
);

1;

Each entry is called a container. You need at least a "default" entry.

You can also define the "port" attribute to change listening port.

Then start the daemon and make sure it is configured to start at server boot:

systemctl start centreon_vmware
systemctl enable centreon_vmware

Make sure that the daemon configuration works fine by looking for errors in "/var/log/centreon/centreon_vmware.log".

Centreon configuration​

Create a host using the appropriate template​

Go to Configuration > Hosts and click Add. Then, fill the form as shown by the following table:

Fieldvalue
Host nameName of the host
AliasHost description
IPHost IP Address
Monitored fromMonitoring Poller to use
Host Multiple TemplatesVirt-VMWare2-vCenter-4-custom

Click the Save button.

Host macro configuration​

The following macros must be configured on host:

MacroDescriptionDefault valueExample
CENTREONVMWAREHOSTHost of centreon_vmware daemonlocalhost10.1.2.3
CENTREONVMWAREPORTPort of centreon_vmware daemon57005701
CENTREONVMWARECONTAINERDefined container to usedefaultsrv-vcenter