Cómo instalar Centreon

download Cómo instalar Centreon

of 9

Transcript of Cómo instalar Centreon

  • 7/30/2019 Cmo instalar Centreon

    1/9

    Cmo instalar Centreon

    Prerrequisito revisitado: Comprobar si despus de php, bibliotecas de la perla se instalan.

    # yum -y install php-mysql php-pear php-snmp php-posix gd-devel libpng libpng-devel perl-Config-IniFiles perl-Crypt-DES perl-Digest-HMAC perl-Digest-SHA1 perl-GD perl-IO-Socket-INET6 perl-Net-SNMP perl-rrdtool perl-Socket6 php-gd php-xml php-ldap php-mbstring --skip-broken

    # yum -y install sudo make gcc

    # pear channel-update pear.php.net

    # pear install -o -f --alldeps DB DB_DataObjectDB_DataObject_FormBuilder MDB2 Date Numbers_RomanNumbers_Words HTML_Common HTML_QuickFormHTML_QuickForm_advmultiselect HTML_Table Auth_SASL HTTPImage_Canvas Image_Color Image_Graph Image_GraphViz MailMail_Mime Net_SMTP Net_Socket Net_Traceroute Net_PingValidate SOAP Log

    La instalacin de Centreon

    # cd /downloads/# wget http://download.centreon.com/index.php?id=153# tar xvzf centreon-2.2.0.tar.gz# cd centreon-2.2.0

    Antes de continuar una forma de evitar caminos diferentes a los binarios como nagios, ndomod etc.

    # export PATH="$PATH:/usr/local/nagios/bin/"

    # pwd/downloads/centreon-2.2.0

    Iniciar la instalacin con centreon install.sh script ubicado dentro de la carpeta extrada de

    centreon-2.2.0 del paquete.Durante la instalacin automatizada de la ruta por defecto sugerido para RRDs puede mal, afin de comprobar la siguiente ruta:

    /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/RRDs.pm

    Y la de PEAR.php es / usr / share / pear / PEAR.php

    # ./install.sh -i

    ################################################################################ ## Centreon (www.centreon.com) ## Thanks for using Centreon #

  • 7/30/2019 Cmo instalar Centreon

    2/9

    # ## v2.2 ## ## [email protected] ## ## Make sure you have installed and configured #

    # sudo - sed - php - apache - rrdtool - mysql ## ################################################################################------------------------------------------------------------------------Checking all needed binaries------------------------------------------------------------------------rm OKcp OKmv OK/bin/chmod OK/bin/chown OKecho OKmore OKmkdir OKfind OK/bin/grep OK/bin/cat OK/bin/sed OK

    Do you accept GPL license ?[y/n], default to [n]:> y------------------------------------------------------------------------Please choose what you want to install------------------------------------------------------------------------

    Do you want to install : > y Centreon Web Front

    [y/n], default to [n]:

    Do you want to install : Centreon CentCore[y/n], default to [n]:> y

    Do you want to install : Centreon Nagios Plugins[y/n], default to [n]:> y

    Do you want to install : Centreon Snmp Traps process[y/n], default to [n]:

  • 7/30/2019 Cmo instalar Centreon

    3/9

    > y

    ------------------------------------------------------------------------Start CentWeb Installation----------------------------------------------------------

    --------------

    Where is your Centreon directory?default to [/usr/local/centreon]>Where is your Centreon log directorydefault to [/usr/local/centreon/log]>Path /usr/local/centreon/log OK

    Where is your Centreon etc directorydefault to [/etc/centreon]>Path /etc/centreon OK

    Where is your Centreon generation_files directory?default to [/usr/local/centreon]>Path /usr/local/centreon OK

    Where is your Centreon variable library directory?

    default to [/var/lib/centreon]>Path /var/lib/centreon OK

    Where is your CentPlugins Traps binarydefault to [/usr/local/centreon/bin]>Path /usr/local/centreon/bin OK

    Where is the RRD perl module installed [RRDs.pm]default to [/usr/lib/perl5/RRDs.pm]

    >/usr/lib/perl5/RRDs.pm is not a valid file. CRITICAL

    Where is the RRD perl module installed [RRDs.pm]default to [/usr/lib/perl5/RRDs.pm]> /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/RRDs.pmPath /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-mulOK/usr/bin/rrdtool OK

    /bin/mail OK

    Where is PEAR [PEAR.php]

  • 7/30/2019 Cmo instalar Centreon

    4/9

    default to [/usr/share/php/PEAR.php]> /usr/share/pear/PEAR.phpPath /usr/share/pear OK

    Where is installed Nagios ?default to [/usr/local/nagios]

    >Path /usr/local/nagios OK

    Where is your nagios config directorydefault to [/usr/local/nagios/etc]>Path /usr/local/nagios/etc OK

    Where is your Nagios var directory ?default to [/usr/local/nagios/var]>Path /usr/local/nagios/var OK

    Where is your Nagios plugins (libexec) directory ?default to [/usr/local/nagios/libexec]>Path /usr/local/nagios/libexec OK/usr/bin/nagios OK

    Where is your Nagios image directory ?default to [/usr/local/nagios/share/images/logos]

    >Path /usr/local/nagios/share/images/logos OK/usr/bin/nagiostats OKp1_file : /usr/local/nagios/bin/p1.pl OK/usr/bin/php OK/usr/bin/perl OKFinding Apache group : asteriskFinding Apache user : asteriskFinding Nagios user : nagiosFinding Nagios group : nagios/usr/bin/ndomod.o OK

    ------------------------------------------------------------------------Configure Sudo------------------------------------------------------------------------

    Where is sudo configuration filedefault to [/etc/sudoers]>

    /etc/sudoers OKNagios init script OKYour sudo is not configured

  • 7/30/2019 Cmo instalar Centreon

    5/9

    Do you want me to configure your sudo ? (WARNING)[y/n], default to [n]:Please configure your sudo with this example:/usr/local/centreon/examples/centreon.sudo PASSED

    ----------------------------------------------------------

    --------------Configure Apache server------------------------------------------------------------------------Finding Apache Centreon configuration file'/etc/httpd/conf.d/centreon.conf' : OK

    Do you want to update Centreon Apache sub configurationfile ?[y/n], default to [n]:> yBackup Centreon Apache configuration completedCreate '/etc/httpd/conf.d/centreon.conf' OKConfiguring Apache OK

    Do you want to reload your Apache ?[y/n], default to [n]:> yReloading Apache service OKPreparing Centreon temporary filesChange right on /usr/local/centreon/log OK

    Change right on /etc/centreon OKChange right on /usr/local/nagios/share/images/logos OKInstall nagios documentation FAILChange macros for insertBaseConf.sql OKChange macros for php files OKChange right on /usr/local/nagios/etc OKCopy CentWeb in system directoryInstall CentWeb (web front of centreon) OKInstall libraries FAILCopying libinstall FAILChange macros for centreon.cron OK

    Install Centreon cron.d file OKChange macros for archiveDayLog OKChange macros for centAcl.php OKInstall cron directory FAIL

    ------------------------------------------------------------------------Pear Modules------------------------------------------------------------------------

    Check PEAR modulesPEAR 1.4.9 1.4.9 OKDB 1.7.6 1.7.13 OK

  • 7/30/2019 Cmo instalar Centreon

    6/9

    DB_DataObject 1.8.4 1.9.5 OKDB_DataObject_FormBuilder 1.0.0RC4 1.0.1 OKMDB2 2.0.0 2.4.1 OKDate 1.4.6 1.4.7 OKHTML_Common 1.2.2 1.2.5 OKHTML_QuickForm 3.2.5 3.2.12 OK

    HTML_QuickForm_advmultiselect 1.1.0 1.5.1 OKHTML_Table 1.6.1 1.8.3 OKArchive_Tar 1.1 1.3.1 OKAuth_SASL 1.0.1 1.0.4 OKConsole_Getopt 1.2 1.2 OKNet_SMTP 1.2.8 1.5.2 OKNet_Socket 1.0.1 1.0.10 OKNet_Traceroute 0.21 0.21.3 OKNet_Ping 2.4.1 2.4.5 OKValidate 0.6.2 0.8.4 OKXML_RPC 1.4.5 1.5.0 OKSOAP 0.10.1 0.12.0 OKLog 1.9.11 1.12.6 OKAll PEAR modules OK

    ------------------------------------------------------------------------Centreon Post Install------------------------------------------------------------------------Create /usr/local/centreon/www/install/install.conf.php OK

    Create /etc/centreon/instCentWeb.conf OK

    ------------------------------------------------------------------------Start CentStorage Installation------------------------------------------------------------------------

    Where is your Centreon Run Dir directory?default to [/var/run/centreon]>

    Do you want me to create this directory ?[/var/run/centreon][y/n], default to [n]:> yPath /var/run/centreon OK

    Where is your CentStorage binary directorydefault to [/usr/local/centreon/bin]>

    Path /usr/local/centreon/bin OK

    Where is your CentStorage RRD directory

  • 7/30/2019 Cmo instalar Centreon

    7/9

    default to [/var/lib/centreon]>Path /var/lib/centreon OKFinding Nagios group : nagiosFinding Nagios user : nagiosPreparing Centreon temporary files

    /tmp/centreon-setup exists, it will be moved...install www/install/createTablesCentstorage.sql OKCreating Centreon Directory '/var/lib/centreon/status' OKCreating Centreon Directory '/var/lib/centreon/metrics' OKChange macros for centstorage binary OKInstall CentStorage binary OKInstall library for centstorage OKChange right : /var/run/centreon OKChange macros for centstorage init script OK

    Do you want me to install CentStorage init script ?[y/n], default to [n]:> yCentStorage init script installed OK

    Do you want me to install CentStorage run level ?[y/n], default to [n]:> yChange macros for logAnalyser OKInstall logAnalyser OKChange macros for nagiosPerfTrace OK

    Install nagiosPerfTrace OKChange macros for purgeLogs OKInstall purgeLogs OKChange macros for purgeCentstorage OKInstall purgeCentstorage OKChange macros for centreonPurge.sh OKInstall centreonPurge.sh OKChange macros for centstorage.cron OKInstall CentStorage cron OKCreate /etc/centreon/instCentStorage.conf OK

    ------------------------------------------------------------------------Start CentCore Installation------------------------------------------------------------------------

    Where is your CentCore binary directorydefault to [/usr/local/centreon/bin]>Path /usr/local/centreon/bin OK

    /usr/bin/ssh OK/usr/bin/scp OKFinding Nagios group : nagios

  • 7/30/2019 Cmo instalar Centreon

    8/9

    Finding Nagios user : nagiosPreparing Centreon temporary files/tmp/centreon-setup exists, it will be moved...Change CentCore Macro OKCopy CentCore in binary directory OKChange right : /var/run/centreon OK

    Change right : /var/lib/centreon OKReplace CentCore init script Macro OK

    Do you want me to install CentCore init script ?[y/n], default to [n]:> yCentCore init script installed OK

    Do you want me to install CentCore run level ?[y/n], default to [n]:> yCreate /etc/centreon/instCentCore.conf OK

    ------------------------------------------------------------------------Start CentPlugins Installation------------------------------------------------------------------------

    Where is your CentPlugins lib directorydefault to [/var/lib/centreon/centplugins]

    >

    Do you want me to create this directory ?[/var/lib/centreon/centplugins][y/n], default to [n]:> yPath /var/lib/centreon/centplugins OKFinding Nagios user : nagiosFinding Nagios group : nagiosPreparing Centreon temporary files/tmp/centreon-setup exists, it will be moved...

    Change macros for CentPlugins OKInstalling the plugins OKChange right on centreon.conf OKCentPlugins is installed

    ------------------------------------------------------------------------Start CentPlugins Traps Installation------------------------------------------------------------------------

    Where is your SNMP configuration directorydefault to [/etc/snmp]

  • 7/30/2019 Cmo instalar Centreon

    9/9

    >/etc/snmp OK

    Where is your SNMPTT binaries directorydefault to [/usr/local/centreon/bin/]>

    /usr/local/centreon/bin/ OKFinding Nagios group : nagiosFinding Apache user : asteriskPreparing Centreon temporary files/tmp/centreon-setup exists, it will be moved...Change macros for CentPluginsTraps OKInstalling the plugins Trap binaries OKChange macros for snmptrapd.conf OKChange macros for snmptt.ini OKInstall : snmptrapd.conf OKInstall : snmp.conf OKInstall : snmptt.ini OKInstall : snmptt OKInstall : snmpttconvertmib OKCreate /etc/centreon/instCentPlugins.conf OK################################################################################ ## Go to the URL : http://puli.projecty.com/centreon/ ## to finish the setup ## #

    # Report bugs at http://forge.centreon.com ## ## Thanks for using Centreon. ## ----------------------- ## Contact : [email protected] ## http://www.centreon.com ## ################################################################################

    Ahora, Abiertas del navegador y pulsa url : http://192.168.19.26/centreon / install / setup.php

    Nombre de usuario : centreonContrasea : centreon