Zabbix server installation
Version vom 13. Juni 2019, 10:13 Uhr von Thomas.will (Diskussion | Beiträge) (→install zabbix for ubunto 18.04)
prepare database
- sudo mysql
- GRANT ALL ON zabbix.* TO 'zabbix'@'localhost' IDENTIFIED BY 'change-with-strong-password';
- EXIT;
install zabbix for ubuntu 18.04
- wget https://repo.zabbix.com/zabbix/4.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_4.0-2+bionic_all.deb
- sudo apt install ./zabbix-release_4.0-2+bionic_all.deb
- sudo apt update
- sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-agent
make settings
- vim /etc/apache2/conf-enabled/zabbix.conf
change php_value date.timezone America/Denver to php_value date.timezone Europe/Berlin
restart apache2
- sudo systemctl restart apache2
import database
- zcat /usr/share/doc/zabbix-server-mysql/create.sql.gz | mysql -uzabbix -p zabbix
make settings
- vim /etc/zabbix/zabbix_server.conf
DBPassword=change-with-strong-password
restart zabbix
- sudo systemctl restart zabbix-server zabbix-agent
- sudo systemctl enable zabbix-server zabbix-agent