Download and install Zabbix
a. Install Zabbix repository
sudo dpkg -i zabbix-release_5.0-1+focal_all.deb
sudo apt update
err
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
アップグレードできるパッケージが 310 個あります。表示するには 'apt list --upgradable' を実行してください。
b. Install Zabbix server, frontend, agent
sudo apt install zabbix-server-pgsql zabbix-frontend-php php7.4-pgsql zabbix-apache-conf zabbix-agent
c. Create initial database
sudo -u postgres createuser --pwprompt zabbix
sudo -u postgres createdb -O zabbix zabbix
d. Configure the database for Zabbix server
Edit file /etc/zabbix/zabbix_server.conf
sudo gedit /etc/zabbix/zabbix_server.conf
DBPassword=New_db_password
e. Configure PHP for Zabbix frontend
Edit file /etc/zabbix/apache.conf, uncomment and set the right timezone for you.
sudo gedit /etc/zabbix/apache.conf,
php_value date.timezone Asia/Tokyo
f. Start Zabbix server and agent processes
Start Zabbix server and agent processes and make it start at system boot.
sudo systemctl restart zabbix-server zabbix-agent apache2
sudo systemctl enable zabbix-server zabbix-agent apache2
g. Configure Zabbix frontend
Follow steps described in Zabbix documentation: Installing frontend
127.0.0.1/zabbix