Installation

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.

mysql-server
mysql-dev
snmp-dev
php-mysql
php4-gd
fping

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
>quit
$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
$su
$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)

$zabbix_server
$zabbix_agentd

Now lets add some router alarms



My comments elsewhere

Zoulapia

  • 22.07 Quote of the Day

    Lab Lemming said

    So the problem isn’t the greedy fuckers, the problem is the arrogant fuckers who have been telling the rest of the world “my way or the highway” for the past 7 years. ’cause door number 2 is exactly what has happened. So long, uncle Sam, and thanks for all the fish.

    So yeah, America is fucked. (Great post btw)

  • 21.07 Run while you still can

    Things are not looking positive for the Microsoft shareholders.

    I can’t say I’m surprised as it was only a matter of time until the constand foot-shooting and shoddy work MS is known for, finally caught up with them.

    I’m only surprised they managed to last this long.

  • 09.07 Quote of the Day

    Quoth Greg

    Ayn Rand is just Nietzche with a heaping help of asshole, arrogance, and selfishness thrown in. Do yourself a favor; skip Rand, read Nietzche.

    :D