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

If you liked what you just read, take a chair, grab an  RSS feed and leave a comment. Thanks!


Comments: Comments

Jump to comment form | comments rss [?] | trackback uri [?]

My comments elsewhere

  • Get A Move On Google! (AtheismBeliefGeneral)
    Created Sep 3 last 3 comments, out of 3 Db0 says: Sep 3 at 07:25 AM Sandeep, as it's Open Source I'm certain their license will allow it ;)Adrian, try using a VM Db0 says: Sep 3 at 16:30 PM I was abo. […]
  • Vjack (www.haloscan.com)
    Created Sep 1 last 1 comments, out of 2 Db0 says: Sep 1 at 13:57 PM best of luck mate! add comment
  • αλλαγές στο elkosmas.gr (elkosmas)
    Created Sep 1 last 2 comments, out of 2 Db0 says: Sep 1 at 14:15 PM Ευχαριστώ για το trackback Κοσμά και ελπίζω να σου φαίνεται καλύτερο το hosting. […]
  • Reddit & Readership (AtheismBeliefGeneral)
    Created Aug 25 last 2 comments, out of 8 Db0 says: Aug 28 at 14:02 PM @ThungurKnifur If Adrian is such a spammer, it wouldn't be difficult to figure out who he is in SU from seeing who submitted most. […]
  • Starfish (Waldheri.com)
    Created Aug 31 last 1 comments, out of 1 Db0 says: Aug 31 at 13:51 PM Sounds quite interesting. I may check it out. add comment

Zoulapia

  • 28.08 Quote of the Day: Science contribution

    Quoth Matthew Cob and Jerry Coyne

    You suggest that science may bring about “advances in theological thinking”. In reality, the only contribution that science can make to the ideas of religion is atheism.

    (h/t Pharyngula)

  • 21.08 Quote of the Day: Walking

    Quoth Pat Condell

    Because you see I’m not in the market for a car, any car. I decided to walk. That’s going to take me where I’m going because I’m going where it takes me. And I’ll be happy to get there. In fact, I already am.

    As always it was another excellent vid from Pat, but this particular quote was just brilliant.

  • 15.08 Quote of the Day: Vulnerabilities

    Quoth Anonymous

    The Bible exploits unpatched vulnerabilities in the human mind.

    :D