On 29-08-2014 10:49, Matheus de Oliveira wrote:
2014-08-29 10:41 GMT-03:00 Douglas Fabiano Specht <[email protected]>
:
achei 2, apontei para o primeiro abaixo e funcinou..
/usr/pgsql-9.3/bin/pg_config
Esse caminho mesmo, o que passei antes é nos derivados Debian.
Pessoal,
Não li toda a thread... mas já fiz isso algumas vezes e tenho até
anotado o passo a passo que fiz. Segue abaixo minha colaboração, usem e
abusem dela, e se encontrarem algo que possa ser melhorado/ajustado
gostaria muito do feedback.
Instalação/Configuracao Zabbix 2.0 + PostgreSQL 9.2 em CentOS 6.4
1) Instalar CentOS 6.4
2) Habilitar repositorios PGDG para instalar PostgreSQL
$ rpm -Uvh
http://yum.postgresql.org/9.2/redhat/rhel-6-x86_64/pgdg-centos92-9.2-6.noarch.rpm
3) Habilitar repositorios EPEL para instalar Zabbix
$ rpm -Uvh
http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
4) Instalar PostgreSQL 9.2
$ yum install postgresql92 postgresql92-server postgresql92-contrib vim
5) Instalar Zabbix 2.0 (Server e Frontend web)
$ yum install zabbix20-server-pgsql zabbix20-web-pgsql
6) Desabilitar Firewall e SELinux no CentOS
$ /etc/init.d/iptables stop
$ chkconfig iptables off
$ /etc/init.d/ip6tables stop
$ chkconfig ip6tables off
$ vim /etc/selinux/config
SELINUX=disabled
7) Setup PostgreSQL 9.2
7.1) Inicializar o cluster
$ /etc/init.d/postgresql-9.2 initdb
7.2) Iniciar PostgeSQL
$ /etc/init.d/postgresql-9.2 start
7.3) Ajustar pg_hba.conf
$ vim /var/lib/pgsql/9.2/data/pg_hba.conf
• setar tudo como trust
$ /etc/init.d/postgresql-9.2 reload
8) Setup Zabbix (database no PG)
$ psql -U postgres -c "CREATE ROLE zabbix LOGIN PASSWORD 'zabbix';"
$ psql -U postgres -c "CREATE DATABASE zabbix OWNER zabbix;"
$ psql -U zabbix zabbix -f /usr/share/zabbix-postgresql/schema.sql
$ psql -U zabbix zabbix -f /usr/share/zabbix-postgresql/images.sql
$ psql -U zabbix zabbix -f /usr/share/zabbix-postgresql/data.sql
9) Configurar Zabbix
$ vim /etc/zabbix/zabbix_server.conf
(descomentar DBPassword e colocar senha do banco)
10) Configurar PHP
$ vim /etc/php.ini
- memory_limit = 256M
- post_max_size = 32M
- max_execution_time = 600
- mbstring.func_overload=2
- max_input_time = 600
- date.timezone = 'America/Sao_Paulo'
11) Iniciar/registrar serviços
$ /etc/init.d/httpd start
$ /etc/init.d/zabbix-server start
$ chkconfig postgresql-9.2 on
$ chkconfig httpd on
$ chkconfig zabbix-server on
12) Acessar FrontEnd do Zabbix
http://IP_DO_SERVIDOR/zabbix
13) Configurar interface Zabbix 2.0
14) Acessar
User: Admin
Senha: zabbix
15) Instalar Agente (se vc não tem o repo EPEL habilitado então execute
o passo 3 e retorne)
$ yum install zabbix20-agent
$ chkconfig zabbix-agent on
Att,
--
Fabrízio de Royes Mello Timbira - http://www.timbira.com.br/
PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral