Difference between revisions of "Zabbix"
Jump to navigation
Jump to search
(Created page with "===Zabbix=== Zabbix merupakan open source software tool yang digunakan untuk melakukan monitoring infrastruktur jaringan, server, virtual machine, dan servis cloud. ===Instal...") |
|||
| Line 10: | Line 10: | ||
'''Pastikan sudah melakukan instalasi apache dan mysql''' | '''Pastikan sudah melakukan instalasi apache dan mysql''' | ||
| − | Install Repository | + | ====Install Repository==== |
wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.0-3%2Bubuntu20.04_all.deb | wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.0-3%2Bubuntu20.04_all.deb | ||
dpkg -i zabbix-release_6.0-3+ubuntu20.04_all.deb | dpkg -i zabbix-release_6.0-3+ubuntu20.04_all.deb | ||
sudo apt update | sudo apt update | ||
| − | Install Zabbix server, frontend, agent | + | ====Install Zabbix server, frontend, agent==== |
sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent | sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent | ||
| − | + | ====Create initial database==== | |
Documentation | Documentation | ||
| Line 25: | Line 25: | ||
Run the following on your database host. | Run the following on your database host. | ||
| − | + | mysql -uroot -p | |
| − | password | + | <isi password> |
| − | mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin; | + | |
| − | mysql> create user zabbix@localhost identified by 'password'; | + | mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin; |
| − | mysql> grant all privileges on zabbix.* to zabbix@localhost; | + | mysql> create user zabbix@localhost identified by 'password'; |
| − | mysql> quit; | + | mysql> grant all privileges on zabbix.* to zabbix@localhost; |
| + | mysql> quit; | ||
On Zabbix server host import initial schema and data. You will be prompted to enter your newly created password. | On Zabbix server host import initial schema and data. You will be prompted to enter your newly created password. | ||
| − | + | zcat /usr/share/doc/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p zabbix | |
| − | + | ||
| + | ====Configure the database for Zabbix server==== | ||
Edit file /etc/zabbix/zabbix_server.conf | Edit file /etc/zabbix/zabbix_server.conf | ||
| − | DBPassword=password | + | DBPassword=password |
| − | + | ||
| + | ====Start Zabbix server and agent processes==== | ||
Start Zabbix server and agent processes and make it start at system boot. | Start Zabbix server and agent processes and make it start at system boot. | ||
| − | + | systemctl restart zabbix-server zabbix-agent apache2 | |
| − | + | systemctl enable zabbix-server zabbix-agent apache2 | |
===Referensi=== | ===Referensi=== | ||
* https://www.zabbix.com/download?zabbix=6.0&os_distribution=ubuntu&os_version=20.04&components=server_frontend_agent&db=mysql&ws=apache | * https://www.zabbix.com/download?zabbix=6.0&os_distribution=ubuntu&os_version=20.04&components=server_frontend_agent&db=mysql&ws=apache | ||
Latest revision as of 09:35, 9 September 2022
Contents
Zabbix
Zabbix merupakan open source software tool yang digunakan untuk melakukan monitoring infrastruktur jaringan, server, virtual machine, dan servis cloud.
Instalasi
Pada kasus ini, menggunakan
- OS: ubuntu 20.04
- Web server: apache
- DBMS: mysql
Pastikan sudah melakukan instalasi apache dan mysql
Install Repository
wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.0-3%2Bubuntu20.04_all.deb dpkg -i zabbix-release_6.0-3+ubuntu20.04_all.deb sudo apt update
Install Zabbix server, frontend, agent
sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent
Create initial database
Documentation
Make sure you have database server up and running.
Run the following on your database host.
mysql -uroot -p <isi password> mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin; mysql> create user zabbix@localhost identified by 'password'; mysql> grant all privileges on zabbix.* to zabbix@localhost; mysql> quit;
On Zabbix server host import initial schema and data. You will be prompted to enter your newly created password.
zcat /usr/share/doc/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p zabbix
Configure the database for Zabbix server
Edit file /etc/zabbix/zabbix_server.conf
DBPassword=password
Start Zabbix server and agent processes
Start Zabbix server and agent processes and make it start at system boot.
systemctl restart zabbix-server zabbix-agent apache2 systemctl enable zabbix-server zabbix-agent apache2