Here’s a how-to setup your own Zabbix server on Debian 3.1 (with initial instuctions from the how-to forge) but you should be able to use this guide for any distro. You will notice however, if you check the how-to forge’s instructions, that I seem to be missing some steps. This is because they weren’t needed in my installation (for example I didn’t need to edit /etc/zabbix/zabbix_agentd.conf and changing mysql’s password to “secret” created some problems. You can figure how to do these steps on your own anyway.

I used a minimal install, without any desktop enviroment and I use webmin for administration procedures. Most of the following will be from the terminal.

First install necessary packages that you’ll use to compile and setup your server.


Now, setup the zabbix user and group

$groupadd zabbix
$useradd -c 'Zabbix' -d /home/zabbix -g zabbix -s /bin/bash zabbix
$mkdir /home/zabbix
$chown -R zabbix.zabbix /home/zabbix
$cd /home/zabbix

Download the source in the zabbix homedir. I used lynx.
Now compile and install (don’t forget to change your version number in case it changed

$cd /home/zabbix
$tar zxvpf zabbix-1.1beta9.tar.gz
$mv zabbix-1.1beta9 zabbix
$chown -R zabbix.zabbix /home/zabbix/zabbix
$cd zabbix
$su - zabbix

$mysql -p -u root
>create database zabbix
$mysql -u root -p zabbix < create/mysql/schema.sql
$mysql -u root -p zabbix < create/data/data.sql

$./configure --prefix=/usr --with-mysql --with-net-snmp --enable-server --enable-agent
$make install

$mkdir /etc/zabbix
$chown -R zabbix.zabbix /etc/zabbix/
$cp misc/conf/zabbix_* /etc/zabbix/

Edit the /etc/services file to declare the ports zabbix will use. Add the following lines

# Zabbix ports
zabbix_agent 10050/tcp
zabbix_trap 10051/tcp

If all went well, your zabbix server must be ready to use. Start it and the agent (so it can monitor itself)


Now lets add some router alarms