zabbix 1.9.3 on Debian squeeze

[QUICK INSTALL]

# aptitude install build-essential mysql-server libmysqlclient-dev php5 php5-gd php5-mysql snmp libsnmp-dev snmpd libcurl4-openssl-dev fping libiksemel3 libiksemel-dev

# adduser zabbix
# adduser zabbix adm

# mysql -u root -p -e “create database zabbix;”
# mysql -u root -p -e “grant all privileges on zabbix.* to [email protected] identified by ‘zabbix’;”

# su – zabbix
$ cd /home/zabbix

$ wget http://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Development/1.9.3/zabbix-1.9.3.tar.gz
$ tar zxvf zabbix-1.9.3.tar.gz
$ cd zabbix-1.9.3/

$ mysql -D zabbix -uzabbix -pzabbix < /home/zabbix/zabbix-1.9.3/create/schema/mysql.sql
$ mysql -D zabbix -uzabbix -pzabbix < /home/zabbix/zabbix-1.9.3/create/data/images_mysql.sql
$ mysql -D zabbix -uzabbix -pzabbix < /home/zabbix/zabbix-1.9.3/create/data/data.sql

$ ./configure –prefix=/usr –with-mysql –with-net-snmp –with-libcurl –with-jabber=/usr/ –enable-server –enable-agent
$ make
$ su – root
# cd /home/zabbix/zabbix-1.9.3/
# make install

# mkdir /etc/zabbix
# cp -R /home/zabbix/zabbix-1.9.3/misc/conf/* /etc/zabbix/
# chown -R zabbix.zabbix /etc/zabbix/

# nano /etc/zabbix/zabbix_server.conf

# DBUser=zabbix
# DBPassword=zabbix

# cp /home/zabbix/zabbix-1.9.3/misc/init.d/debian/zabbix-* /etc/init.d/
# nano /etc/init.d/zabbix-server

change
DAEMON=/usr/local/sbin/${NAME}
to
DAEMON=/usr/sbin/${NAME}

nano /etc/init.d/zabbix-agent

change
DAEMON=/usr/local/sbin/${NAME}
to
DAEMON=/usr/sbin/${NAME}

# chmod 755 /etc/init.d/zabbix-server
# update-rc.d zabbix-server defaults
# chmod 755 /etc/init.d/zabbix-agent
# update-rc.d zabbix-agent defaults

# /etc/init.d/zabbix-server start
# /etc/init.d/zabbix-agent start

# nano /etc/apache2/sites-enabled/000-default

Alias /zabbix /home/zabbix/public_html/
<Directory /home/zabbix/public_html>
  AllowOverride FileInfo AuthConfig Limit Indexes
  Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
  <Limit GET POST OPTIONS PROPFIND>
    Order allow,deny
    Allow from all
  </Limit>
  <LimitExcept GET POST OPTIONS PROPFIND>
    Order deny,allow
    Deny from all
  </LimitExcept>
</Directory>

# /etc/init.d/apache2 restart

# su – zabbix
$ mkdir /home/zabbix/public_html
$ cp -R zabbix-1.9.3/frontends/php/* /home/zabbix/public_html/

# http://localhost/zabbix
# Login with user “admin” and password zabbix”

[TIP]

memory_limit = 256M
post_max_size = 32M
upload_max_filesize = 16M
max_execution_time = 600
max_input_time = 600
date.timezone = “Asia/Bangkok”

edit : Sep 10, 2011

4 responses to “zabbix 1.9.3 on Debian squeeze”

  1. Sabine says:

    Not work here

    # wget http://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Development/1.9.3/zabbix-1.9.3.tar.gz
    # su – zabbix
    # tar zxvpf zabbix-1.9.3.tar.gz

    Can not find this here
    # mysql -D zabbix -uzabbix -pzabbix < /home/zabbix/zabbix-1.9.3/create/schema/mysql.sql

  2. Rafael Bittencourt says:

    LOL !
    Very good this post, I followed it step by step and was perfect, well better of what the documentation of the proper site of the Zabbix. Congratulations and thanks a lot.

    Rafael.

  3. admin says:

    Sabine :

    I just fix that issue , thank a lot.