5 useradd -g zabbix -d /var/lib/zabbix/home zabbix -m
6 chown -R zabbix:zabbix /var/log/zabbix /etc/zabbix /usr/share/zabbix /srv/http/zabbix /var/run/zabbix
9 echo "-------------------------------------------------------------------------------------"
10 echo "This package doesn't include web-server in dependens."
11 echo "You must install one of the following items of web servers to choose from ngix or lighttpd or apache"
12 echo "-------------------------------------------------------------------------------------"
13 echo "Manual post-installation steps:"
14 echo "-------------------------------------------------------------------------------------"
15 echo "1) Create a PostgreSQL user and database"
16 echo "shell> psql -U <username>"
17 echo "psql> create database zabbix;"
19 echo "2) Load the schema and datasets into the database you created"
20 echo "shell> cd create/schema"
21 echo "shell> cat postgresql.sql | psql -U <username> zabbix "
22 echo "shell> cd ../data"
23 echo "shell> cat data.sql | psql -U <username> zabbix"
24 echo "shell> cat images_pgsql.sql | psql -U <username> zabbix"
25 echo "3) Configure /etc/zabbix/zabbix_server.conf"
26 echo "4) Start zabbix-server"
27 echo "5) Go to http://localhost/zabbix and follow the setup process"
28 echo "-------------------------------------------------------------------------------------"
29 echo "For more information see http://www.zabbix.com/documentation.php"
30 echo "-------------------------------------------------------------------------------------"
35 rm -rf /var/lib/zabbix
36 rm -rf /var/run/zabbix