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
|
2017-05-31 14:42:32 +02:00
|
|
|
|
Perl ZMQ::LibZMQ4 0.01
|
2015-01-22 10:50:32 +01:00
|
|
|
|
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-21 11:13:23 +02:00
|
|
|
|
Centreon-vmware Installation - Debian Wheezy
|
|
|
|
|
============================================
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
========================== ===================== ======================
|
|
|
|
|
libwww-perl 6.04 wheezy
|
|
|
|
|
libxml-libxml-perl 2.0001 wheezy
|
|
|
|
|
libclass-methodmaker-perl 2.18 wheezy
|
|
|
|
|
libcrypt-ssleay-perl 0.58 wheezy
|
|
|
|
|
libsoap-lite-perl 0.714 wheezy
|
|
|
|
|
libuuid-perl 0.02 wheezy
|
|
|
|
|
========================== ===================== ======================
|
|
|
|
|
|
|
|
|
|
Install following dependency:
|
|
|
|
|
::
|
|
|
|
|
|
|
|
|
|
# aptitude install make libxml-libxml-perl libwww-perl libclass-methodmaker-perl libcrypt-ssleay-perl libsoap-lite-perl libuuid-perl
|
|
|
|
|
|
|
|
|
|
Download the Perl SDK VMWare and install it:
|
|
|
|
|
::
|
|
|
|
|
|
|
|
|
|
# tar zxf VMware-vSphere-Perl-SDK-6.0.0-2503617.x86_64.tar.gz && cd vmware-vsphere-cli-distrib
|
|
|
|
|
# perl Makefile.PL
|
|
|
|
|
# make && make install
|
|
|
|
|
|
|
|
|
|
Requirements
|
|
|
|
|
`````````````
|
|
|
|
|
|
|
|
|
|
Following prerequisites are mandatory for « centreon_vmware »:
|
|
|
|
|
|
|
|
|
|
* « perl-centreon-base »: module since Centreon 2.5
|
|
|
|
|
* « centreon-plugins-base »: the client and some dependencies
|
|
|
|
|
* « zeromq » and Perl binding
|
|
|
|
|
|
|
|
|
|
Following prerequisites are optional for « centreon_vmware »:
|
|
|
|
|
|
|
|
|
|
* « libtimedate-perl »
|
|
|
|
|
|
|
|
|
|
centreon-vmware Installation with source
|
|
|
|
|
````````````````````````````````````````
|
|
|
|
|
|
|
|
|
|
Install the following package:
|
|
|
|
|
::
|
|
|
|
|
|
|
|
|
|
# aptitude install libtimedate-perl
|
|
|
|
|
|
|
|
|
|
Add the following line in « /etc/apt/sources.list » file:
|
|
|
|
|
::
|
|
|
|
|
|
|
|
|
|
deb http://http.debian.net/debian wheezy-backports main
|
|
|
|
|
|
|
|
|
|
Install « zeromq » dependency:
|
|
|
|
|
::
|
|
|
|
|
|
2017-05-31 14:42:32 +02:00
|
|
|
|
# aptitude install libzmq4-dev gcc
|
|
|
|
|
# wget https://github.com/lestrrat/p5-ZMQ/archive/master.zip
|
|
|
|
|
# unzip master.zip
|
|
|
|
|
# cd p5-ZMQ-master/ZMQ-LibZMQ4/
|
2015-07-21 11:13:23 +02:00
|
|
|
|
# perl Makefile.PL
|
|
|
|
|
# make && make install
|
2017-05-31 14:42:32 +02:00
|
|
|
|
# cd p5-ZMQ-master/ZMQ-Constants/
|
2015-07-21 11:13:23 +02:00
|
|
|
|
# perl Makefile.PL
|
|
|
|
|
# make && make install
|
|
|
|
|
|
|
|
|
|
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/debian/centreon_vmware-init /etc/init.d/centreon_vmware
|
|
|
|
|
# cp contrib/debian/centreon_vmware-default /etc/default/centreon_vmware
|
|
|
|
|
# chmod 775 /etc/init.d/centreon_vmware /usr/bin/centreon_vmware.pl
|
|
|
|
|
|
|
|
|
|
# mkdir -p /usr/share/perl5/centreon/vmware/ /usr/share/perl5/centreon/script/
|
|
|
|
|
# cp centreon/vmware/* /usr/share/perl5/centreon/vmware/
|
|
|
|
|
# cp centreon/script/centreon_vmware.pm /usr/share/perl5/centreon/script/
|
|
|
|
|
|
|
|
|
|
Configure "centreon-vmware" daemon to start at boot:
|
|
|
|
|
::
|
|
|
|
|
|
|
|
|
|
# update-rc.d centreon_vmware defaults
|
|
|
|
|
|
|
|
|
|
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/centreon/
|
|
|
|
|
# cp -R lib/perl/centreon/common /usr/share/perl5/centreon/
|
|
|
|
|
|
|
|
|
|
Install the client and dependency:
|
|
|
|
|
::
|
|
|
|
|
|
|
|
|
|
# git clone http://git.centreon.com/centreon-plugins.git
|
|
|
|
|
# cd centreon-plugins
|
|
|
|
|
# cp -R centreon/plugins /usr/share/perl5/centreon/
|
|
|
|
|
# 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/
|
|
|
|
|
|
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
|
|
|
|
|
======================= ===================== ======================
|
|
|
|
|
|
2015-07-21 11:13:23 +02:00
|
|
|
|
Install following dependency:
|
|
|
|
|
::
|
2015-07-20 13:44:58 +02:00
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
````````````````````````````````````````
|
|
|
|
|
|
2015-07-21 11:13:23 +02:00
|
|
|
|
Download « centreon-vmware » archive, then install:
|
|
|
|
|
::
|
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/
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
2015-07-21 11:13:23 +02:00
|
|
|
|
# mkdir -p /usr/lib/perl5/vendor_perl/5.8.8/centreon/vmware/ /usr/lib/perl5/vendor_perl/5.8.8/centreon/script/
|
2015-07-20 13:44:58 +02:00
|
|
|
|
# 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/
|
|
|
|
|
|
2015-07-21 11:13:23 +02:00
|
|
|
|
Install the client and dependency:
|
2015-07-20 13:44:58 +02:00
|
|
|
|
::
|
|
|
|
|
|
|
|
|
|
# git clone http://git.centreon.com/centreon-plugins.git
|
|
|
|
|
# cd centreon-plugins
|
2015-07-21 11:13:23 +02:00
|
|
|
|
# cp -R centreon/plugins /usr/lib/perl5/vendor_perl/5.8.8/centreon/
|
2015-07-20 13:44:58 +02:00
|
|
|
|
# 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/
|
|
|
|
|
|
2017-11-09 13:45:15 +01:00
|
|
|
|
Centreon-vmware Installation - centos/rhel 6 systems & centos 7
|
2015-07-20 13:44:58 +02:00
|
|
|
|
====================================================
|
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
|
|
|
|
|
2017-11-09 13:45:15 +01:00
|
|
|
|
# yum install centreon-plugin-Virtualization-VMWare-daemon
|
2014-03-19 14:54:15 +01:00
|
|
|
|
|
2015-01-22 10:50:32 +01:00
|
|
|
|
Install the client:
|
|
|
|
|
::
|
|
|
|
|
|
2017-11-09 13:45:15 +01:00
|
|
|
|
# yum install centreon-plugin-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-21 11:13:23 +02:00
|
|
|
|
# mkdir -p /usr/share/perl5/vendor_perl/centreon/vmware/ /usr/share/perl5/vendor_perl/centreon/script/
|
2015-07-20 13:44:58 +02:00
|
|
|
|
# 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-07-21 11:13:23 +02:00
|
|
|
|
Install the client and dependency:
|
2015-01-22 10:50:32 +01:00
|
|
|
|
::
|
|
|
|
|
|
2015-07-20 13:44:58 +02:00
|
|
|
|
# git clone http://git.centreon.com/centreon-plugins.git
|
|
|
|
|
# cd centreon-plugins
|
2015-07-21 11:13:23 +02:00
|
|
|
|
# cp -R centreon/plugins /usr/share/perl5/vendor_perl/centreon/
|
2015-07-20 13:44:58 +02:00
|
|
|
|
# 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/
|