Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # rpm -ivh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
- # yum-config-manager --enable rhel-7-server-optional-rpms
- # yum install zabbix-server-pgsql zabbix-web-pgsql zabbix-agent -y
- # yum install https://download.postgresql.org/pub/repos/yum/10/redhat/rhel-7-x86_64/pgdg-centos10-10-2.noarch.rpm
- # yum install postgresql10 -y
- # yum install postgresql10-server -y
- # /usr/pgsql-10/bin/postgresql-10-setup initdb
- # systemctl enable postgresql-10
- # systemctl start postgresql-10
- # systemctl enable zabbix-server
- # systemctl enable zabbix-agent
- # su - postgres
- # psql -c "alter user postgres with password 'Z4bbix'"
- # createuser --pwprompt zabbix
- Enter password for new role: Z4bbix
- Enter it again: Z4bbix
- # createdb -O zabbix -E Unicode -T template0 zabbix
- # zcat /usr/share/doc/zabbix-server-pgsql*/create.sql.gz | /usr/pgsql-10/bin/psql -U zabbix zabbix -W
- Enter password for user zabbix: Z4bbix
- # vi /etc/zabbix/zabbix_server.conf
- DBHost=localhost
- DBName=zabbix
- DBUser=zabbix
- DBPassword=Z4bbix
- # cat /etc/zabbix/zabbix_agentd.conf
- PidFile=/var/run/zabbix/zabbix_agentd.pid
- LogFile=/var/log/zabbix/zabbix_agentd.log
- LogFileSize=3
- DebugLevel=0
- Server=127.0.0.1
- ListenPort=10050
- StartAgents=5
- RefreshActiveChecks=60
- Timeout=30
- Include=/etc/zabbix/zabbix_agentd.d/*.conf
- # vi /etc/php.ini
- date.timezone = "Europe/Madrid"
- # cat /var/www/html/index.html
- <html>
- <head>
- <title>Zabbix Server</title>
- <meta http-equiv="refresh" content="0; URL=http://host.domain.com/zabbix">
- <meta name="keywords" content="automatic redirection">
- </head>
- <body>
- </body>
- </html>
- # systemctl restart httpd
- # systemctl restart zabbix-server
Advertisement
Add Comment
Please, Sign In to add comment