Howto: Installation of Zabbix 1.6.4 on Ubuntu 8.04 Hardy Heron

———————————————————————————
Howto: Installation of Zabbix 1.6.4 on Ubuntu 8.04 Hardy Heron
———————————————————————————

Needed Components:
- Apache
- MySQL-Server
- PHP5

1. Installation of needed packages:
sudo aptitude install build make snmp libsnmp-dev snmpd libmysql++-dev

2. Make the zabbix user and group:
sudo adduser zabbix
sudo adduser zabbix admin
su – zabbix

3. Download and extract the source:
wget “http://switch.dl.sourceforge.net/sourceforge/zabbix/zabbix-1.6.4.tar.gz”
tar zxvpf zabbix-1.6.4.tar.gz

4. Create a zabbix database and populate it:
mysql -u root -p
create database zabbix;
quit;

mysql -u root -p zabbix < /home/zabbix/zabbix-1.6.4/create/schema/mysql.sql
mysql -u root -p zabbix < /home/zabbix/zabbix-1.6.4/create/data/data.sql

5 – Configure, compile and install the server:
cd zabbix-1.6.4/
./configure –prefix=/usr –with-mysql –with-net-snmp –enable-server –enable-agent
make
sudo make install

6 – Prepare the rest of the system:

sudo nano /etc/services
Add at the end:
zabbix_agent 10050/tcp # Zabbix ports
zabbix_trap 10051/tcp
Save and exit.

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

nano /etc/zabbix/zabbix_server.conf
Change the SQL-Password:
# Database password
# Comment this line if no password used
DBPassword= Save and exit.

sudo zabbix_server
sudo zabbix_agent

7 – Configure web interface:

mkdir /home/zabbix/public_html
cp -R /home/zabbix/zabbix-1.6.4/frontends/php/* /home/zabbix/public_html/

Edit /etc/apache2/sites-enabled/000-default:
sudo nano /etc/apache2/sites-enabled/000-default
Work into file:
Alias /zabbix/ /home/zabbix/public_html/

AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Order allow,deny
Allow from all Order deny,allow
Deny from all
Save and exit.

sudo nano /etc/php5/apache2/php.ini
Change the following values:
max_execution_time = 300 ; Maximum execution time of each script, in seconds
date.timezone = Europe/Berlin
Save and exit.

sudo /etc/init.d/apache2 restart

8. Final Steps:
Point your browser to: http:///zabbix/

- Introduction: read and click Next
- License Agreement: Read, check ‘I Agree’, click Next
- Check of Pre-Requisites: Fix any problems, click retry. Click Next when all pre-requisites are OK.
- Configure DB Connection: Enter appropriate settings and click Test Connection.
- Click Next when OK.
- Pre-Installation Summary: Verify installation settings, click Next.
- Install: Click Save Configuration file and save to machine.
Copy zabbix.conf.php to /home/zabbix/public_html/conf/zabbix.conf.php
One way to do this from a desktop machine (requires ssh installed):
scp zabbix.conf.php zabbix@:/home/zabbix/public_html/conf/
- Click Retry and click Next when OK.
- Finish: Click Finish to complete installation.

Howto: Installation of Zabbix 1.6.4 on Ubuntu 8.04 Hardy Heron – Ubuntu Forums

Author: WladyX on 7 August, 2009
Category: General, Ubuntu

Leave a Reply

Last articles