| 1 |
============ |
| 2 |
Installation |
| 3 |
============ |
| 4 |
|
| 5 |
Prerequisites |
| 6 |
============= |
| 7 |
|
| 8 |
Software Recommandations |
| 9 |
```````````````````````` |
| 10 |
|
| 11 |
The "centreon-vmware" connector has been only tested on red-hat 5 and 6 with rpms. |
| 12 |
Installation on other system should be possible. |
| 13 |
|
| 14 |
====================== ===================== |
| 15 |
Software Version |
| 16 |
====================== ===================== |
| 17 |
VMWare SDK Perl 5.1.0-780721 |
| 18 |
Perl 5.8 |
| 19 |
centreon-vmware 2.0.0 |
| 20 |
perl-centreon-base 2.6.0 |
| 21 |
centreon-plugins-base 1.11 |
| 22 |
ZeroMQ 4.x |
| 23 |
Perl Date::Parse 1.x |
| 24 |
Perl ZMQ::LibZMQ4 0.01 |
| 25 |
Perl ZMQ::Constants 1.04 |
| 26 |
====================== ===================== |
| 27 |
|
| 28 |
How to install from sources is explained in the current documentation. |
| 29 |
|
| 30 |
Hardware Recommandations |
| 31 |
```````````````````````` |
| 32 |
|
| 33 |
Hardware prerequisites will depend of check numbers. Minimal used resources are : |
| 34 |
|
| 35 |
* RAM : 512 Mo (May slightly increase with the number of checks). |
| 36 |
* CPU : same as poller server. |
| 37 |
|
| 38 |
Centreon-vmware Installation - Debian Stretch |
| 39 |
============================================= |
| 40 |
|
| 41 |
SDK Perl VMWare Installation |
| 42 |
```````````````````````````` |
| 43 |
|
| 44 |
The "centreon-vmware" connector uses SDK Perl VMWare for its operation. So we install it with VMWare recommandation (only tested with version below). |
| 45 |
|
| 46 |
========================== ===================== ====================== |
| 47 |
Dependency Version Repository |
| 48 |
========================== ===================== ====================== |
| 49 |
libwww-perl 6.15 stretch |
| 50 |
libxml-libxml-perl 2.0128 stretch |
| 51 |
libclass-methodmaker-perl 2.24 stretch |
| 52 |
libcrypt-ssleay-perl 0.73 stretch |
| 53 |
libsoap-lite-perl 1.20 stretch |
| 54 |
libuuid-perl 0.27 stretch |
| 55 |
========================== ===================== ====================== |
| 56 |
|
| 57 |
Install following dependency: |
| 58 |
:: |
| 59 |
|
| 60 |
# apt-get install make libxml-libxml-perl libwww-perl libclass-methodmaker-perl libcrypt-ssleay-perl libsoap-lite-perl libuuid-perl libtext-template-perl |
| 61 |
|
| 62 |
Download the Perl SDK VMWare and install it: |
| 63 |
:: |
| 64 |
|
| 65 |
# tar zxf VMware-vSphere-Perl-SDK-6.7.0-8156551.x86_64.tar.gz && cd vmware-vsphere-cli-distrib |
| 66 |
# perl Makefile.PL |
| 67 |
# make && make install |
| 68 |
|
| 69 |
Requirements |
| 70 |
````````````` |
| 71 |
|
| 72 |
Following prerequisites are mandatory for « centreon_vmware »: |
| 73 |
|
| 74 |
* « zeromq » and Perl binding |
| 75 |
|
| 76 |
centreon-vmware Installation with source |
| 77 |
```````````````````````````````````````` |
| 78 |
|
| 79 |
Install the following package: |
| 80 |
:: |
| 81 |
|
| 82 |
# aptitude install libzmq5 |
| 83 |
|
| 84 |
Install « zeromq » perl binding dependency (need to patch the installer: https://rt.cpan.org/Public/Bug/Display.html?id=122932): |
| 85 |
:: |
| 86 |
|
| 87 |
# apt-get install gcc libmodule-install-perl libzmq3-dev |
| 88 |
# wget https://github.com/lestrrat/p5-ZMQ/archive/master.zip |
| 89 |
# unzip master.zip |
| 90 |
# cd p5-ZMQ-master/ZMQ-LibZMQ4/ |
| 91 |
# perl Makefile.PL |
| 92 |
# make && make install |
| 93 |
# cd p5-ZMQ-master/ZMQ-Constants/ |
| 94 |
# perl Makefile.PL |
| 95 |
# make && make install |
| 96 |
|
| 97 |
Download « centreon-vmware » archive, then install: |
| 98 |
:: |
| 99 |
|
| 100 |
# tar zxvf centreon-vmware-3.0.0.tar.gz |
| 101 |
# cd centreon-vmware-3.0.0 |
| 102 |
# cp centreon_vmware.pl /usr/bin/ |
| 103 |
|
| 104 |
# mkdir -p /etc/centreon /var/log/centreon |
| 105 |
# useradd centreon |
| 106 |
# chown centreon:centreon /var/log/centreon |
| 107 |
# cp contrib/config/centreon_vmware-conf.pm /etc/centreon/centreon_vmware.pm |
| 108 |
# cp contrib/debian/centreon_vmware-systemd /lib/systemd/system/centreon_vmware.service |
| 109 |
# chmod 664 /lib/systemd/system/centreon_vmware.service |
| 110 |
|
| 111 |
# mkdir -p /usr/share/perl5/centreon/vmware/ /usr/share/perl5/centreon/script/ |
| 112 |
# cp centreon/vmware/* /usr/share/perl5/centreon/vmware/ |
| 113 |
# cp centreon/script/centreon_vmware.pm /usr/share/perl5/centreon/script/ |
| 114 |
|
| 115 |
Configure "centreon-vmware" daemon to start at boot: |
| 116 |
:: |
| 117 |
|
| 118 |
# systemctl enable centreon_vmware.service |
| 119 |
|
| 120 |
Install the client and dependency: |
| 121 |
:: |
| 122 |
|
| 123 |
# apt-get install libtimedate-perl |
| 124 |
# git clone http://git.centreon.com/centreon-plugins.git |
| 125 |
# cd centreon-plugins |
| 126 |
# mkdir -p /usr/lib/nagios/plugins/centreon/plugins/ |
| 127 |
# cp centreon/plugins/* /usr/lib/nagios/plugins/centreon/plugins/ |
| 128 |
# mkdir -p /usr/lib/nagios/plugins/apps/vmware/ |
| 129 |
# cp -R apps/vmware/* /usr/lib/nagios/plugins/apps/vmware/ |
| 130 |
# cp centreon_plugins.pl /usr/lib/nagios/plugins/ |
| 131 |
|
| 132 |
Centreon-vmware Installation - centos/rhel 5 systems |
| 133 |
==================================================== |
| 134 |
|
| 135 |
SDK Perl VMWare Installation |
| 136 |
```````````````````````````` |
| 137 |
|
| 138 |
The "centreon-vmware" connector uses SDK Perl VMWare for its operation. So we install it with VMWare recommandation (only tested with version below). |
| 139 |
|
| 140 |
======================= ===================== ====================== |
| 141 |
Dependency Version Repository |
| 142 |
======================= ===================== ====================== |
| 143 |
perl-libwww-perl 5.805 redhat/centos base |
| 144 |
perl-XML-LibXML 1.58 redhat/centos base |
| 145 |
perl-Class-MethodMaker 2.18 ces standard |
| 146 |
perl-Crypt-SSLeay 0.51 redhat/centos base |
| 147 |
perl-SOAP-Lite 0.712 ces standard |
| 148 |
perl-UUID 0.04 ces standard |
| 149 |
perl-VMware-vSphere 5.1.0-780721.1 ces standard |
| 150 |
======================= ===================== ====================== |
| 151 |
|
| 152 |
Install following dependency: |
| 153 |
:: |
| 154 |
|
| 155 |
# yum install perl-VMware-vSphere |
| 156 |
|
| 157 |
Requirements |
| 158 |
````````````` |
| 159 |
|
| 160 |
Following prerequisites are mandatory for « centreon_vmware »: |
| 161 |
|
| 162 |
* « centreon-plugins-base »: in repository ces standard |
| 163 |
* « zeromq » and Perl binding: in repository ces standard or EPEL |
| 164 |
|
| 165 |
Following prerequisites are optional for « centreon_vmware »: |
| 166 |
|
| 167 |
* « perl-TimeDate »: in repository redhat/centos base |
| 168 |
|
| 169 |
centreon-vmware Installation with rpm |
| 170 |
````````````````````````````````````` |
| 171 |
|
| 172 |
Install the connector: |
| 173 |
:: |
| 174 |
|
| 175 |
# yum install ces-plugins-Virtualization-VMWare-daemon |
| 176 |
|
| 177 |
Install the client: |
| 178 |
:: |
| 179 |
|
| 180 |
# yum install ces-plugins-Virtualization-VMWare-client |
| 181 |
|
| 182 |
centreon-vmware Installation with source |
| 183 |
```````````````````````````````````````` |
| 184 |
|
| 185 |
Download « centreon-vmware » archive, then install: |
| 186 |
:: |
| 187 |
|
| 188 |
# tar zxvf centreon-vmware-3.0.0.tar.gz |
| 189 |
# cd centreon-vmware-3.0.0 |
| 190 |
# cp centreon_vmware.pl /usr/bin/ |
| 191 |
|
| 192 |
# mkdir -p /etc/centreon |
| 193 |
# cp contrib/config/centreon_vmware-conf.pm /etc/centreon/centreon_vmware.pm |
| 194 |
# cp contrib/redhat/centreon_vmware-init /etc/init.d/centreon_vmware |
| 195 |
# cp contrib/redhat/centreon_vmware-sysconfig /etc/sysconfig/centreon_vmware |
| 196 |
# chmod 775 /etc/init.d/centreon_vmware /usr/bin/centreon_vmware.pl |
| 197 |
|
| 198 |
# mkdir -p /usr/lib/perl5/vendor_perl/5.8.8/centreon/vmware/ /usr/lib/perl5/vendor_perl/5.8.8/centreon/script/ |
| 199 |
# cp centreon/vmware/* /usr/lib/perl5/vendor_perl/5.8.8/centreon/vmware/ |
| 200 |
# cp centreon/script/centreon_vmware.pm /usr/lib/perl5/vendor_perl/5.8.8/centreon/script/ |
| 201 |
|
| 202 |
Configure "centreon-vmware" daemon to start at boot: |
| 203 |
:: |
| 204 |
|
| 205 |
# chkconfig --level 2345 centreon_vmware on |
| 206 |
|
| 207 |
Install the client and dependency: |
| 208 |
:: |
| 209 |
|
| 210 |
# git clone http://git.centreon.com/centreon-plugins.git |
| 211 |
# cd centreon-plugins |
| 212 |
# mkdir -p /usr/lib/nagios/plugins/centreon/plugins/ |
| 213 |
# cp centreon/plugins/* /usr/lib/nagios/plugins/centreon/plugins/ |
| 214 |
# mkdir -p /usr/lib/nagios/plugins/apps/vmware/ |
| 215 |
# cp -R apps/vmware/* /usr/lib/nagios/plugins/apps/vmware/ |
| 216 |
# cp centreon_plugins.pl /usr/lib/nagios/plugins/ |
| 217 |
|
| 218 |
Centreon-vmware Installation - centos/rhel 6 systems & centos 7 |
| 219 |
==================================================== |
| 220 |
|
| 221 |
SDK Perl VMWare Installation |
| 222 |
```````````````````````````` |
| 223 |
|
| 224 |
The "centreon-vmware" connector uses SDK Perl VMWare for its operation. So we install it with VMWare recommendation (only tested with version below). |
| 225 |
|
| 226 |
======================= ===================== ====================== |
| 227 |
Dependency Version Repository |
| 228 |
======================= ===================== ====================== |
| 229 |
perl-libwww-perl 5.833 redhat/centos base |
| 230 |
perl-XML-LibXML 1.70 redhat/centos base |
| 231 |
perl-Class-MethodMaker 2.16 redhat/centos base |
| 232 |
perl-Crypt-SSLeay 0.57 redhat/centos base |
| 233 |
perl-SOAP-Lite 0.710.10 redhat/centos base |
| 234 |
perl-UUID 0.04 ces standard |
| 235 |
perl-VMware-vSphere 5.1.0-780721.1 ces standard |
| 236 |
======================= ===================== ====================== |
| 237 |
|
| 238 |
Install following dependency: |
| 239 |
:: |
| 240 |
|
| 241 |
root # yum install perl-VMware-vSphere |
| 242 |
|
| 243 |
Requirements |
| 244 |
```````````` |
| 245 |
|
| 246 |
Following prerequisites are mandatory for « centreon_vmware »: |
| 247 |
|
| 248 |
* « perl-centreon-base »: module since Centreon 2.5 (repository ces standard) |
| 249 |
* « centreon-plugins-base »: in repository ces standard |
| 250 |
* « zeromq » and Perl binding: in repository ces standard or EPEL |
| 251 |
|
| 252 |
Following prerequisites are optional for « centreon_vmware »: |
| 253 |
|
| 254 |
* « perl-TimeDate »: in repository redhat/centos base |
| 255 |
|
| 256 |
centreon-vmware Installation with rpm |
| 257 |
````````````````````````````````````` |
| 258 |
|
| 259 |
Install the connector: |
| 260 |
:: |
| 261 |
|
| 262 |
# yum install centreon-plugin-Virtualization-VMWare-daemon |
| 263 |
|
| 264 |
Install the client: |
| 265 |
:: |
| 266 |
|
| 267 |
# yum install centreon-plugin-Virtualization-Vmware2-Connector-Plugin |
| 268 |
|
| 269 |
centreon-vmware Installation with source |
| 270 |
```````````````````````````````````````` |
| 271 |
|
| 272 |
Download « centreon-vmware » archive, then install: |
| 273 |
:: |
| 274 |
|
| 275 |
# tar zxvf centreon-vmware-3.0.0.tar.gz |
| 276 |
# cd centreon-vmware-3.0.0 |
| 277 |
# cp centreon_vmware.pl /usr/bin/ |
| 278 |
|
| 279 |
# mkdir -p /etc/centreon |
| 280 |
# cp contrib/config/centreon_vmware-conf.pm /etc/centreon/centreon_vmware.pm |
| 281 |
# cp contrib/redhat/centreon_vmware-init /etc/init.d/centreon_vmware |
| 282 |
# cp contrib/redhat/centreon_vmware-sysconfig /etc/sysconfig/centreon_vmware |
| 283 |
# chmod 775 /etc/init.d/centreon_vmware /usr/bin/centreon_vmware.pl |
| 284 |
|
| 285 |
# mkdir -p /usr/share/perl5/vendor_perl/centreon/vmware/ /usr/share/perl5/vendor_perl/centreon/script/ |
| 286 |
# cp centreon/vmware/* /usr/share/perl5/vendor_perl/centreon/vmware/ |
| 287 |
# cp centreon/script/centreon_vmware.pm /usr/share/perl5/vendor_perl/centreon/script/ |
| 288 |
|
| 289 |
Configure "centreon-vmware" daemon to start at boot: |
| 290 |
:: |
| 291 |
|
| 292 |
# chkconfig --level 2345 centreon_vmware on |
| 293 |
|
| 294 |
Install the client and dependency: |
| 295 |
:: |
| 296 |
|
| 297 |
# git clone http://git.centreon.com/centreon-plugins.git |
| 298 |
# cd centreon-plugins |
| 299 |
# mkdir -p /usr/lib/nagios/plugins/centreon/plugins/ |
| 300 |
# cp centreon/plugins/* /usr/lib/nagios/plugins/centreon/plugins/ |
| 301 |
# mkdir -p /usr/lib/nagios/plugins/apps/vmware/ |
| 302 |
# cp -R apps/vmware/* /usr/lib/nagios/plugins/apps/vmware/ |
| 303 |
# cp centreon_plugins.pl /usr/lib/nagios/plugins/ |