Ad Widget

Collapse

Zabbix monitoring database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • K3vinOrton
    Member
    • Feb 2017
    • 94

    #46
    Originally posted by toine7m
    Salut, je te copie/colle le tuto du wiki de Zabbix qui n'est pas mal fait du tout, si tu as des questions, n'hésite pas

    Même si ayant installé zabbix via le repo sous centos 7, j'ai fais un yum update et le package zabbix-server 3.0.8 s'est installé tout seul

    Fais bien un backup de ta machine avant, et si jamais, pour faire un rollback, voici la procédure :

    yum history (pour avoir l'historique des modifications ainsi que l'heure)
    yum history info X (ou X représente le numéro dans l'historique, permet d'avoir la liste des infos concernant l'update en particulier)
    yum undo X (annule l'update X qui était dans l'historique)

    Dans l'ensemble, ça fonctionne relativement bien et m'a déjà sauvé quelques fois (je n'aime pas les backups )

    Server upgrade process

    1 Stop Zabbix server

    Stop Zabbix server to make sure that no new data is inserted into database.

    2 Back up the existing Zabbix database

    This is a very important step. Make sure that you have a backup of your database. It will help if the upgrade procedure fails (lack of disk space, power off, any unexpected problem).

    3 Back up configuration files, PHP files and Zabbix binaries

    Make a backup copy of Zabbix binaries, configuration files and the PHP file directory.

    4 Install new server binaries

    Use these instructions to compile Zabbix server from sources.
    Go to the Zabbix download page and download the source archive. Once downloaded, extract the sources, by running:

    $ tar -zxvf zabbix-3.0.0.tar.gz (bien choisir la version téléchargée)

    When configuring the sources for a Zabbix server or proxy, you must specify the database type to be used. Only one database type can be compiled with a server or proxy process at a time.

    To see all of the supported configuration options, inside the extracted Zabbix source directory run:

    ./configure --help
    To configure the sources for a Zabbix server and agent, you may run something like:

    ./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2
    --with-libcurl configuration option with cURL 7.20.0 or higher is required for SMTP authentication, supported since Zabbix 3.0.0.
    --with-libcurl and --with-libxml2 configuration options are required for virtual machine monitoring, supported since Zabbix 2.2.0.
    To configure the sources for a Zabbix server (with PostgreSQL etc.), you may run:

    ./configure --enable-server --with-postgresql --with-net-snmp
    To configure the sources for a Zabbix proxy (with SQLite etc.), you may run:

    ./configure --prefix=/usr --enable-proxy --with-net-snmp --with-sqlite3 --with-ssh2
    To configure the sources for a Zabbix agent, you may run:

    ./configure --enable-agent

    Là tu fais un "make install" pour faire l'install

    Revois la configuration du fichier /usr/local/etc/zabbix_server.conf pour qu'il corresponde à l'ancien
    5 Review server configuration parameters

    There are no mandatory changes in this version to server parameters. For recommended changes and new optional parameters, see the What's new section.

    6 Start new Zabbix binaries

    Start new binaries. Check log files to see if the binaries have started successfully.

    Zabbix server will automatically upgrade the database. When starting up, Zabbix server reports the current (mandatory and optional) and required database versions. If the current mandatory version is older than the required version, Zabbix server automatically executes the required database upgrade patches. The start and progress level (percentage) of the database upgrade is written to the Zabbix server log file. When the upgrade is completed, a “database upgrade fully completed” message is written to the log file. If any of the upgrade patches fail, Zabbix server will not start. Zabbix server will also not start if the current mandatory database version is newer than the required one. Zabbix server will only start if the current mandatory database version corresponds to the required mandatory version.

    8673:20161117:104750.259 current database version (mandatory/optional): 03000000/03000000
    8673:20161117:104750.259 required mandatory version: 03000000
    Before you start the server:

    Make sure the database user has enough permissions (create table, drop table, create index, drop index)
    Make sure you have enough free disk space.
    7 Install new Zabbix web interface

    The minimum required PHP version has been upped from 5.3.0 to 5.4.0. Update if needed and follow installation instructions.


    D'accord je vais essayer merci... Et c'est quoi la commande pour vérifier la version de zabbix

    Comment

    • toine7m
      Member
      • Feb 2017
      • 93

      #47
      Soit via la commande : zabbix_server --version

      Soit lorsque tu vas sur ton interface zabbix, dans le fond il est noté

      Comment

      • K3vinOrton
        Member
        • Feb 2017
        • 94

        #48
        Originally posted by toine7m
        Soit via la commande : zabbix_server --version

        Soit lorsque tu vas sur ton interface zabbix, dans le fond il est noté
        ces étapes que tu m'as envoyé, sont pour la compilation, mais le yum update c'est un moyen plus rapide?

        Comment

        • toine7m
          Member
          • Feb 2017
          • 93

          #49
          C'est plus rapide en effet, je l'ai fais sur un Zabbix de test et ça à mis à jour en version 3.0.8

          Comment

          • K3vinOrton
            Member
            • Feb 2017
            • 94

            #50
            Originally posted by toine7m
            C'est plus rapide en effet, je l'ai fais sur un Zabbix de test et ça à mis à jour en version 3.0.8
            je viens de le faire et c'est bon par contre quand je make pour compiler avec unixocbc j'ai ce message:
            Last edited by K3vinOrton; 09-03-2017, 10:23.

            Comment

            • K3vinOrton
              Member
              • Feb 2017
              • 94

              #51
              Originally posted by K3vinOrton
              je viens de le faire et c'est bon par contre quand je make pour compiler avec unixocbc j'ai ce message:
              [ATTACH]9700[/ATTACH]
              et quand je make dans unixodbc, ça fait ça:

              Last edited by K3vinOrton; 09-03-2017, 10:23.

              Comment

              • toine7m
                Member
                • Feb 2017
                • 93

                #52
                Il y a eu un update du package automake ?

                Si oui, tu peux toujours faire ceci, c'est un peu "barbare", mais ça devrait fonctionner !


                Fais d'abord un "automake --version", et si tu obtiens "1.15", fais ces commandes, sinon, tu modifies simplement le 1.15 par la version de ton automake

                ln -s automake-1.15 automake-1.14
                ln -s aclocal-1.15 aclocal-1.14

                relance ton make et ça devrait fonctionner

                Comment

                • K3vinOrton
                  Member
                  • Feb 2017
                  • 94

                  #53
                  Originally posted by toine7m
                  Il y a eu un update du package automake ?

                  Si oui, tu peux toujours faire ceci, c'est un peu "barbare", mais ça devrait fonctionner !


                  Fais d'abord un "automake --version", et si tu obtiens "1.15", fais ces commandes, sinon, tu modifies simplement le 1.15 par la version de ton automake

                  ln -s automake-1.15 automake-1.14
                  ln -s aclocal-1.15 aclocal-1.14

                  relance ton make et ça devrait fonctionner
                  je l'ai fait mais la version ne change pas et pourtant les commandes se valident

                  Comment

                  • toine7m
                    Member
                    • Feb 2017
                    • 93

                    #54
                    Quelle version qui ne change pas ?

                    Quand je disais modifier la version, c'est modifier les X ci-après :

                    ln -s automake-1.X automake-1.14
                    ln -s aclocal-1.X aclocal-1.14

                    Comment

                    • K3vinOrton
                      Member
                      • Feb 2017
                      • 94

                      #55
                      Originally posted by toine7m
                      Quelle version qui ne change pas ?

                      Quand je disais modifier la version, c'est modifier les X ci-après :

                      ln -s automake-1.X automake-1.14
                      ln -s aclocal-1.X aclocal-1.14
                      bah je suis en 1.13.4, j'ai remplacé X par 13

                      Comment

                      • toine7m
                        Member
                        • Feb 2017
                        • 93

                        #56
                        je pense qu'il te faut minimum la version 14 :/

                        installe le repo EPEL si ce n'est déjà fait et regarde s'il n'y a pas de MAJ disponible

                        Comment

                        • K3vinOrton
                          Member
                          • Feb 2017
                          • 94

                          #57
                          Originally posted by K3vinOrton
                          bah je suis en 1.13.4, j'ai remplacé X par 13
                          Là ça me soule car Zabbix server et agent ne se démarrent plus

                          Comment

                          • toine7m
                            Member
                            • Feb 2017
                            • 93

                            #58
                            Je n'ai rien dis, je suis en version 1.13.4 aussi Tu pourrais me poster le fichier make stp ? je vais y jeter un oeil

                            Comment

                            • toine7m
                              Member
                              • Feb 2017
                              • 93

                              #59
                              Fais un yum undo et reste en 3.0.7 ou celle que tu étais avant alors, à mon avis le package est corrompu ou alors n'est pas compatible avec la config :/ tu retrouveras ton zabbix d'avant

                              t généralement, pour des services, une fois que ça fonctionne, on évite les mises à jour pour empêcher ce genre de problèmes :3 s'il y avait une grosse mise à jour, il faut la faire en sandbox pour être sûr que ça passe sans problème

                              Comment

                              • K3vinOrton
                                Member
                                • Feb 2017
                                • 94

                                #60
                                Originally posted by toine7m
                                Je n'ai rien dis, je suis en version 1.13.4 aussi Tu pourrais me poster le fichier make stp ? je vais y jeter un oeil
                                D'accord

                                make file de unix :



                                make file de zabbix :


                                make file de automake :

                                Comment

                                Working...