Install Ubuntu Server 16.04 with SSH server
Install LAMP
- sudo apt-get install apache2
- sudo apt-get install mysql-server mysql-client
- sudo apt-get install php7.0-mysql php7.0-curl php7.0-json php7.0-cgi php7.0 libapache2-mod-php7.0 php-bcmath php-mbstring php7.0-xml fping libiksemel3 libltdl7 libmysqlclient20 libodbc1 libopenipmi0 libssh2-1
Install Zabbix
Check http://repo.zabbix.com/zabbix for latest packages. This one is for 3.0.4-1.
- wget http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix/zabbix-server-mysql_3.0.4-1+xenial_amd64.deb
- sudo dpkg -i zabbix-server-mysql_3.0.4-1+xenial_amd64.deb
- sudo apt-get update
- sudo apt-get install zabbix-server-mysql zabbix-frontend-php
- sudo service apache2 reload
Configure MySQL
- Log in to MySQL: mysql -uroot -p – enter password
- create database zabbix character set utf8 collate utf8_bin;
- grant all privileges on zabbix.* to zabbix@localhost identified by ‘zabbix’;
- quit;
- cd /usr/share/doc/zabbix-server-mysql
- zcat create.sql.gz | mysql -uzabbix -p zabbix – enter password (for zabbix user)
- sudo vi /etc/zabbix/apache.conf
- Change #php_value date.timezone Europe/Riga to php_value date.timezone Europe/Oslo
- Save and exit
- sudo service apache2 restart
Configure Zabbix
- Got to http://ip-address/zabbix/setup.php
- Correct pre-requisites failures (typical php options) (restart with sudo service apache2 restart if changes)
- Set db-options (use root if you haven’t made any users)
- Log on with Admin / zabbix
Install agent
- sudo apt-get install zabbix-agent
That concludes a complete install with agent. You’re Zabbix Server is now upp and running.
For monitoring there will be separate articles.