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
|
2019-02-05 17:59:41 +01:00
|
|
|
|
ZeroMQ 4.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.
|
|
|
|
|
|
2019-02-05 17:59:41 +01:00
|
|
|
|
Centreon-vmware Installation - Debian Stretch
|
|
|
|
|
=============================================
|
2015-07-21 11:13:23 +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
|
|
|
|
|
========================== ===================== ======================
|
2019-02-05 17:59:41 +01:00
|
|
|
|
libwww-perl 6.15 stretch
|
|
|
|
|
libxml-libxml-perl 2.0128 stretch
|
|
|
|
|
libclass-methodmaker-perl 2.24 stretch
|
|
|
|
|
libcrypt-ssleay-perl 0.73 stretch
|
|
|
|
|
libsoap-lite-perl 1.20 stretch
|
|
|
|
|
libuuid-perl 0.27 stretch
|
2015-07-21 11:13:23 +02:00
|
|
|
|
========================== ===================== ======================
|
|
|
|
|
|
|
|
|
|
Install following dependency:
|
|
|
|
|
::
|
|
|
|
|
|
2019-02-05 17:59:41 +01:00
|
|
|
|
# apt-get install make libxml-libxml-perl libwww-perl libclass-methodmaker-perl libcrypt-ssleay-perl libsoap-lite-perl libuuid-perl libtext-template-perl
|
2015-07-21 11:13:23 +02:00
|
|
|
|
|
|
|
|
|
Download the Perl SDK VMWare and install it:
|
|
|
|
|
::
|
|
|
|
|
|
2019-02-05 17:59:41 +01:00
|
|
|
|
# tar zxf VMware-vSphere-Perl-SDK-6.7.0-8156551.x86_64.tar.gz && cd vmware-vsphere-cli-distrib
|
2015-07-21 11:13:23 +02:00
|
|
|
|
# perl Makefile.PL
|
|
|
|
|
# make && make install
|
|
|
|
|
|
|
|
|
|
Requirements
|
|
|
|
|
`````````````
|
|
|
|
|
|
|
|
|
|
Following prerequisites are mandatory for « centreon_vmware »:
|
|
|
|
|
|
|
|
|
|
* « zeromq » and Perl binding
|
|
|
|
|
|
|
|
|
|
centreon-vmware Installation with source
|
|
|
|
|
````````````````````````````````````````
|
|
|
|
|
|
|
|
|
|
Install the following package:
|
|
|
|
|
::
|
|
|
|
|
|
2019-02-05 17:59:41 +01:00
|
|
|
|
# aptitude install libzmq5
|
2015-07-21 11:13:23 +02:00
|
|
|
|
|
2019-02-05 17:59:41 +01:00
|
|
|
|
Install « zeromq » perl binding dependency (need to patch the installer: https://rt.cpan.org/Public/Bug/Display.html?id=122932):
|
2015-07-21 11:13:23 +02:00
|
|
|
|
::
|
|
|
|
|
|
2019-02-05 17:59:41 +01:00
|
|
|
|
# apt-get install gcc libmodule-install-perl libzmq3-dev
|
2017-05-31 14:42:32 +02:00
|
|
|
|
# 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:
|
|
|
|
|
::
|
|
|
|
|
|
2019-02-05 17:59:41 +01:00
|
|
|
|
# tar zxvf centreon-vmware-3.0.0.tar.gz
|
|
|
|
|
# cd centreon-vmware-3.0.0
|
2015-07-21 11:13:23 +02:00
|
|
|
|
# cp centreon_vmware.pl /usr/bin/
|
|
|
|
|
|
2019-02-05 17:59:41 +01:00
|
|
|
|
# mkdir -p /etc/centreon /var/log/centreon
|
|
|
|
|
# useradd centreon
|
|
|
|
|
# chown centreon:centreon /var/log/centreon
|
2015-07-21 11:13:23 +02:00
|
|
|
|
# cp contrib/config/centreon_vmware-conf.pm /etc/centreon/centreon_vmware.pm
|
2019-02-05 17:59:41 +01:00
|
|
|
|
# cp contrib/debian/centreon_vmware-systemd /lib/systemd/system/centreon_vmware.service
|
|
|
|
|
# chmod 664 /lib/systemd/system/centreon_vmware.service
|
2015-07-21 11:13:23 +02:00
|
|
|
|
|
|
|
|
|
# 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:
|
|
|
|
|
::
|
|
|
|
|
|
2019-02-05 17:59:41 +01:00
|
|
|
|
# systemctl enable centreon_vmware.service
|
2015-07-21 11:13:23 +02:00
|
|
|
|
|
|
|
|
|
Install the client and dependency:
|
|
|
|
|
::
|
|
|
|
|
|
2019-02-05 17:59:41 +01:00
|
|
|
|
# apt-get install libtimedate-perl
|
2015-07-21 11:13:23 +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/
|
|
|
|
|
|
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 »:
|
|
|
|
|
|
|
|
|
|
* « 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
|
|
|
|
|
2019-02-05 15:31:00 +01:00
|
|
|
|
# tar zxvf centreon-vmware-3.0.0.tar.gz
|
|
|
|
|
# cd centreon-vmware-3.0.0
|
2015-07-20 13:44:58 +02:00
|
|
|
|
# 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
|
|
|
|
|
|
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
|
|
|
|
|
# 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:
|
|
|
|
|
::
|
|
|
|
|
|
2019-02-05 15:31:00 +01:00
|
|
|
|
# yum install centreon-plugin-Virtualization-Vmware2-Connector-Plugin
|
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
|
|
|
|
|
2019-02-05 15:31:00 +01:00
|
|
|
|
# tar zxvf centreon-vmware-3.0.0.tar.gz
|
|
|
|
|
# cd centreon-vmware-3.0.0
|
2015-07-20 13:44:58 +02:00
|
|
|
|
# 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
|
|
|
|
|
|
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
|
|
|
|
|
# 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/
|