Ceci est une ancienne révision du document !


Installer l'agent zabbix sur OpenFiler

Source: https://forums.openfiler.com/viewtopic.php?pid=17680#17680

  • Sur une machine de dev (clone virtuel par exemple) installer les dépendances:
conary update conary-build
conary update gcc:devel
conary update gcc:lib
conary update gcc:runtime
conary update binutils;devellib
conary update debugedit:runtime
conary update elfutils:runtime
conary update flex:runtime
conary update gettext:runtime
conary update glib:devel
conary update glibc:devel
conary update glibc:devellib
conary update install-info:runtime
conary update libgcc:devellib
conary update patch:runtime
conary update pkgconfig:devel
conary update zlib:devel
  • Télécharger la dernière version de zabbix
mkdir localdev
cd localdev
wget http://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/1.6.6/zabbix-1.6.6.tar.gz?use_mirror=freefr
tar xvzf zabbix-1.6.6.tar.gz
cd zabbix-1.6.6
  • Préparer la compilation de l'agent
./configure --enable-agent
make
  • Copier le répertoire sur le vrai serveur et installer
mkdir -p /var/run/zabbix/
sed -e 's|/opt/zabbix|/usr/local|g' \
    -e 's|/var/tmp/zabbix_agentd.pid|/var/run/zabbix/zabbix_agentd.pid|g' \
    -e 's|ZABBIX_AGENTD=.*|ZABBIX_AGENTD="$BASEDIR/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf"|g' \
    misc/init.d/redhat/zabbix_agentd_ctl > /etc/rc.d/init.d/zabbix-agent
chmod 755 /etc/rc.d/init.d/zabbix-agent
chkconfig --add zabix-agent
chkconfig --level 35 zabbix-agent on
mkdir -p /etc/zabbix
cp misc/conf/zabbix_agentd.conf /etc/zabbix/
cp src/zabbix_agent/{zabbix_agent,zabbix_agentd} /usr/local/sbin/
chmod 755 /usr/local/sbin/zabbix_agent*
  • Configurer l'agent et tester
  • tuto/monitoring/zabbix_agent_sur_openfiler.1256632469.txt.gz
  • Dernière modification: 27/10/2009 09:34
  • de dani