Installation of Zabbix 1.4.2 on FreeBSD 6.2
1) Download all archives.
#ls /tmp/installs
curl-7.16.3.tar.gz jpegsrc.v6b.tar.gz pre-zabbix-1.4.tar.gz
fping-2.4b2.tbz libpng-1.2.18.tar.gz zlib-1.2.3.tar.gz
gd-2.0.35.tar.gz mysql-5.0.41.tar.gz httpd-2.2.4.tar.gz
perl-5.8.8.tbz php-5.2.3.tar.gz
2) Untar all archivers.
#cd /tmp/installs
#tar -xvpf curl-7.16.3.tar.gz
#tar -xvpf jpegsrc.v6b.tar.gz
#tar -xvpf pre-zabbix-1.4.tar.gz
#tar -xvpf libpng-1.2.18.tar.gz
#tar -xvpf zlib-1.2.3.tar.gz
#tar -xvpf gd-2.0.35.tar.gz
#tar -xvpf mysql-5.0.41.tar.gz
#tar -xvpf httpd-2.2.4.tar.gz
#tar -xvpf php-5.2.3.tar.gz
3) Install perl 5.8.8, libraries xml, net-snmp from sysinstall.
#sysinstall -> configure -> packages -> cd/dvd -> perl -> all
#sysinstall -> configure -> packages -> cd/dvd -> net-snmp -> all
4) Install apache2.
#cd httpd-2.2.4
#./configure --enable-so && make && make install
#ee /usr/local/apache2/conf/httpd.conf: DirectoryIndex index.php index.html index.html.var
#ee /usr/local/apache2/conf/httpd.conf: Addtype application/x-httpd-php .php
5) Install mysql.
#adduser (username=mysql shell=nologin password=mysql)
#cd mysql-5.0.41
#./configure --prefix=/usr/local/mysql --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --disable-shared --enable-assembler --without-bench --without-man --without-docs --without-debug --with-berkeley-db --with-charset=koi8r --with-extra-charsets=none --localstatedir=/usr/local/mysql/data --with-mysqld-user=mysql --disable-large-files --with-libwrap && make && make install
#mkdir /usr/local/mysql/data
#/usr/local/mysql/bin/mysql_install_db
#chown -R root:mysql /usr/local/mysql
#chown -R mysql:mysql /usr/local/mysql/data
#chmod -R 755 /usr/local/mysql/data
6) Install zlib.
#cd ../zlib-1.2.3
#./configure && make && make install
7) Install png libraries.
#cd ../libpng-1.2.18
#./configure && make && make install
8) Install jpeg libraries.
#cd ../jpeg-6b
#./configure --prefix=/usr/local --enable-shared --enable-static && make && make install
9) Install gd libraries. png - yes, jpeg - yes.
#cd ../gd-2.0.35
#./configure --x-includes=/usr/local/include --x-libraries=/usr/local/lib && make && make install
10) Install php module for apache2.
#cd ../php-5.2.3
#./configure --with-mysql=/usr/local/mysql --enable-bcmath --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --with-zlib --with-apxs2=/usr/local/apache2/bin/apxs --disable-cgi --disable-ipv6 && make && make install
#cp php.ini-recommended /usr/local/lib/php.ini
#ee /usr/local/lib/php.ini
doc_root = "/usr/local/apache2/htdocs/"
max_execution_time = 300
file_uploads = on (if file_uploads=off when we cannot upload images and create icons and backgrounds)
date.timezone = Europe/Moscow
#ls /usr/local/apache2/modules
httpd.exp libphp5.so
12) Install curl libraries for web monitoring.
cd ../curl-7.16.3
./configure --prefix=/usr/local --disable-ipv6 --without-ssl && make && make install
13) Install zabbix.
#adduser (username=zabbix shell=nologin password=zabbix)
#cp /usr/local/lib/libcurl* /usr/lib/
#cd ../zabbix-1.4.2
#./configure --enable-server --enable-agent --enable-static --with-mysql=/usr/local/mysql/bin/mysql_config --with-net-snmp --with-libcurl=/usr/local/bin/curl-config && make && make install
#mkdir /etc/zabbix
#cp ./misc/conf/zabbix_server.conf /etc/zabbix/zabbix_server.conf
#chmod –R 755 /etc/zabbix
#chown –R zabbix:zabbix /etc/zabbix
#rm -rf /usr/local/apache2/htdocs/*
#cp -rf ./frontends/php/* /usr/local/apache2/htdocs/
#chmod -R 755 /usr/local/apache2/htdocs
#ee /etc/zabbix/zabbix_server.conf
FpingLocation=/usr/local/sbin/fping
PingerFrequency=30
14) Install utility for simplecheck like icmpping in zabbix.
#cd ..
#pkg_add fping-2.4b2.tbz
#chown root:zabbix /usr/local/sbin/fping
#chmod 710 /usr/local/sbin/fping
#chmod ug+s /usr/local/sbin/fping
15) Run & Setup.
#/usr/local/mysql/bin/mysqld_safe --user=mysql &
#/usr/local/mysql/bin/mysql -u root
mysql> create database zabbix;
mysql> grant all on zabbix.* to zabbix@localhost identified by 'zabbix';
mysql> exit;
# cd create/schema
#/usr/local/mysql/bin/mysql -u zabbix --password='zabbix' zabbix < mysql.sql
# cd ../data
#/usr/local/mysql/bin/mysql -u zabbix --password='zabbix' zabbix < data.sql
#/usr/local/mysql/bin/mysql -u zabbix --password='zabbix' zabbix < images_mysql.sql
#/usr/local/apache2/bin/httpd &
#/usr/local/bin/zabbix_server -c /etc/zabbix/zabbix_server.conf
#cat /tmp/zabbix_server.log -> yeap... all right! let's go..
Run you browser address http://serverip, follow instructions. (Mysql -> localhost, base -> zabbix, username -> zabbix, password -> zabbix). Save config zabbix.conf.php to /usr/local/apache2/htdocs/conf/
#chmod -R 755 /usr/local/apache2/htdocs/conf/zabbix.conf.php
Login: admin - Ok.
SAMPLE Settings and NOTES:
Create an Item (Configuration > Item > Create Item):
Graphing the System Uptime.
SNMP OID: DISMAN-EVENT-MIB::sysUpTimeInstance
Type of Information: Numeric (Float)
Units: s
Use Multiplier: Custom Multiplier
Custom Multiplier: 0.01
Store Value: As is
Graphing Interface Traffic.
SNMP OID: interfaces.ifTable.ifEntry.ifInOctets.1 # or ifOutOctets
#check on ifDesc to check appropriate interface used
Type of Information: Numeric (Integer)
Units: b
Use Multiplier: Custom Multiplier
Custom Multiplier: .270
Store Value: Delta (Simple Change)
Graphing CPU Utilization.
SNMP OID: host.hrDevice.hrProcessorTable.hrProcessorEntry.hrProcessorLoad.5
# check the proper CPU number.
Type of Information: Numeric (Integer)
Units: %
Use Multiplier: Do not use
Store Value: As is
Installation of Zabbix 1.4.2 on FreeBSD 6.2
Posted by zaene at 1/17/2008 10:58:00 PM
Subscribe to:
Post Comments (Atom)
2 comments:
Good job. Unfortunately your solution is for FreeBSD 6.2 only and won't work on FreeBSD 7.0. Zabbix configure is unable to find libcurl there =(
Hi,
I am successful on FreeBSD 7.0 with: ln -s /usr/local/include/curl /usr/include/ also ln -s /usr/local/lib/libnetsnmp* /usr/lib/ and
./configure --enable-server --with-mysql --with-net-snmp --with-libcurl
make install
Post a Comment