Advertisement
Guest User

Untitled

a guest
Sep 8th, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. On Zabbix Server:
  2. First we need to add the zabbix repo. This is because ubuntu stores old versions of zabbix:
  3. # wget http://repo.zabbix.com/zabbix/3.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.0-1+trusty_all.deb
  4. # dpkg -i zabbix-release_3.0-1+trusty_all.deb
  5. # apt-get update
  6. # apt-get install zabbix-frontend-php zabbix-java-gateway zabbix-server-pgsql
  7. Configure the zabbix server:
  8. # vi /etc/zabbix/zabbix_server.conf
  9. Change the following lines:
  10. DBName=zabbix
  11. DBUser=zabbix
  12. DBPassword=DBPassword
  13. StartPollers=5
  14. JavaGateway=server_ip_address
  15. StartJavaPollers=1
  16. StartVMwareCollectors=1
  17. Then we need to configure SQL.
  18. #sudo su - postgres
  19. #psql
  20. #create role zabbix login;
  21. #alter user zabbix with password 'DBPassword';
  22. #grant all privileges on database zabbix to zabbix;
  23. We can then exit psql. We need to import the database schema now.
  24. #cd /usr/share/doc/zabbix-server-pgsql
  25. #gunzip create.sql.gz
  26. 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
  27. #psql -U zabbix zabbix < create.sql
  28. We need to change php and apache2 configs. As root:
  29. #vi /etc/php5/apache2/php.ini
  30. Uncomment date.timezone and set it to whatever timezone is apropiate.
  31. Now edit the default sites-enabled/ config in apache and set the document root to /usr/local/share/
  32. Now we can start zabbix:
  33. #service apache2 restart
  34. # service zabbix-server restart
  35. # service zabbix-java-gateway start
  36. 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