Announcement

Collapse
No announcement yet.

Script d'installation des prérequis

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Script d'installation des prérequis

    Bonjour à tous,

    Le script d'installation des prérequis pour Centreon est maintenant disponible sur le SVN.

    La dernière version (du 05/03/2010 ) dispose de ces fonctionnalités :

    - version de Centreon : 2.1.5
    - version de Nagios : 3.2
    - version des plugins de Nagios : 1.4.14
    - version de NDO : 1.4b9

    - prise en charge de Debian Etch et Lenny
    - prise en charge de Fedora 9
    - prise en charge de CentOS 5
    - prise en charge des proxy (suite aux modifications apportés par Kimiz),
    - installation automatisée des paquets, de nagios et ses plugins, de ndo et de Centreon via les templates.

    Pour information, l'installation sur Fedora est beaucoup plus longue que sur Debian (du simple au double, minimum ...), cela est en partie dû au gestionnaire de paquet yum qui est beaucoup plus long que aptitude ... Centreon ne fonctionne pas avec SeLinux, il faut donc le désactiver ce qui implique un redémarrage du serveur, cela prend du temps ...

    Toute la configuration se fait via le fichier 00-install.sh.

    Il est conseillé d'utiliser un serveur vierge.

    Merci à ceux qui m'ont aidé (WAtt, Kmizole, Aways, Dam17 ...)

    Si vous avez des remarques, suggestions, critiques ... N'hésitez pas, cela ne pourra qu'améliorer le script.

    Ce script est bien entendu libre, vous pouvez vous faire plaisir :-).

    Je suis débutant, si vous voyez des erreurs ou incohérences merci de me le signaler :-)

    Concernant son utilisation merci de vous reporter au wiki :
    http://en.doc.centreon.com/Setup:Ins...tsForCentreon2

    Vous pouvez le télécharger à ces adresses :

    SVN de Centreon : http://svn.centreon.com/branches/cen...nstall-2.0.tar

    SVN de M2ENV : http://svn.m2env.org/branches/Script...nstall-2.0.tar (utilisateur : anonymous motdepasse : anonymous)

    Ce script est maintenant maintenu par l'équipe de M2ENV. C'est un projet qui a pour ambition de regrouper les informations d'OCS Inventory et de Centreon. Pour en savoir plus http://blog.m2env.org )

    Merci :-)
    Last edited by cams; 24th March 2010, 10:55. Reason: MAJ 2.0.2
    CaMs

    Debian Etch - Nagios 3 - Centreon 2
    Hosts : 125 / Services : 550

    Script d'installation : http://forum.centreon.com/showthread.php?t=6140
    Documentation : http://forum.centreon.com/showthread.php?t=6466

  • #2
    Hello,

    I am following your instructions on the install-script, however it does not seem to function properly on my machine?

    I am using: Ubuntu 7.10

    I followed your steps, gave +x to the scripts and ran ./00-install.sh

    Here is the output:

    [email protected]:~/Desktop/prerequis-debian# ./00-install.sh

    Do you want to install : the requirements (with apt-get)
    [y/n], default to [n]:
    > y

    Do you want to install : nagios-3.0.3
    [y/n], default to [n]:
    > y

    Do you want to install : nagios-plugins-1.4.12
    [y/n], default to [n]:
    > y

    Do you want to install : ndoutils-1.4b7
    [y/n], default to [n]:
    > y

    Do you want to install : centreon-2.0-b4
    / ! \ Fonctionnement avec des templates / ! \
    [y/n], default to [n]:
    > y

    Where do you want download the files ?
    default to [/usr/local/src]
    >
    /usr/local/src

    Where do you want install nagios-3.0.3 ?
    default to [/usr/local/nagios]
    >

    Do you want me to create this directory ? [/usr/local/nagios]
    [y/n], default to [n]:
    > y
    /usr/local/nagios
    Creation of nagcmd group
    Creation of nagios user
    Choose the password to nagios user :
    Enter new UNIX password:
    Retype new UNIX password:
    passwd: password updated successfully

    Where is installed Nagios ?
    default to [/usr/local/nagios]
    >
    Path /usr/local/nagios OK
    Could you tape the root password of mysql ?

    Installation of requirements with apt-get

    This step may take a few minutes
    It is just stuck there? There is nothing in /usr/local/src (nothing downloaded?). Any idea? I checked my logs, nothing there; its almost like its waiting for next instruction that is not there.

    Any idea?

    Thanks.
    Last edited by exoid; 27th June 2008, 22:37.

    Comment


    • #3
      Also, in install.log; you find this information: At the end it is asking for a input? But the script does not seem to be passing it? My assumption.


      Reading package lists...
      Building dependency tree...
      Reading state information...
      Reading extended state information...
      Initializing package states...
      Building tag database...
      The following NEW packages will be automatically installed:
      apache2-mpm-prefork apache2-utils apache2.2-common dpkg-dev exim4
      exim4-base exim4-config exim4-daemon-light g++ g++-4.1
      libapache2-mod-php5 libapr1 libaprutil1 libc6-dev libdbd-mysql-perl
      libdbi-perl libexpat1-dev libfontconfig1-dev libfreetype6-dev libgd2-xpm
      libjpeg62-dev liblockfile1 libmysqlclient15off libnet-daemon-perl
      libplrpc-perl libpng12-dev libpq5 librrd2 libstdc++6-4.1-dev libt1-5
      libx11-dev libxau-dev libxdmcp-dev libxpm-dev linux-libc-dev memtester
      mysql-client-5.0 mysql-common patch php5-cli php5-common procinfo
      tofrodos ttf-dejavu ttf-dejavu-extra x11proto-core-dev x11proto-input-dev
      x11proto-kb-dev xtrans-dev zlib1g-dev
      The following NEW packages will be installed:
      apache2 apache2-mpm-prefork apache2-utils apache2.2-common
      build-essential debconf-utils dpkg-dev exim4 exim4-base exim4-config
      exim4-daemon-light g++ g++-4.1 libapache2-mod-php5 libapr1 libaprutil1
      libc6-dev libconfig-inifiles-perl libdbd-mysql-perl libdbi-perl
      libexpat1-dev libfontconfig1-dev libfreetype6-dev libgd2-xpm
      libgd2-xpm-dev libglib2.0-dev libjpeg62-dev liblockfile1
      libmysqlclient15-dev libmysqlclient15off libnet-daemon-perl
      libnet-snmp-perl libplrpc-perl libpng12-dev libpq5 librrd2 librrds-perl
      libstdc++6-4.1-dev libt1-5 libx11-dev libxau-dev libxdmcp-dev libxpm-dev
      linux-libc-dev mailx memtester mysql-client-5.0 mysql-common
      mysql-server-5.0 patch php-pear php5 php5-cli php5-common php5-gd
      php5-ldap php5-mysql php5-snmp procinfo rrdtool snmp snmpd sysutils
      tofrodos ttf-dejavu ttf-dejavu-extra x11proto-core-dev x11proto-input-dev
      x11proto-kb-dev xtrans-dev zlib1g-dev
      0 packages upgraded, 71 newly installed, 0 to remove and 0 not upgraded.
      Need to get 79.7MB of archives. After unpacking 231MB will be used.
      WARNING: untrusted versions of the following packages will be installed!

      Untrusted packages could compromise your system's security.
      You should only proceed with the installation if you are certain that
      this is what you want to do.

      apache2-utils exim4-config x11proto-kb-dev libglib2.0-dev
      libnet-daemon-perl libnet-snmp-perl ttf-dejavu-extra rrdtool g++-4.1
      exim4-daemon-light libgd2-xpm-dev php5 libdbi-perl libdbd-mysql-perl
      mysql-server-5.0 sysutils libapr1 librrd2 mysql-client-5.0 mysql-common
      procinfo libmysqlclient15-dev libxdmcp-dev g++ linux-libc-dev
      debconf-utils apache2-mpm-prefork php5-snmp php5-gd libpng12-dev tofrodos
      libplrpc-perl libstdc++6-4.1-dev libfontconfig1-dev libmysqlclient15off
      apache2 xtrans-dev snmpd x11proto-core-dev php-pear snmp apache2.2-common
      libt1-5 libjpeg62-dev zlib1g-dev x11proto-input-dev libfreetype6-dev
      libxpm-dev libxau-dev dpkg-dev libgd2-xpm ttf-dejavu libexpat1-dev
      memtester libc6-dev librrds-perl php5-ldap libpq5 exim4
      libconfig-inifiles-perl php5-mysql libx11-dev exim4-base patch mailx
      php5-cli libapache2-mod-php5 libaprutil1 php5-common liblockfile1
      build-essential

      Do you want to ignore this warning and proceed anyway?
      To continue, enter "Yes"; to abort, enter "No":
      Last edited by exoid; 27th June 2008, 22:37.

      Comment


      • #4
        Originally posted by exoid View Post
        Also, in install.log; you find this information: At the end it is asking for a input? But the script does not seem to be passing it? My assumption.
        Did you have added any unofficials repository in your(s) /etc/apt/source.list(.d/*) file(s) ?
        Raphaël 'SurcouF' Bordet
        Je ne teste pas mes plugins en root, tu ne testes pas tes plugins en root...
        Dons Paypal

        Comment


        • #5
          No I did not, just the regular ones that come with ubuntu 7.10; excluding the cd-rom since i don't have... would that be why? missconfigured apt?

          Comment


          • #6
            Originally posted by exoid View Post
            No I did not, just the regular ones that come with ubuntu 7.10; excluding the cd-rom since i don't have... would that be why? missconfigured apt?
            Can you give the output of this following command ?
            Code:
            # apt-key list
            Raphaël 'SurcouF' Bordet
            Je ne teste pas mes plugins en root, tu ne testes pas tes plugins en root...
            Dons Paypal

            Comment


            • #7
              Originally posted by exoid View Post
              Hello,

              I am following your instructions on the install-script, however it does not seem to function properly on my machine?

              I am using: Ubuntu 7.10

              I followed your steps, gave +x to the scripts and ran ./00-install.sh

              Here is the output:


              It is just stuck there? There is nothing in /usr/local/src (nothing downloaded?). Any idea? I checked my logs, nothing there; its almost like its waiting for next instruction that is not there.

              Any idea?

              Thanks.
              it's ok because at the moment you are using aptitude, the path /usr/local/src will be used to download they archive of nagios, nagiosplug, ndo and centreon

              Be patient :-)


              Originally posted by exoid View Post
              No I did not, just the regular ones that come with ubuntu 7.10; excluding the cd-rom since i don't have... would that be why? missconfigured apt?
              My script is ok to Debian, to Ubuntu i doesn't test so i don't know :-), maybe some packages couldnt run ...

              Like i said in my first post, tomorow i will go to one week in holiday so i don't have a computer, i will can't respond to your questions sorry ...
              Last edited by cams; 28th June 2008, 17:20.
              CaMs

              Debian Etch - Nagios 3 - Centreon 2
              Hosts : 125 / Services : 550

              Script d'installation : http://forum.centreon.com/showthread.php?t=6140
              Documentation : http://forum.centreon.com/showthread.php?t=6466

              Comment


              • #8
                Ah gotcha, so its for debian strictly. I tought because Ubuntu is based off Debian it would work.

                I will try with Debian and report back. Thanks op

                Comment


                • #9
                  this step may takes a few minute

                  install.log
                  Code:
                  Do you want to ignore this warning and proceed anyway?
                  To continue, enter "Yes"; to abort, enter "No":"
                  Même chose pour moi sous debian.

                  Comment


                  • #10
                    OK

                    En lancant l'install avec un tail -f install.log

                    J'ai pu remarquer qu'il attendait sa réponse, je lui est envoyé un oui et c'est passé
                    Last edited by kimiz; 30th June 2008, 10:59.

                    Comment


                    • #11
                      Originally posted by kimiz View Post
                      install.log
                      Code:
                      Do you want to ignore this warning and proceed anyway?
                      To continue, enter "Yes"; to abort, enter "No":"
                      Même chose pour moi sous debian.
                      Which version of Debian ? (same question for cams)
                      Raphaël 'SurcouF' Bordet
                      Je ne teste pas mes plugins en root, tu ne testes pas tes plugins en root...
                      Dons Paypal

                      Comment


                      • #12
                        All my troubles comes from my Proxy, the script is not able to use proxy, i modify the script to works with mine, i'll post it soon.

                        My config is : Debian Etch RC3

                        Comment


                        • #13
                          im always on holiday but i have find a cyber cafe !
                          kimiz can you give your solution plz

                          thx
                          CaMs

                          Debian Etch - Nagios 3 - Centreon 2
                          Hosts : 125 / Services : 550

                          Script d'installation : http://forum.centreon.com/showthread.php?t=6140
                          Documentation : http://forum.centreon.com/showthread.php?t=6466

                          Comment


                          • #14
                            I was using Debian Etch; ran this script...

                            It downloaded the stuff fine, started installing.. asked you a few questions on what you would like to install.. and moved on...

                            down on the centreon part.

                            it starts spitting questions at you like you are going through a regular centreon installation.. i though this was supposed to be an automated solution?

                            After it finished, you go through the web-install.. and end up with the Web GUI but the usual NDO Cannot connect to DB error.

                            any idea?

                            Is the script supposed to throw questions at you during the centreon part of installation? Or just initially on what you want to install/download?

                            Comment


                            • #15
                              Also, I should note that I ran everything as root; not a user on the system.

                              Comment

                              Working...
                              X