Zabbix 1.4.2 на 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 can't 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 �CR 755 /etc/zabbix
#chown �CR 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 [url]http://serverip[/url], 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.

你可能感兴趣的:(职场,监控,zabbix,休闲)