Здравствуйте, сбросьте пожалуйста подробную инструкцию по установке zabbix 6.2 на Ubuntu Server 22.04. Заранее спасибо.
Ad Widget
Collapse
Установка zabbix 6.2 на Ubuntu Server 22.04
Collapse
X
-
-
Пробовал, не получилось, думал, что не полное руководство.
Чем https://www.zabbix.com/ru/download не устраивает? Все просто и понятно
Comment
-
Я тоже его изначально развернул, вот по этой инструкции. Спустя неделю снес, и после этого уже ничего не получается, сколько я видосов не смотрел, ничего не работает.
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 apache2Last edited by Aleh; 11-10-2022, 10:11.Comment
-
Я сейчас бьюсь с инсталляцией 6.2.3 + Postgresql+ timescaledb + Nginx и все это на Oracle Linux 9. И то что на оф сайте в качестве инструкции, это процентов 30% от того что еще нужно донастроить.Comment
-
мне бы хоть доступ к репозиторию, а там дальше изи. а сейчас у меня на этот форум не заходит даже, че происходит вообще? зашел через впн на японию
Я тоже его изначально развернул, вот по этой инструкции. Спустя неделю снес, и после этого уже ничего не получается, сколько я видосов не смотрел, ничего не работает.
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 apache2Comment
Comment