Introduction Last updated: 2024-11-23

This document explains the guidelines for installing, deploying, maintaing and trouble-shooting various applications deployed at CFCICI.

Installation Guides

Installation guides for various deployments at CFCICI DC.

Zabbix-Ubuntu

Steps for installing Zabbix Server 6.2 & Agent in Ubuntu 22.04

Step 1: Installing Zabbix repository


wget https://repo.zabbix.com/zabbix/6.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.2-4%2Bubuntu22.04_all.deb
dpkg -i zabbix-release_6.2-4+ubuntu22.04_all.deb
apt update
							

Step 2: Installing Zabbix server, frontend, agent


apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent
							

Step 3: Installing MySQL Server


apt install mysql-server
systemctl start mysql.service
							

Step 4: Configuring MySQL


Step 4.1: Changing MySQL root password


mysql
mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
mysql> quit
							

Step 4.2: Initial Database Creation


mysql -uroot -p
*password*
mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;
mysql> create user zabbix@localhost identified by 'zabbix';
mysql> grant all privileges on zabbix.* to zabbix@localhost;
mysql> set global log_bin_trust_function_creators = 1;
mysql> quit;
							

On Zabbix server host import initial schema and data. You will be prompted to enter your newly created password.


zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix
							

Disable log_bin_trust_function_creators option after importing database schema.


mysql -uroot -p
*password*
mysql> set global log_bin_trust_function_creators = 0;
mysql> quit;
							

Step 4.3: Configure the database for Zabbix server

Edit file /etc/zabbix/zabbix_server.conf


DBPassword=zabbix
							

Step 5: Start Zabbix server and agent processes


systemctl restart zabbix-server zabbix-agent apache2
systemctl enable zabbix-server zabbix-agent apache2
							

Step 6: Login to Zabbix


Username: Admin 
Password: zabbix 
URL: http://localhost/zabbix