Outils pour utilisateurs

Outils du site


tech:brouillon-install-de-zabbix-sous-redhat

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
tech:brouillon-install-de-zabbix-sous-redhat [2025/03/24 15:06] – créée - modification externe 127.0.0.1tech:brouillon-install-de-zabbix-sous-redhat [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
 +<!DOCTYPE markdown>
 +{{tag>Brouillon Supervision RedHat Postgres DB}}
 +
 +# Install de Zabbix sous RedHat
 +
 +Voir [[http://yum.postgresql.org/repopackages.php]]
 +
 +~~~bash
 +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
 +~~~
 +
 +~~~sql
 +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 :
 +~~~bash
 +psql -U zabbix -h localhost -W
 +~~~
 +
 +
 +Voir [[https://www.zabbix.com/documentation/2.2/manual/installation/install_from_packages#red_hat_enterprise_linux_centos]]
 +
 +~~~bash
 +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
 +
 +~~~bash
 +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`
 +~~~ini
 +    #Server=127.0.0.1
 +    Server=10.252.64.210
 +~~~
 +
 +Exemple d'utilisation zabbix_get (depuis un serveur autorisé) :
 +
 +~~~bash
 +zabbix_get -s elp -k 'agent.version'
 +yum install zabbix-java-gateway
 +/etc/init.d/zabbix-java-gateway start
 +chkconfig --add zabbix-java-gateway
 +~~~
  

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki