Last active
March 29, 2023 13:37
-
-
Save dbannik/891625b89f8843abd3827d3ee1b35370 to your computer and use it in GitHub Desktop.
Install zabbix 3.2 for ubuntu 16.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| apt update && apt install wget htop curl nano ssh -y | |
| wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+xenial_all.deb | |
| dpkg -i zabbix-release_3.2-1+xenial_all.deb && apt-get update | |
| export DEBIAN_FRONTEND=noninteractive | |
| apt install zabbix-server-mysql zabbix-frontend-php -y | |
| apt install php-mbstring php-bcmath php-xmlwriter -y | |
| mysql -uroot -e "CREATE DATABASE zabbix CHARACTER SET utf8 COLLATE utf8_bin"; | |
| mysql -uroot -e "CREATE USER 'zabbix'@'localhost'"; | |
| mysql -uroot -e "GRANT ALL ON zabbix.* TO 'zabbix'@'localhost'"; | |
| mysql -uroot -e "SHOW DATABASES"; | |
| mysql -uroot -e "SELECT host, user FROM mysql.user"; | |
| mysql -uroot -e "SHOW GRANTS FOR 'zabbix'@'localhost'"; | |
| zcat /usr/share/doc/zabbix-server-mysql/create.sql.gz | mysql -uroot zabbix | |
| sed -i 's/# php_value date.timezone Europe\/Riga/php_value date.timezone Europe\/Minsk/g' /etc/apache2/conf-enabled/zabbix.conf | |
| service zabbix-server start | |
| service apache2 restart |
Finally someone who knows how to write installation instructions/script
then access http://ip-server/zabbix
Admin/zabbix
then access http://ip-server/zabbix
Admin/zabbix
Allow firewall access from zabbix server to all zabbix-client with port 10050
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisite package for zabbix server
apt-get install libcurl3 libiksemel3 libodbc1 libopenipmi0 libssh2-1