2013-05-16 17:58:50 +02:00
|
|
|
|
============
|
|
|
|
|
Installation
|
|
|
|
|
============
|
|
|
|
|
|
|
|
|
|
Prerequisites
|
2013-06-21 17:40:00 +02:00
|
|
|
|
=============
|
2013-05-16 17:58:50 +02:00
|
|
|
|
|
|
|
|
|
Software Recommandations
|
|
|
|
|
````````````````````````
|
|
|
|
|
|
2015-07-20 13:44:58 +02:00
|
|
|
|
The "centreon-vmware" connector has been only tested on red-hat 5 and 6 with rpms.
|
|
|
|
|
Installation on other system should be possible.
|
2013-05-16 17:58:50 +02:00
|
|
|
|
|
2015-01-22 10:50:32 +01:00
|
|
|
|
====================== =====================
|
|
|
|
|
Software Version
|
|
|
|
|
====================== =====================
|
|
|
|
|
VMWare SDK Perl 5.1.0-780721
|
|
|
|
|
Perl 5.8
|
2015-07-20 13:44:58 +02:00
|
|
|
|
centreon-vmware 2.0.0
|
|
|
|
|
perl-centreon-base 2.6.0
|
|
|
|
|
centreon-plugins-base 1.11
|
2015-01-22 10:50:32 +01:00
|
|
|
|
ZeroMQ 3.x
|
2015-07-20 13:44:58 +02:00
|
|
|
|
Perl Date::Parse 1.x
|
2015-01-22 10:50:32 +01:00
|
|
|
|
Perl ZMQ::LibZMQ3 1.19
|
|
|
|
|
Perl ZMQ::Constants 1.04
|
|
|
|
|
====================== =====================
|
2013-05-16 17:58:50 +02:00
|
|
|
|
|
2015-07-20 13:44:58 +02:00
|
|
|
|
How to install from sources is explained in the current documentation.
|
2014-05-14 11:48:16 +02:00
|
|
|
|
|
2013-05-16 17:58:50 +02:00
|
|
|
|
Hardware Recommandations
|
|
|
|
|
````````````````````````
|
|
|
|
|
|
2015-01-22 10:50:32 +01:00
|
|
|
|
Hardware prerequisites will depend of check numbers. Minimal used resources are :
|
2013-05-16 17:58:50 +02:00
|
|
|
|
|
|
|
|
|
* RAM : 512 Mo (May slightly increase with the number of checks).
|
|
|
|
|
* CPU : same as poller server.
|
|
|
|
|
|
2015-07-20 13:44:58 +02:00
|
|
|
|
Centreon-vmware Installation - centos/rhel 5 systems
|
|
|
|
|
====================================================
|
2013-05-16 17:58:50 +02:00
|
|
|
|
|
2015-07-20 13:44:58 +02:00
|
|
|
|
SDK Perl VMWare Installation
|
|
|
|
|
````````````````````````````
|
|
|
|
|
|
|
|
|
|
The "centreon-vmware" connector uses SDK Perl VMWare for its operation. So we install it with VMWare recommandation (only tested with version below).
|
|
|
|
|
|
|
|
|
|
======================= ===================== ======================
|
|
|
|
|
Dependency Version Repository
|
|
|
|
|
======================= ===================== ======================
|
|
|
|
|
perl-libwww-perl 5.805 redhat/centos base
|
|
|
|
|
perl-XML-LibXML 1.58 redhat/centos base
|
|
|
|
|
perl-Class-MethodMaker 2.18 ces standard
|
|
|
|
|
perl-Crypt-SSLeay 0.51 redhat/centos base
|
|
|
|
|
perl-SOAP-Lite 0.712 ces standard
|
|
|
|
|
perl-UUID 0.04 ces standard
|
|
|
|
|
perl-VMware-vSphere 5.1.0-780721.1 ces standard
|
|
|
|
|
======================= ===================== ======================
|
|
|
|
|
|
|
|
|
|
Install following dependency::
|
|
|
|
|
|
|
|
|
|
# yum install perl-VMware-vSphere
|
|
|
|
|
|
|
|
|
|
Requirements
|
|
|
|
|
`````````````
|
2013-05-16 17:58:50 +02:00
|
|
|
|
|
2015-07-20 13:44:58 +02:00
|
|
|
|
Following prerequisites are mandatory for « centreon_vmware »:
|
|
|
|
|
|
|
|
|
|
* « perl-centreon-base »: module since Centreon 2.5 (repository ces standard)
|
|
|
|
|
* « centreon-plugins-base »: in repository ces standard
|
|
|
|
|
* « zeromq » and Perl binding: in repository ces standard or EPEL
|
|
|
|
|
|
|
|
|
|
Following prerequisites are optional for « centreon_vmware »:
|
|
|
|
|
|
|
|
|
|
* « perl-TimeDate »: in repository redhat/centos base
|
|
|
|
|
|
|
|
|
|
centreon-vmware Installation with rpm
|
|
|
|
|
`````````````````````````````````````
|
|
|
|
|
|
|
|
|
|
Install the connector:
|
|
|
|
|
::
|
|
|
|
|
|
|
|
|
|
# yum install ces-plugins-Virtualization-VMWare-daemon
|
|
|
|
|
|
|
|
|
|
Install the client:
|
|
|
|
|
::
|
|
|
|
|
|
|
|
|
|
# yum install ces-plugins-Virtualization-VMWare-client
|
|
|
|
|
|
|
|
|
|
centreon-vmware Installation with source
|
|
|
|
|
````````````````````````````````````````
|
|
|
|
|
|
|
|
|
|
Download « centreon-vmware » archive, then install ::
|
|
|
|
|
|
|
|
|
|
# tar zxvf centreon-vmware-2.0.0.tar.gz
|
|
|
|
|
# cd centreon-vmware-2.0.0
|
|
|
|
|
# cp centreon_vmware.pl /usr/bin/
|
|
|
|
|
|
|
|
|
|
# mkdir -p /etc/centreon
|
|
|
|
|
# cp contrib/config/centreon_vmware-conf.pm /etc/centreon/centreon_vmware.pm
|
|
|
|
|
# cp contrib/redhat/centreon_vmware-init /etc/init.d/centreon_vmware
|
|
|
|
|
# cp contrib/redhat/centreon_vmware-sysconfig /etc/sysconfig/centreon_vmware
|
|
|
|
|
# chmod 775 /etc/init.d/centreon_vmware /usr/bin/centreon_vmware.pl
|
|
|
|
|
|
|
|
|
|
# mkdir -p /usr/lib/perl5/vendor_perl/5.8.8/centreon/vmware/
|
|
|
|
|
# cp centreon/vmware/* /usr/lib/perl5/vendor_perl/5.8.8/centreon/vmware/
|
|
|
|
|
# cp centreon/script/centreon_vmware.pm /usr/lib/perl5/vendor_perl/5.8.8/centreon/script/
|
|
|
|
|
|
|
|
|
|
Configure "centreon-vmware" daemon to start at boot:
|
|
|
|
|
::
|
|
|
|
|
|
|
|
|
|
# chkconfig --level 2345 centreon_vmware on
|
|
|
|
|
|
|
|
|
|
Install « perl-centreon-base » dependency:
|
|
|
|
|
::
|
|
|
|
|
|
|
|
|
|
# git clone -b 2.6.x --single-branch https://github.com/centreon/centreon.git centreon
|
|
|
|
|
# cd centreon
|
|
|
|
|
# cp lib/perl/centreon/script.pm /usr/lib/perl5/vendor_perl/5.8.8/centreon/
|
|
|
|
|
# cp -R lib/perl/centreon/common /usr/lib/perl5/vendor_perl/5.8.8/centreon/
|
|
|
|
|
|
|
|
|
|
Install the client:
|
|
|
|
|
::
|
|
|
|
|
|
|
|
|
|
# git clone http://git.centreon.com/centreon-plugins.git
|
|
|
|
|
# cd centreon-plugins
|
|
|
|
|
# mkdir -p /usr/lib/nagios/plugins/centreon/plugins/
|
|
|
|
|
# cp centreon/plugins/* /usr/lib/nagios/plugins/centreon/plugins/
|
|
|
|
|
# mkdir -p /usr/lib/nagios/plugins/apps/vmware/
|
|
|
|
|
# cp -R apps/vmware/* /usr/lib/nagios/plugins/apps/vmware/
|
|
|
|
|
# cp centreon_plugins.pl /usr/lib/nagios/plugins/
|
|
|
|
|
|
|
|
|
|
Centreon-vmware Installation - centos/rhel 6 systems
|
|
|
|
|
====================================================
|
2013-05-16 17:58:50 +02:00
|
|
|
|
|
|
|
|
|
SDK Perl VMWare Installation
|
2014-03-19 14:54:15 +01:00
|
|
|
|
````````````````````````````
|
|
|
|
|
|
2015-07-20 13:44:58 +02:00
|
|
|
|
The "centreon-vmware" connector uses SDK Perl VMWare for its operation. So we install it with VMWare recommendation (only tested with version below).
|
2014-03-19 14:54:15 +01:00
|
|
|
|
|
|
|
|
|
======================= ===================== ======================
|
|
|
|
|
Dependency Version Repository
|
|
|
|
|
======================= ===================== ======================
|
|
|
|
|
perl-libwww-perl 5.833 redhat/centos base
|
|
|
|
|
perl-XML-LibXML 1.70 redhat/centos base
|
|
|
|
|
perl-Class-MethodMaker 2.16 redhat/centos base
|
|
|
|
|
perl-Crypt-SSLeay 0.57 redhat/centos base
|
|
|
|
|
perl-SOAP-Lite 0.710.10 redhat/centos base
|
2015-07-20 13:44:58 +02:00
|
|
|
|
perl-UUID 0.04 ces standard
|
|
|
|
|
perl-VMware-vSphere 5.1.0-780721.1 ces standard
|
2014-03-19 14:54:15 +01:00
|
|
|
|
======================= ===================== ======================
|
|
|
|
|
|
2015-01-22 10:50:32 +01:00
|
|
|
|
Install following dependency:
|
|
|
|
|
::
|
2014-03-19 14:54:15 +01:00
|
|
|
|
|
|
|
|
|
root # yum install perl-VMware-vSphere
|
|
|
|
|
|
|
|
|
|
Requirements
|
2015-07-20 13:44:58 +02:00
|
|
|
|
````````````
|
2014-03-19 14:54:15 +01:00
|
|
|
|
|
2015-07-20 13:44:58 +02:00
|
|
|
|
Following prerequisites are mandatory for « centreon_vmware »:
|
2015-01-22 10:50:32 +01:00
|
|
|
|
|
|
|
|
|
* « perl-centreon-base »: module since Centreon 2.5 (repository ces standard)
|
2015-07-20 13:44:58 +02:00
|
|
|
|
* « centreon-plugins-base »: in repository ces standard
|
2015-01-22 10:50:32 +01:00
|
|
|
|
* « zeromq » and Perl binding: in repository ces standard or EPEL
|
2014-03-19 14:54:15 +01:00
|
|
|
|
|
2015-07-20 13:44:58 +02:00
|
|
|
|
Following prerequisites are optional for « centreon_vmware »:
|
|
|
|
|
|
|
|
|
|
* « perl-TimeDate »: in repository redhat/centos base
|
|
|
|
|
|
|
|
|
|
centreon-vmware Installation with rpm
|
|
|
|
|
`````````````````````````````````````
|
2014-03-19 14:54:15 +01:00
|
|
|
|
|
2015-01-22 10:50:32 +01:00
|
|
|
|
Install the connector:
|
|
|
|
|
::
|
2014-03-19 14:54:15 +01:00
|
|
|
|
|
2015-07-20 13:44:58 +02:00
|
|
|
|
# yum install ces-plugins-Virtualization-VMWare-daemon
|
2014-03-19 14:54:15 +01:00
|
|
|
|
|
2015-01-22 10:50:32 +01:00
|
|
|
|
Install the client:
|
|
|
|
|
::
|
|
|
|
|
|
2015-07-20 13:44:58 +02:00
|
|
|
|
# yum install ces-plugins-Virtualization-VMWare-client
|
2015-01-22 10:50:32 +01:00
|
|
|
|
|
2015-07-20 13:44:58 +02:00
|
|
|
|
centreon-vmware Installation with source
|
|
|
|
|
````````````````````````````````````````
|
2014-03-19 14:54:15 +01:00
|
|
|
|
|
2015-07-20 13:44:58 +02:00
|
|
|
|
Download « centreon-vmware » archive, then install:
|
2015-01-22 10:50:32 +01:00
|
|
|
|
::
|
2014-03-19 14:54:15 +01:00
|
|
|
|
|
2015-07-20 13:44:58 +02:00
|
|
|
|
# tar zxvf centreon-vmware-2.0.0.tar.gz
|
|
|
|
|
# cd centreon-vmware-2.0.0
|
|
|
|
|
# cp centreon_vmware.pl /usr/bin/
|
2014-03-19 14:54:15 +01:00
|
|
|
|
|
2015-07-20 13:44:58 +02:00
|
|
|
|
# mkdir -p /etc/centreon
|
|
|
|
|
# cp contrib/config/centreon_vmware-conf.pm /etc/centreon/centreon_vmware.pm
|
|
|
|
|
# cp contrib/redhat/centreon_vmware-init /etc/init.d/centreon_vmware
|
|
|
|
|
# cp contrib/redhat/centreon_vmware-sysconfig /etc/sysconfig/centreon_vmware
|
|
|
|
|
# chmod 775 /etc/init.d/centreon_vmware /usr/bin/centreon_vmware.pl
|
2014-03-19 14:54:15 +01:00
|
|
|
|
|
2015-07-20 13:44:58 +02:00
|
|
|
|
# mkdir -p /usr/share/perl5/vendor_perl/centreon/vmware/
|
|
|
|
|
# cp centreon/vmware/* /usr/share/perl5/vendor_perl/centreon/vmware/
|
|
|
|
|
# cp centreon/script/centreon_vmware.pm /usr/share/perl5/vendor_perl/centreon/script/
|
2014-03-19 14:54:15 +01:00
|
|
|
|
|
2015-07-20 13:44:58 +02:00
|
|
|
|
Configure "centreon-vmware" daemon to start at boot:
|
2015-01-22 10:50:32 +01:00
|
|
|
|
::
|
2014-03-19 14:54:15 +01:00
|
|
|
|
|
2015-07-20 13:44:58 +02:00
|
|
|
|
# chkconfig --level 2345 centreon_vmware on
|
2013-05-16 17:58:50 +02:00
|
|
|
|
|
2015-07-20 13:44:58 +02:00
|
|
|
|
Install « perl-centreon-base » dependency:
|
|
|
|
|
::
|
|
|
|
|
|
|
|
|
|
# git clone -b 2.6.x --single-branch https://github.com/centreon/centreon.git centreon
|
|
|
|
|
# cd centreon
|
|
|
|
|
# cp lib/perl/centreon/script.pm /usr/share/perl5/vendor_perl/centreon/
|
|
|
|
|
# cp -R lib/perl/centreon/common /usr/share/perl5/vendor_perl/centreon/
|
|
|
|
|
|
2015-01-22 10:50:32 +01:00
|
|
|
|
Install the client:
|
|
|
|
|
::
|
|
|
|
|
|
2015-07-20 13:44:58 +02:00
|
|
|
|
# git clone http://git.centreon.com/centreon-plugins.git
|
|
|
|
|
# cd centreon-plugins
|
|
|
|
|
# mkdir -p /usr/lib/nagios/plugins/centreon/plugins/
|
|
|
|
|
# cp centreon/plugins/* /usr/lib/nagios/plugins/centreon/plugins/
|
|
|
|
|
# mkdir -p /usr/lib/nagios/plugins/apps/vmware/
|
|
|
|
|
# cp -R apps/vmware/* /usr/lib/nagios/plugins/apps/vmware/
|
|
|
|
|
# cp centreon_plugins.pl /usr/lib/nagios/plugins/
|