Ad Widget

Collapse

Не могу установить 1.8.2 (делаю первый раз)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Filog
    Senior Member
    • Apr 2010
    • 161

    #1

    Не могу установить 1.8.2 (делаю первый раз)

    Добрый день! Далаю make install получаю в ответ:
    vpn-2# make install
    make: don't know how to make install. Stop

    Вроде далал раньше такую процедуру не один раз. MySQL установил, запустил, базу создал.
    Last edited by Filog; 31-05-2010, 08:58.
  • Hober
    Senior Member
    • Dec 2008
    • 109

    #2
    Originally posted by Filog
    Добрый день! Далаю make install получаю в ответ:
    vpn-2# make install
    make: don't know how to make install. Stop

    Вроде далал раньше такую процедуру не один раз. MySQL установил, запустил, базу создал.
    мм, а configure и make делал?
    Zabbix Servers - 1
    Zabbix Proxy - 145
    Monitored Servers: ~ 1400

    Comment

    • Raven2000
      Member
      • Dec 2009
      • 70

      #3
      Система какая?

      Comment

      • dotneft
        Senior Member
        • Nov 2008
        • 699

        #4
        какая разница какая система) конфигурять нужно прежде чем собирать

        Comment

        • Filog
          Senior Member
          • Apr 2010
          • 161

          #5
          Originally posted by hober
          ð¼ð¼, ð° configure ð¸ make ð´ðµð»ð°ð»?
          У меня на экране кракозяблики, что было написано?

          Comment

          • Filog
            Senior Member
            • Apr 2010
            • 161

            #6
            Originally posted by Raven2000
            Система какая?
            Система FreeBSD 7.1

            Comment

            • Filog
              Senior Member
              • Apr 2010
              • 161

              #7
              Originally posted by dotneft
              какая разница какая система) конфигурять нужно прежде чем собирать
              Хм... вроде конфигурил. Хорошо, еще раз пройдусь по пунктам документации..
              Могу расчитывать на помощь?

              Comment

              • Raven2000
                Member
                • Dec 2009
                • 70

                #8
                Разница в системах всегда есть.
                ==
                Можете рассчитывать на помощь.
                Завтра я выложу сюда черновой по шагам для фри. Далее переделаю статью с 1.6 до 1.8.2.

                Comment

                • Filog
                  Senior Member
                  • Apr 2010
                  • 161

                  #9
                  Originally posted by raven2000
                  Разница в системах всегда есть.
                  ==
                  Можете рассчитывать на помощь.
                  Завтра я выложу сюда черновой по шагам для фри. Далее переделаю статью с 1.6 до 1.8.2.
                  Спасибо, воспрял духом.

                  Comment

                  • Raven2000
                    Member
                    • Dec 2009
                    • 70

                    #10
                    Наметки. Перед началом новой установки посмотри чтобы в БД и на HDD не было ничего от zabbix. Или останови существующий и pkg_deinstall zabbix-xxx (если хочешь по чистому)
                    Code:
                    # cd /usr/ports/
                    # make search name=zabbix
                    
                    Port:   zabbix-agent-1.8.2_1,2
                    Path:   /usr/ports/net-mgmt/zabbix-agent
                    Info:   Enterprise-class open source distributed monitoring (agent)
                    Maint:  [email protected]
                    B-deps: libiconv-1.13.1_1
                    R-deps: libiconv-1.13.1_1
                    WWW:    http://www.zabbix.com/
                    
                    Port:   zabbix-frontend-1.8.2_1,2
                    Path:   /usr/ports/net-mgmt/zabbix-frontend
                    Info:   Enterprise-class open source distributed monitoring (frontend)
                    Maint:  [email protected]
                    B-deps:
                    R-deps: freetype2-2.3.11 jpeg-8_1 kbproto-1.0.3 libICE-1.0.4_1,1 libSM-1.1.0_1,1 libX11-1.2.1_1,1 libXau-1.0.4 libXaw-1.0.5_1,1 libXdmcp-1.0.2_1 libXext-1.0.5,1 libXmu-1.0.4,1 libXp-1.0.0,1 libXpm-3.5.7 libXt-1.0.5_1 libiconv-1.13.1_1 libpthread-stubs-0.3_3 libxcb-1.5 libxml2-2.7.6_2 mysql-client-5.0.90 net-snmp-5.4.2.1_6 pcre-8.00 perl-5.10.1 php5-5.2.12_1 php5-bcmath-5.2.12_1 php5-ctype-5.2.12_1 php5-gd-5.2.12_1 php5-mysql-5.2.12_1 php5-pcre-5.2.12_1 php5-snmp-5.2.12_1 php5-sockets-5.2.12_1 pkg-config-0.23_1 png-1.4.1_1 printproto-1.0.4 t1lib-5.1.2_1,1 xextproto-7.0.5 xproto-7.0.15
                    WWW:    http://www.zabbix.com/
                    
                    Port:   zabbix-proxy-1.8.2_1,2
                    Path:   /usr/ports/net-mgmt/zabbix-proxy
                    Info:   Enterprise-class open source distributed monitoring (proxy)
                    Maint:  [email protected]
                    B-deps: ca_root_nss-3.12.4 curl-7.20.0 gettext-0.17_1 gnutls-2.8.3 iksemel-1.4_1 libgcrypt-1.4.5 libgpg-error-1.7 libiconv-1.13.1_1 mysql-client-5.0.90 net-snmp-5.4.2.1_6 openldap-client-2.4.21 perl-5.10.1 pkg-config-0.23_1
                    R-deps: ca_root_nss-3.12.4 curl-7.20.0 fping-2.4b2_1 gettext-0.17_1 gnutls-2.8.3 iksemel-1.4_1 libgcrypt-1.4.5 libgpg-error-1.7 libiconv-1.13.1_1 mysql-client-5.0.90 net-snmp-5.4.2.1_6 openldap-client-2.4.21 perl-5.10.1 pkg-config-0.23_1
                    WWW:    http://www.zabbix.com/
                    
                    Port:   zabbix-server-1.8.2_1,2
                    Path:   /usr/ports/net-mgmt/zabbix-server
                    Info:   Enterprise-class open source distributed monitoring (server)
                    Maint:  [email protected]
                    B-deps: ca_root_nss-3.12.4 curl-7.20.0 gettext-0.17_1 gnutls-2.8.3 iksemel-1.4_1 libgcrypt-1.4.5 libgpg-error-1.7 libiconv-1.13.1_1 mysql-client-5.0.90 net-snmp-5.4.2.1_6 openldap-client-2.4.21 perl-5.10.1 pkg-config-0.23_1
                    R-deps: ca_root_nss-3.12.4 curl-7.20.0 fping-2.4b2_1 gettext-0.17_1 gnutls-2.8.3 iksemel-1.4_1 libgcrypt-1.4.5 libgpg-error-1.7 libiconv-1.13.1_1 mysql-client-5.0.90 net-snmp-5.4.2.1_6 openldap-client-2.4.21 perl-5.10.1 pkg-config-0.23_1
                    WWW:    http://www.zabbix.com/
                    
                    
                    # cd /usr/ports/net-mgmt/zabbix-server
                    # make config
                    
                    Options for zabbix-server 1.8.2_1,2              
                    
                    [X] MYSQL   Use MySQL backend
                    [ ] PGSQL   Use PostgreSQL backend
                    [X] SQLITE  Use SQLite backend
                    [  ] IPV6    Support for IPv6
                    [X] LDAP    Support for checking LDAP servers
                    [X] JABBER  Use jabber media type
                    [X] FPING   Use fping for pinging hosts
                    [  ] SSH     Use libssh2 for SSH-based checks
                    
                    # make install clean
                    
                    Options for libssh2 1.2.4,2
                    
                    [ ] GCRYPT  Use libgcrypt instead of OpenSSL
                    [ ] TRACE   Enable debug packet traces
                    [X] ZLIB    Enable compression
                    
                    ~~
                    ======================================================================
                    Zabbix requires a database.  If you are using SQLite, one will be
                    created automatically.  Otherwise you can install one as follows (<db>
                    is your database engine and <db_client> is its client program):
                    
                    % cd /usr/local/share/zabbix/server/create
                    % cat schema/<db>.sql data/data.sql data/images_<db>.sql | <db_client>
                    
                    To upgrade an existing database, see the scripts in
                    /usr/local/share/zabbix/server/upgrades.
                    ======================================================================
                    ===> Installing rc.d startup script(s)
                    ===>   Compressing manual pages for zabbix-server-1.8.2_1,2
                    ===>   Registering installation for zabbix-server-1.8.2_1,2
                    ===> SECURITY REPORT:
                          This port has installed the following files which may act as network
                          servers and may therefore pose a remote security risk to the system.
                    /usr/local/sbin/zabbix_server
                    
                          This port has installed the following startup scripts which may cause
                          these network services to be started at boot time.
                    /usr/local/etc/rc.d/zabbix_server
                    
                          If there are vulnerabilities in these programs there may be a security
                          risk to the system. FreeBSD makes no guarantee about the security of
                          ports included in the Ports Collection. Please type 'make deinstall'
                          to deinstall the port if this is a concern.
                    
                          For more information, and contact details about the security
                          status of this software, see the following webpage:
                    http://www.zabbix.com/
                    ===>  Cleaning for libssh2-1.2.4,2
                    ===>  Cleaning for zabbix-server-1.8.2_1,2
                    
                    # mysql -uroot -proot_pw
                    mysql> create database db_zabbix character set utf8;
                    mysql> quit;
                    # mysql -h localhost --user=root --password=root_pw -e"GRANT ALL ON db_zabbix.* TO username_zabbix@localhost IDENTIFIED BY 'username_zabbix_pw'" db_zabbix
                    
                    # cd /usr/local/share/zabbix/server/create
                    # cat schema/mysql.sql data/data.sql data/images_mysql.sql | mysql -uusername_zabbix -pusername_zabbix_pw db_zabbix
                    
                    
                    # cd /usr/ports/net-mgmt/zabbix-agent
                    # make config
                    
                    
                    Options for zabbix-agent 1.8.2_1,2
                    
                    [ ] IPV6  Support for IPv6
                    
                    # make install clean
                    ~~
                    ===> SECURITY REPORT:
                          This port has installed the following files which may act as network
                          servers and may therefore pose a remote security risk to the system.
                    /usr/local/sbin/zabbix_agent
                    /usr/local/bin/zabbix_sender
                    /usr/local/sbin/zabbix_agentd
                    /usr/local/bin/zabbix_get
                    
                          This port has installed the following startup scripts which may cause
                          these network services to be started at boot time.
                    /usr/local/etc/rc.d/zabbix_agentd
                    
                          If there are vulnerabilities in these programs there may be a security
                          risk to the system. FreeBSD makes no guarantee about the security of
                          ports included in the Ports Collection. Please type 'make deinstall'
                          to deinstall the port if this is a concern.
                    
                          For more information, and contact details about the security
                          status of this software, see the following webpage:
                    http://www.zabbix.com/
                    ===>  Cleaning for zabbix-agent-1.8.2_1,2
                    
                    # cd /usr/ports/net-mgmt/zabbix-frontend
                    # make config
                    
                    Options for zabbix-frontend 1.8.2_1,2
                    
                    [X] MYSQL   Use MySQL backend
                    [ ] PGSQL   Use PostgreSQL backend
                    [X] SQLITE  Use SQLite backend
                    
                    # make install clean
                    ~
                    
                    ===>   Registering installation for zabbix-frontend-1.8.2_1,2
                    ===>  Cleaning for zabbix-frontend-1.8.2_1,2
                    
                    Конфиги
                    
                    # cd /usr/local/etc/zabbix
                    # ls
                    zabbix_agent.conf.sample  zabbix_agentd.conf.sample zabbix_server.conf.sample
                    
                    # cp zabbix_server.conf.sample zabbix_server.conf
                    # chmod u+w zabbix_server.conf
                    # vi zabbix_server.conf
                    
                    
                    # cp zabbix_agentd.conf.sample zabbix_agentd.conf
                    # chmod u+w zabbix_agentd.conf
                    # vi zabbix_agentd.conf
                    
                    # /usr/local/etc/rc.d/zabbix_agentd start
                    Starting zabbix_agentd.
                    # /usr/local/etc/rc.d/zabbix_server start
                    Starting zabbix_server.
                    
                    # ps -ax |grep zabbix
                     5743  ??  IN     0:00,00 zabbix_agentd: main process (zabbix_agentd)
                     5744  ??  SN     0:00,01 zabbix_agentd: main process (zabbix_agentd)
                     5745  ??  IN     0:00,00 zabbix_agentd: waiting for connection (zabbix_agentd)
                     5746  ??  IN     0:00,00 zabbix_agentd: waiting for connection (zabbix_agentd)
                     5747  ??  IN     0:00,00 zabbix_agentd: waiting for connection (zabbix_agentd)
                     5748  ??  SN     0:00,00 zabbix_agentd: poller [sleeping for 1 seconds] (zabbi
                     5757  ??  IN     0:00,02 zabbix_server: main process (zabbix_server)
                     5758  ??  IN     0:00,00 zabbix_server: db config [sleeping for 60 seconds] (z
                     5759  ??  SN     0:00,04 zabbix_server: poller [sleeping for 5 seconds] (zabbi
                     5760  ??  SN     0:00,04 zabbix_server: poller [sleeping for 5 seconds] (zabbi
                     5761  ??  SN     0:00,04 zabbix_server: poller [sleeping for 5 seconds] (zabbi
                     5762  ??  SN     0:00,04 zabbix_server: poller [sleeping for 5 seconds] (zabbi
                     5763  ??  SN     0:00,03 zabbix_server: poller [sleeping for 5 seconds] (zabbi
                     5764  ??  IN     0:00,00 zabbix_server: trapper [waiting for connection] (zabb
                     5765  ??  IN     0:00,00 zabbix_server: trapper [waiting for connection] (zabb
                     5766  ??  IN     0:00,00 zabbix_server: trapper [waiting for connection] (zabb
                     5767  ??  IN     0:00,00 zabbix_server: trapper [waiting for connection] (zabb
                     5768  ??  IN     0:00,00 zabbix_server: trapper [waiting for connection] (zabb
                     5769  ??  SN     0:00,00 zabbix_server: pinger [sleeping for 5 seconds] (zabbi
                     5770  ??  SN     0:00,00 zabbix_server: sender [sleeping for 30 seconds] (zabb
                     5771  ??  IN     0:01,18 zabbix_server: housekeeper [sleeping for 1 hour(s)] (
                     5772  ??  SN     0:00,00 zabbix_server: timer [sleeping for 30 seconds] (zabbi
                     5773  ??  SN     0:00,03 zabbix_server: poller [sleeping for 5 seconds] (zabbi
                     5774  ??  SN     0:00,00 zabbix_server: http poller [sleeping for 5 seconds] (
                     5775  ??  IN     0:00,04 zabbix_server: discoverer [sleeping for 60 seconds] (
                     5776  ??  SN     0:00,00 zabbix_server: db syncer [sleeping for 5 seconds] (za
                     5777  ??  SN     0:00,00 zabbix_server: escalator [sleeping for 3 seconds] (za
                     5868   0  S+     0:00,00 grep zabbix
                    
                    
                    веб
                    Шоты есть но выкладывать не буду в статье увидишь
                    # mv zabbix.conf.php /usr/local/www/zabbix/conf
                    Описание конфигов смотри здесь http://www.ignix.ru/public/daemon/zabbix
                    Седня начну переписывать. Тк очень удачно в этр раз они сделали у меня без каких либо глюков все идет. (не то что 1.8 и 1.8.1 с них пришлось откатываться на 1.6)

                    Comment

                    • Filog
                      Senior Member
                      • Apr 2010
                      • 161

                      #11
                      Originally posted by raven2000
                      Наметки. Перед началом новой установки посмотри чтобы в БД и на hdd не было ничего от zabbix. Или останови существующий и pkg_deinstall zabbix-xxx (если хочешь по чистому)
                      Code:
                      # cd /usr/ports/
                      # make search name=zabbix
                      
                      Шоты есть но выкладывать не буду в статье увидишь
                      # mv zabbix.conf.php /usr/local/www/zabbix/conf
                      Описание конфигов смотри здесь http://www.ignix.ru/public/daemon/zabbix
                      Седня начну переписывать. Тк очень удачно в этр раз они сделали у меня без каких либо глюков все идет. (не то что 1.8 и 1.8.1 с них пришлось откатываться на 1.6)
                      Спасибо сегодня попробую.

                      Comment

                      • Raven2000
                        Member
                        • Dec 2009
                        • 70

                        #12
                        Сегодня уже будет под 1.8.2.х с полным переводом всех конфигурационных файлов. Далее буду дополнять добавление узлов\прокси распределенность и тп.

                        Comment

                        • Raven2000
                          Member
                          • Dec 2009
                          • 70

                          #13
                          Готово. На данный момент обновил статью до 1.8.2.х
                          Дополнительные фичи чуть позже допишу,а то не успеваю
                          Zabbix - мониторим и отслеживаем
                          конфиги стали толще (достало переводить =))

                          Comment

                          • Filog
                            Senior Member
                            • Apr 2010
                            • 161

                            #14
                            Originally posted by Raven2000
                            Готово. На данный момент обновил статью до 1.8.2.х
                            Дополнительные фичи чуть позже допишу,а то не успеваю
                            Zabbix - мониторим и отслеживаем
                            конфиги стали толще (достало переводить =))
                            Вот чем завершилась установка
                            ************************************************** **********
                            ===> Compressing manual pages for openldap-client-2.3.41
                            ===> Running ldconfig
                            /sbin/ldconfig -m /usr/local/lib
                            ===> Registering installation for openldap-client-2.3.41
                            ===> Returning to build of zabbix-server-1.8.2_1,2
                            ===> zabbix-server-1.8.2_1,2 depends on shared library: mysqlclient.16 - found
                            ===> Configuring for zabbix-server-1.8.2_1,2
                            configure: WARNING: you should use --build, --host, --target
                            checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
                            checking whether build environment is sane... configure: error: newly created file is older than distributed files!
                            Check your system clock
                            ===> Script "configure" failed unexpectedly.
                            Please report the problem to [email protected] [maintainer] and
                            attach the "/usr/local/zabbix/zabbix-server/work/zabbix-1.8.2/config.log"
                            including the output of the failure of your make command. Also, it might be
                            a good idea to provide an overview of all packages installed on your system
                            (e.g. an `ls /var/db/pkg`).
                            *** Error code 1

                            Stop in /usr/local/zabbix/zabbix-server.
                            *** Error code 1

                            Stop in /usr/local/zabbix/zabbix-server.
                            vpn-2#

                            Comment

                            • Raven2000
                              Member
                              • Dec 2009
                              • 70

                              #15
                              0. Каким лядом у тебя ставится заббикс сюда /usr/local/zabbix во фри штатное его место /usr/local/etc/zabbix/? убери и см пп 5.
                              1. uname -a
                              2. работаем естественно от рута.
                              Code:
                              # cd /usr/ports/net-mgmt/zabbix-server && make deinstall clean
                              # cd /usr/ports/net-mgmt/zabbix-agent && make deinstall clean
                              # cd /usr/ports/net-mgmt/zabbix-frontend && make deinstall clean
                              Code:
                              # pkg_info |grep "zabbix"
                              Поищи и почисти остатки забикса в системе.
                              3. Обнови дату и время
                              Code:
                              # /usr/sbin/ntpdate ntp.rinet.ru
                              4. Обнови порты
                              Code:
                              # /usr/bin/csup -h cvsup4.ru.freebsd.org -g -L 2 /usr/share/examples/cvsup/ports-supfile &&  cd /usr/ports/ && make fetchindex
                              5. покажи что у тебя в make.conf
                              (попробуй закоментить лишние настройки)
                              6. почисти cd /usr/ports/distfiles/ от файлов zabbix'a
                              7. попробуй ставить.

                              Все выводы работы сюда.
                              Last edited by Raven2000; 12-04-2010, 05:50.

                              Comment

                              Working...