Proxy Zabbix

Le proxy zabbix

 

aptitude install libldap2-dev libsqlite3-dev libjabberd2-dev libiksemel-dev pkg-config libcurl4-gnutls-dev libiodbc2-dev snmp libsnmp-dev libssh2-1-dev sqlite3 build-essential fping

cd /usr/local/src
wget http://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/2.0.2/zabbix-2.0.2.tar.gz
tar -xzf zabbix-2.0.2.tar.gz
cd zabbix-2.0.2
./configure –with-sqlite3 –with-jabber –with-libcurl –with-iodbc –with-net-snmp –with-ssh2 –with-ldap –enable-proxy –enable-agent
make
make install

useradd zabbix
mkdir /var/lib/sqlite
cat database/sqlite3/schema.sql | sqlite3 /var/lib/sqlite/zabbix.db
cat database/sqlite3/data.sql | sqlite3 /var/lib/sqlite/zabbix.db
cat database/sqlite3/images.sql | sqlite3 /var/lib/sqlite/zabbix.db
chown -R zabbix:zabbix /var/lib/sqlite
cp misc/init.d/debian/zabbix-agent /etc/init.d/
cp misc/init.d/debian/zabbix-server /etc/init.d/zabbix-proxy
cat /etc/init.d/zabbix-proxy|sed ‘s/NAME=zabbix_server/NAME=zabbix_proxy/g’ > /etc/init.d/zabbix-proxy.new && mv /etc/init.d/zabbix-proxy.new /etc/init.d/zabbix-proxy
chmod 755 /etc/init.d/zabbix-proxy
cd /etc
ln -s /usr/local/etc/zabbix_* ./

/etc/zabbix_proxy.conf
Server=
Hostname=
SourceIP=
DBName=/var/lib/sqlite/zabbix.db
ProxyOfflineBuffer=12
ConfigFrequency=60
DataSenderFrequency=30
ListenIP=10.66.201.81
Timeout=15
FpingLocation=/usr/bin/fping

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée.


9 + quatre =

Vous pouvez utiliser les balises HTML suivantes : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>