Ad Widget

Collapse

HOWTO Install Zabbix 1.4.1 on Freebsd 6.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aalexanderr
    Junior Member
    • Jul 2007
    • 26

    #1

    HOWTO Install Zabbix 1.4.1 on Freebsd 6.2

    Установка Zabbix 1.4.1 на FreeBSD 6.2.


    1) Шаг первый - скачиваем все необходимые нам архивчики.. Вот что нам будет необходимо (помимо этого нам нужен будет ещё пакет perl-5.8.8 и пакет net-snmp-5.2.2_3, но мы их возьмём с установочных дисков от фряхи):
    #ls /tmp/installs
    curl-7.16.3.tar.gz jpegsrc.v6b.tar.gz zabbix-1.4.1.tar.gz
    fping-2.4b2.tbz libpng-2.1.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) Шаг второй - распаковываем их.
    #cd /tmp/installs
    #tar -xvpf curl-7.16.3.tar.gz
    #tar -xvpf jpegsrc.v6b.tar.gz
    #tar -xvpf zabbix-1.4.1.tar.gz
    #tar -xvpf libpng-2.1.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) То о чём я и говорил устанавливаем перл 5.8.8 и библиотеки xml.
    #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-2.1.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.1
    #./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

    --------------------------------------------------------------------------
    #/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.

    Настройка закончена. Если не юзать sysinstall, то необходимо поставить перл из сорсов, libxml2, libiconv, net-snmp...

    wait for a while and i post normal wiki with photo...
    Last edited by aalexanderr; 08-07-2007, 16:28.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Please add this information to ZABBIX Wiki. Thank you!
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • treyh
      Member
      • May 2007
      • 64

      #3
      Zabbix 1.4.1 Install on Freebsd (In English)

      I just put my guide on the wiki, properly formatted

      http://www.zabbix.com/wiki/doku.php?id=howtopenbsd
      Last edited by treyh; 13-07-2007, 15:19.

      Comment

      • aalexanderr
        Junior Member
        • Jul 2007
        • 26

        #4
        How to install Zabbix 1.4.2 from source (userfull for all systems)


        How to install Zabbix 1.4.2 on Freebsd 6.2 WIKI:
        http://www.zabbix.com/wiki/doku.php?...on_freebsd_6.2

        Comment

        • marc
          Senior Member
          • Oct 2004
          • 146

          #5
          i dont wanna excoriate your doing but the _right_ way on fbsd is portinstall -r zabbix or cd /usr/ports/net-mgmt/zabbix ; make install clean.
          you are on FBSD! so use the advantages.. e.g
          portinstall apache2 and so on.. why compiling from source if portstree is doing it and keeping your dependencies accurate. just wondering.. maybe i dont get all input from inituall post and you describe an installation without network.. (wondering how zabbix will benefit you then). even if you like 1.4.2 pre.. you should not need to compile the rest from source.
          Last edited by marc; 16-07-2007, 12:30.

          Comment

          • aalexanderr
            Junior Member
            • Jul 2007
            • 26

            #6
            Originally posted by marc
            i dont wanna excoriate your doing but the _right_ way on fbsd is portinstall -r zabbix or cd /usr/ports/net-mgmt/zabbix ; make install clean.
            you are on FBSD! so use the advantages.. e.g
            portinstall apache2 and so on.. why compiling from source if portstree is doing it and keeping your dependencies accurate. just wondering.. maybe i dont get all input from inituall post and you describe an installation without network.. (wondering how zabbix will benefit you then). even if you like 1.4.2 pre.. you should not need to compile the rest from source.
            this is my way.. i don't like ports. when i am doing all by myself and i got some errors i know where and why this problem start... and how to resolve it.

            You may use what you want packages, ports collection, source.. if you like it Do it.

            Comment

            • treyh
              Member
              • May 2007
              • 64

              #7
              ports vs packages vs source

              I find that packages almost always have problems with freebsd. Small applications work, like perl, but things like php/mysql simply do not.

              Ports take FOREVER to install sometimes and then have intermittent issues.

              I find it easiest and more successful to install from source.

              Comment

              • DiedX
                Senior Member
                • Oct 2004
                • 106

                #8
                I disagree. That said: Zabbix 1.4 simply isn't ported (yet).
                https://www.diederik.nl

                Comment

                • treyh
                  Member
                  • May 2007
                  • 64

                  #9
                  ports

                  Some ports work great, like perl58 but others do not, like apache22 and php5.

                  Installing something from source gives you the best chance for it to work and if it doesn't, it will tell you whats wrong which gives you a point to start from.

                  Comment

                  • holtet
                    Junior Member
                    • Aug 2007
                    • 9

                    #10
                    Originally posted by treyh
                    I just put my guide on the wiki, properly formatted
                    http://www.zabbix.com/wiki/doku.php?id=howtopenbsd
                    I cannot find it through this URL...

                    Comment

                    • mrdarcy
                      Junior Member
                      Zabbix Certified Specialist
                      • Oct 2006
                      • 5

                      #11
                      Originally posted by holtet
                      I cannot find it through this URL...
                      Code:
                      [url]http://www.zabbix.com/wiki/doku.php?id=howto:openbsd[/url]

                      Comment

                      • grond
                        Junior Member
                        • Aug 2007
                        • 2

                        #12
                        I'd like to install Zabbix on FreeBSD 6.2 using nothing but pkg_add -r functionality. What are the required steps to get a Zabbix installed this way? Thanks.

                        Comment

                        • treyh
                          Member
                          • May 2007
                          • 64

                          #13
                          link

                          Originally posted by mrdarcy
                          Code:
                          [url]http://www.zabbix.com/wiki/doku.php?id=howto:openbsd[/url]
                          that link worked for me

                          Comment

                          • treyh
                            Member
                            • May 2007
                            • 64

                            #14
                            package install

                            Originally posted by grond
                            I'd like to install Zabbix on FreeBSD 6.2 using nothing but pkg_add -r functionality. What are the required steps to get a Zabbix installed this way? Thanks.
                            I've tried to install from packages on freebsd 6.1 and 6.2 but the package for zabbix is old, 1.1.6 I believe.

                            The wiki link above is your best bet, I've installed it 25+ times w/ very few problems.

                            Comment

                            • grond
                              Junior Member
                              • Aug 2007
                              • 2

                              #15
                              The link in the wiki requires compiling from source, which I want to avoid. I know that zabbix-1.4.1 is available as a package. So what I'd like to know is the sequence of pkg_add -r steps, and the editing of which config files, etc. will get me a Zabbix install.

                              If it is not possible to install Zabbix completely via packages, I won't be able to convince by boss to use FreeBSD and evaluate the Zabbix product.

                              Comment

                              Working...