Verified to work on Debian 4.0r4 with Zabbix version 1.6.1 on Dec 17, 2008.
Install pre-requisites. I beleive a build environment is all that is needed.
aptitude install build-essential
Log into your server as root.
1 – Make the zabbix user and group:
adduser zabbix
enter in new password
confirm
use the remaining defaults.
Add zabbix to the admin group:
adduser zabbix adm
2 – Download and Untar the sources:
Log in as the zabbix user
su - zabbix
cd ~
wget http://optusnet.dl.sourceforge.net/sourceforge/zabbix/zabbix-1.6.1.tar.gz
tar zxvpf zabbix-1.6.1.tar.gz
You might want to confirm that this is actually the latest version. You might also want to find a mirror closer to you by going to http://sourceforge.net/project/showfiles.php?group_id=23494.
3 – Configure, compile and install the server:
cd zabbix-1.6.1/
./configure --prefix=/usr --enable-agent && make
su
make install
4 – Prepare the rest of the system:
nano /etc/services
Add at the end:
zabbix_agent 10050/tcp # Zabbix ports
Save and exit.
5- Create the configuration directories and copy the default files in
mkdir /etc/zabbix
chown -R zabbix.zabbix /etc/zabbix/
cp misc/conf/zabbix_agentd.conf /etc/zabbix/
Edit the agent’s configuration:
nano /etc/zabbix/zabbix_agentd.conf
Make sure that the Server parameter points to the server or proxy’s address.
Server=127.0.0.1
Save and exit.
6- Make init.d startup script
Copy the init.d script to the right spot: cp misc/init.d/debian/zabbix-agent /etc/init.d
You need to edit these script files as the compiled versions of the zabbix files is placed under /usr/sbin (/usr/bin in older versions).
Edit the agent startup script
nano /etc/init.d/zabbix-agent
Change this line:
DAEMON=/home/zabbix/bin/${NAME}
replace it with:
DAEMON=/usr/sbin/${NAME}
Save and exit.
Now set the correct permissions and set ZABBIX to start when the machine boots:
chmod 755 /etc/init.d/zabbix-agent
update-rc.d zabbix-agent defaults
7- Test it out.
Start the agent:
/etc/init.d/zabbix-agent start
Now check to make sure that they are running:
ps -aux | grep zabbix
You should see multiple instances of zabbix_agentd running if everything has gone ok. If not, check /tmp/zabbix_agentd.log for errors.
Zabbix 1.6 agent on Debian and Ubuntu
Verified to work on Debian 4.0r4 with Zabbix version 1.6.1 on Dec 17, 2008.
Install pre-requisites. I beleive a build environment is all that is needed.
aptitude install build-essentialLog into your server as root.
1 – Make the zabbix user and group:
adduser zabbixenter in new password
confirm
use the remaining defaults.
Add zabbix to the admin group:
adduser zabbix adm2 – Download and Untar the sources:
Log in as the zabbix user
su - zabbixcd ~
wget http://optusnet.dl.sourceforge.net/sourceforge/zabbix/zabbix-1.6.1.tar.gz
tar zxvpf zabbix-1.6.1.tar.gz
You might want to confirm that this is actually the latest version. You might also want to find a mirror closer to you by going to http://sourceforge.net/project/showfiles.php?group_id=23494.
3 – Configure, compile and install the server:
cd zabbix-1.6.1/./configure --prefix=/usr --enable-agent && make
su
make install
4 – Prepare the rest of the system:
nano /etc/servicesAdd at the end:
zabbix_agent 10050/tcp # Zabbix portsSave and exit.
5- Create the configuration directories and copy the default files in
mkdir /etc/zabbixchown -R zabbix.zabbix /etc/zabbix/
cp misc/conf/zabbix_agentd.conf /etc/zabbix/
Edit the agent’s configuration:
nano /etc/zabbix/zabbix_agentd.confMake sure that the Server parameter points to the server or proxy’s address.
Server=127.0.0.1Save and exit.
6- Make init.d startup script
Copy the init.d script to the right spot:
cp misc/init.d/debian/zabbix-agent /etc/init.dYou need to edit these script files as the compiled versions of the zabbix files is placed under /usr/sbin (/usr/bin in older versions).
Edit the agent startup script
nano /etc/init.d/zabbix-agentChange this line:
DAEMON=/home/zabbix/bin/${NAME}replace it with:
DAEMON=/usr/sbin/${NAME}Save and exit.
Now set the correct permissions and set ZABBIX to start when the machine boots:
chmod 755 /etc/init.d/zabbix-agentupdate-rc.d zabbix-agent defaults
7- Test it out.
Start the agent:
/etc/init.d/zabbix-agent startNow check to make sure that they are running:
ps -aux | grep zabbixYou should see multiple instances of zabbix_agentd running if everything has gone ok. If not, check /tmp/zabbix_agentd.log for errors.