{{tag>Brouillon Supervision RedHat Postgres DB}} = Install de Zabbix sous RedHat Voir [[http://yum.postgresql.org/repopackages.php]] wget http://yum.postgresql.org/8.3/redhat/rhel-5-x86_64/pgdg-redhat93-9.3-1.noarch.rpm rpm -Uvh pgdg-redhat93-9.3-1.noarch.rpm yum install postgresql93-server postgresql93-contrib service postgresql-9.3 initdb service postgresql-9.3 start su - postgres create role zabbix with login password 'zabbix'; create database zabbix owner zabbix; ''pg_hba.conf'' host all all 127.0.0.1/32 ident host all all 127.0.0.1/32 md5 Pour se connecter à la base : psql -U zabbix -h localhost -W Voir [[https://www.zabbix.com/documentation/2.2/manual/installation/install_from_packages#red_hat_enterprise_linux_centos]] wget http://repo.zabbix.com/zabbix/2.2/rhel/5/x86_64/zabbix-release-2.2-1.el5.noarch.rpm rpm -Uvh zabbix-release-2.2-1.el5.noarch.rpm yum install php53-common php53-bcmath php53 php53-gd php53-xml php53-mbstring zabbix-web yum install zabbix-server-pgsql zabbix-web-pgsql yum install zabbix-get yum install zabbix-agent ls -l /usr/share/doc/zabbix-server-pgsql-2.2.2/create/ psql -U zabbix -h localhost -W -1 -f /usr/share/doc/zabbix-server-pgsql-2.2.2/create/schema.sql psql -U zabbix -h localhost -W -1 -f /usr/share/doc/zabbix-server-pgsql-2.2.2/create/images.sql psql -U zabbix -h localhost -W -1 -f /usr/share/doc/zabbix-server-pgsql-2.2.2/create/data.sql vi /etc/httpd/conf.d/zabbix.conf /etc/init.d/httpd restart php_value date.timezone Europe/Paris chkconfig --add zabbix-agent service zabbix-agent start %%http://localhost:8081/zabbix%% http://localhost:8081/zabbix User : Admin Mdp : zabbix ''/etc/zabbix/zabbix_agentd.conf'' #Server=127.0.0.1 Server=10.252.64.210 Exemple d'utilisation zabbix_get (depuis un serveur autorisé) : zabbix_get -s elp -k 'agent.version' yum install zabbix-java-gateway /etc/init.d/zabbix-java-gateway start chkconfig --add zabbix-java-gateway