Skip to content

Instantly share code, notes, and snippets.

@raultm
Created January 16, 2019 09:36
Show Gist options
  • Save raultm/2c186e0aa00b846d141f8063a1989338 to your computer and use it in GitHub Desktop.
Save raultm/2c186e0aa00b846d141f8063a1989338 to your computer and use it in GitHub Desktop.
Zabbix install & its front-end
# Package installation
apt install zabbix-agent -y
apt install zabbix-server-mysql -y
# MySql Database creation
mysql -uroot -ptest -e 'create database zabbix character set utf8 collate utf8_bin'
mysql -uroot -ptest -e "grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix'"
# MySql population of tables & data
zcat /usr/share/zabbix-server-mysql/{schema,images,data}.sql.gz | mysql -uzabbix -pzabbix zabbix
# Service activation. Enable on system startup
service zabbix-server start
update-rc.d zabbix-server enable
# Front-End packages
apt install zabbix-frontend-php -y
apt install php-mysql -y
apt install libapache2-mod-php -y
# Enable Front-End in Apache
a2enconf zabbix-frontend-php
# Apache restart with the new configuration
service apache2 reload
apache2ctl restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment