Ad Widget

Collapse

Установка zabbix 6.2 на Ubuntu Server 22.04

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Aleh
    Junior Member
    • Oct 2022
    • 3

    #1

    Установка zabbix 6.2 на Ubuntu Server 22.04

    Здравствуйте, сбросьте пожалуйста подробную инструкцию по установке zabbix 6.2 на Ubuntu Server 22.04. Заранее спасибо.
  • onefusion
    Junior Member
    • Sep 2022
    • 11

    #2
    Originally posted by Aleh
    Здравствуйте, сбросьте пожалуйста подробную инструкцию по установке zabbix 6.2 на Ubuntu Server 22.04. Заранее спасибо.
    Чем https://www.zabbix.com/ru/download не устраивает? Все просто и понятно

    Comment


    • maximus21gg
      maximus21gg commented
      Editing a comment
      нет доступа к репозиторию, в этом вся проблема.что делать. я не шарю вообще
  • Aleh
    Junior Member
    • Oct 2022
    • 3

    #3
    Originally posted by onefusion

    Чем https://www.zabbix.com/ru/download не устраивает? Все просто и понятно
    Пробовал, не получилось, думал, что не полное руководство.

    Comment

    • Silver_47
      Junior Member
      • Oct 2022
      • 5

      #4
      Originally posted by Aleh

      Пробовал, не получилось, думал, что не полное руководство.
      Соглашусь, совсем для новичков развернуть ПО по данной инструкции с первого раза нереально, лично я 2 дня сидел разбирался, Есть некоторые нюансы относительно предварительной настройки самой ОС и настройки БД

      Comment


      • Aleh
        Aleh commented
        Editing a comment
        Может подскажите тогда, как настроить. Потому, что уже не понимаю, куда копать.

      • maximus21gg
        maximus21gg commented
        Editing a comment
        реально парни, подсобите

      • maximus21gg
        maximus21gg commented
        Editing a comment
        чел прикол в том что я месяц назад с первого раза развернул этот заббикс сервер у себя на работе, а сейчас сел заново и нихера не робит
    • Aleh
      Junior Member
      • Oct 2022
      • 3

      #5
      Originally posted by maximus21gg
      чел прикол в том что я месяц назад с первого раза развернул этот заббикс сервер у себя на работе, а сейчас сел заново и нихера не робит
      Я тоже его изначально развернул, вот по этой инструкции. Спустя неделю снес, и после этого уже ничего не получается, сколько я видосов не смотрел, ничего не работает.

      Zabbix 6.2 standard version (supported until January, 2023)
      wget https://repo.zabbix.com/zabbix/6.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.2-1+ubuntu$(lsb_release -rs)_all.deb
      sudo dpkg -i zabbix-release_6.2-1+ubuntu$(lsb_release -rs)_all.deb
      sudo apt update
      sudo apt -y install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent

      Step 2: Configure database
      In this installation, I will use password rootDBpass as root password and zabbixDBpass as Zabbix password for DB. Consider changing your password for security reasons.

      a. Install MariaDB 10.6
      In your terminal, use the following command to install MariaDB 10.6.

      sudo apt install software-properties-common -y
      curl -LsS -O https://downloads.mariadb.com/MariaD...adb_repo_setup
      sudo bash mariadb_repo_setup --mariadb-server-version=10.6
      sudo apt update
      sudo apt -y install mariadb-common mariadb-server-10.6 mariadb-client-10.6


      Once the installation is complete, start the MariaDB service and enable it to start on boot using the following commands:

      sudo systemctl start mariadb
      sudo systemctl enable mariadb


      Once the installation is complete, start the MariaDB service and enable it to start on boot using the following commands:

      sudo systemctl start mariadb
      sudo systemctl enable mariadb


      c. Create database
      sudo mysql -uroot -p'rootDBpass' -e "create database zabbix character set utf8mb4 collate utf8mb4_bin;"
      sudo mysql -uroot -p'rootDBpass' -e "grant all privileges on zabbix.* to zabbix@localhost identified by 'Lacroix~11#';"
      d. Import initial schema and data.
      Import database shema for Zabbix server (could last up to 5 minutes):

      sudo zcat /usr/share/doc/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p'Lacroix~11#' zabbix

      e. Enter database password in Zabbix configuration file
      Open zabbix_server.conf file with command:

      sudo nano /etc/zabbix/zabbix_server.conf
      and add database password in this format anywhere in file:

      DBPassword=zabbixDBpass
      Save and exit file (ctrl+x, followed by y and enter).

      Step 3: Configure firewall
      If you have a UFW firewall installed on Ubuntu, use these commands to open TCP ports: 10050 (agent), 10051 (server), and 80 (frontend):

      ufw allow 10050/tcp
      ufw allow 10051/tcp
      ufw allow 80/tcp
      ufw reload


      Step 4: Start Zabbix server and agent processes
      sudo systemctl restart zabbix-server zabbix-agent
      sudo systemctl enable zabbix-server zabbix-agent


      Step 5: Configure Zabbix frontend
      a. Configure PHP for Zabbix frontend
      Edit file /etc/zabbix/apache.conf:

      sudo nano /etc/zabbix/apache.conf
      Uncomment 2 lines in apache.conf that starts with “# php_value date.timezone Europe/Riga” by removing symbol # and set the right timezone for your country, for example:

      php_value date.timezone Europe/Amsterdam
      Save and exit file (ctrl+x, followed by y and enter)


      b. Restart Apache web server and make it start at system boot
      sudo systemctl restart apache2
      sudo systemctl enable apache2​
      Last edited by Aleh; 11-10-2022, 10:11.

      Comment

      • Silver_47
        Junior Member
        • Oct 2022
        • 5

        #6
        Я сейчас бьюсь с инсталляцией 6.2.3 + Postgresql+ timescaledb + Nginx и все это на Oracle Linux 9. И то что на оф сайте в качестве инструкции, это процентов 30% от того что еще нужно донастроить.

        Comment


        • maximus21gg
          maximus21gg commented
          Editing a comment
          репозиторий у тебя доступен? есть связь?
      • maximus21gg
        Junior Member
        • Sep 2022
        • 8

        #7
        Originally posted by Aleh

        Я тоже его изначально развернул, вот по этой инструкции. Спустя неделю снес, и после этого уже ничего не получается, сколько я видосов не смотрел, ничего не работает.

        Zabbix 6.2 standard version (supported until January, 2023)
        wget https://repo.zabbix.com/zabbix/6.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.2-1+ubuntu$(lsb_release -rs)_all.deb
        sudo dpkg -i zabbix-release_6.2-1+ubuntu$(lsb_release -rs)_all.deb
        sudo apt update
        sudo apt -y install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent

        Step 2: Configure database
        In this installation, I will use password rootDBpass as root password and zabbixDBpass as Zabbix password for DB. Consider changing your password for security reasons.

        a. Install MariaDB 10.6
        In your terminal, use the following command to install MariaDB 10.6.

        sudo apt install software-properties-common -y
        curl -LsS -O https://downloads.mariadb.com/MariaD...adb_repo_setup
        sudo bash mariadb_repo_setup --mariadb-server-version=10.6
        sudo apt update
        sudo apt -y install mariadb-common mariadb-server-10.6 mariadb-client-10.6


        Once the installation is complete, start the MariaDB service and enable it to start on boot using the following commands:

        sudo systemctl start mariadb
        sudo systemctl enable mariadb


        Once the installation is complete, start the MariaDB service and enable it to start on boot using the following commands:

        sudo systemctl start mariadb
        sudo systemctl enable mariadb


        c. Create database
        sudo mysql -uroot -p'rootDBpass' -e "create database zabbix character set utf8mb4 collate utf8mb4_bin;"
        sudo mysql -uroot -p'rootDBpass' -e "grant all privileges on zabbix.* to zabbix@localhost identified by 'Lacroix~11#';"
        d. Import initial schema and data.
        Import database shema for Zabbix server (could last up to 5 minutes):

        sudo zcat /usr/share/doc/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p'Lacroix~11#' zabbix

        e. Enter database password in Zabbix configuration file
        Open zabbix_server.conf file with command:

        sudo nano /etc/zabbix/zabbix_server.conf
        and add database password in this format anywhere in file:

        DBPassword=zabbixDBpass
        Save and exit file (ctrl+x, followed by y and enter).

        Step 3: Configure firewall
        If you have a UFW firewall installed on Ubuntu, use these commands to open TCP ports: 10050 (agent), 10051 (server), and 80 (frontend):

        ufw allow 10050/tcp
        ufw allow 10051/tcp
        ufw allow 80/tcp
        ufw reload


        Step 4: Start Zabbix server and agent processes
        sudo systemctl restart zabbix-server zabbix-agent
        sudo systemctl enable zabbix-server zabbix-agent


        Step 5: Configure Zabbix frontend
        a. Configure PHP for Zabbix frontend
        Edit file /etc/zabbix/apache.conf:

        sudo nano /etc/zabbix/apache.conf
        Uncomment 2 lines in apache.conf that starts with “# php_value date.timezone Europe/Riga” by removing symbol # and set the right timezone for your country, for example:

        php_value date.timezone Europe/Amsterdam
        Save and exit file (ctrl+x, followed by y and enter)


        b. Restart Apache web server and make it start at system boot
        sudo systemctl restart apache2
        sudo systemctl enable apache2​
        мне бы хоть доступ к репозиторию, а там дальше изи. а сейчас у меня на этот форум не заходит даже, че происходит вообще? зашел через впн на японию

        Comment


        • onefusion
          onefusion commented
          Editing a comment
          Вариант с установкой контейнера docker не рассматривали?
      Working...