Monday, August 20, 2007

Installing ZABBIX 1.4.1

The new ZABBIX is getting better and better. Below are the steps I did to get
ZABBIX 1.4.1 up and running. (Assumed there is already Apache2, PHP and MySQL running)

1. First, get the source code.
$ wget

2. Extract the source code
$ tar -xvvzf zabbix-1.4.1.tar.gz

3. Prepare MySQL. by creating database for ZABBIX
$ mysql -u<username> -p<password>
mysql> create database zabbix;
mysql> grant all on zabbix.* to <username>@localhost identified
by '<mysqlpassword>';
mysql> quit;
$ cd <path-of-your-zabbix-source>/create/schema/
$ cat mysql.sql | mysql -u<username> -p<password> zabbix
$ cd ../data
$ cat data.sql | mysql -u<username> -p<password> zabbix
$ cat images_mysql.sql | mysql -u<username> -p<password> zabbix
$ cd ../..

4. Configure the source code, then proceed with install
$ ./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-libcurl
$ sudo make install

5. Create zabbix config files
$ sudo mkdir /etc/zabbix/
$ sudo cp
<path-of-your-zabbix-source>/misc/conf/zabbix_server.conf /etc/zabbix/
$ sudo nano /etc/zabbix/zabbix_server.conf

6. Create directories for the frontends
$ sudo mkdir /usr/local/zabbix
$ sudo chown -R <username.username> /usr/local/zabbix/
$ rsync -rvu <path-of-your-zabbix-source>/frontend/php /usr/local/zabbix/

7. Edit Apache2 config file to point your own ZABBIX url into the frontend's

8. Open a web browser, go to your ZABBIX url, then proceeds from there

9. To get ZABBIX up, you need to execute zabbix_server.

Done :-)