How to install zabbix agent on debian

zabbix agent install on debian boxThis is little howto for installing zabbix agent on Debian 6 and Debian 7 boxes. 10x Stelko

 

#Debian7 wheezy zabbix-agent deploy

echo "" >> /etc/apt/sources.list
echo "#Wheezy backport for zabbix-agent" >> /etc/apt/sources.list
echo "deb http://ftp.bg.debian.org/debian wheezy-backports main" >> /etc/apt/sources.list
apt-get update
apt-get -t wheezy-backports install zabbix-agent
sed -i 's/Server=127.0.0.1/Server=172.18.1.22/g' /etc/zabbix/zabbix_agentd.conf
/etc/init.d/zabbix-agent restart

#Debian6 squeeze zabbix-agent deploy

/usr/bin/apt-key adv --keyserver keys.gnupg.net --recv-keys 8FF57A0425FFD7E7
echo "" >> /etc/apt/sources.list
echo "#Squezze zabbixzone repo for zabbix-agent" >> /etc/apt/sources.list
echo "deb http://repo.zabbixzone.com/debian squeeze main" >> /etc/apt/sources.list
apt-get update
apt-get install -y zabbix-agent
sed -i 's/Server=127.0.0.1/Server=172.18.1.22/g' /etc/zabbix/zabbix_agentd.conf
/etc/init.d/zabbix-agent restart