Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- On Zabbix Server:
- First we need to add the zabbix repo. This is because ubuntu stores old versions of zabbix:
- # wget http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1+trusty_all.deb
- # dpkg -i zabbix-release_3.0-1+trusty_all.deb
- # apt-get update
- # apt-get install zabbix-frontend-php zabbix-java-gateway zabbix-server-pgsql
- Configure the zabbix server:
- # vi /etc/zabbix/zabbix_server.conf
- Change the following lines:
- DBName=zabbix
- DBUser=zabbix
- DBPassword=DBPassword
- StartPollers=5
- JavaGateway=server_ip_address
- StartJavaPollers=1
- StartVMwareCollectors=1
- Then we need to configure SQL.
- #sudo su - postgres
- #psql
- #create role zabbix login;
- #alter user zabbix with password 'DBPassword';
- #grant all privileges on database zabbix to zabbix;
- We can then exit psql. We need to import the database schema now.
- #cd /usr/share/doc/zabbix-server-pgsql
- #gunzip create.sql.gz
- Because postgresql uses peer authentication we need to make sure zabbix is a user we can login to. Edit /etc/passwd and set zabbix from /bin/false to /bin/bash. Then su onto zabbix
- #psql -U zabbix zabbix < create.sql
- We need to change php and apache2 configs. As root:
- #vi /etc/php5/apache2/php.ini
- Uncomment date.timezone and set it to whatever timezone is apropiate.
- Now edit the default sites-enabled/ config in apache and set the document root to /usr/local/share/
- Now we can start zabbix:
- #service apache2 restart
- # service zabbix-server restart
- # service zabbix-java-gateway start
- Navigate to http://serverhostname/zabbix. Fill in all the forms. Log in with the default Admin/zabbix login. You should see the zabbix dashboard.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement