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;
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 restartphp_value date.timezone Europe/Paris

chkconfig --add zabbix-agent service zabbix-agent start

http://localhost:8081/zabbix

http://localhost:8081/zabbix User : AdminMdp : zabbix

#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