Ad Widget

Collapse

Не устанваливается Zabbix 1.8 на FreeBSD 8.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jmurik
    Junior Member
    • Jan 2010
    • 3

    #1

    Не устанваливается Zabbix 1.8 на FreeBSD 8.0

    Устанавливаю Zabbix 1.8 из портов на FreeBSD 8.0
    вываливается с ошибкой
    Code:
    checking for main in -lnetsnmp ... no
    configure: error: Not found NET-SNMP library
    ===>  Script "configure" failed unexpectedly.
    net-snmp установлен (тоже из портов)
    Кто-нибудь сталкивался с подобным?
  • sergo
    Member
    • Dec 2009
    • 99

    #2
    Originally posted by Jmurik
    Устанавливаю Zabbix 1.8 из портов на FreeBSD 8.0
    вываливается с ошибкой
    Code:
    checking for main in -lnetsnmp ... no
    configure: error: Not found NET-SNMP library
    ===>  Script "configure" failed unexpectedly.
    net-snmp установлен (тоже из портов)
    Кто-нибудь сталкивался с подобным?
    очень похоже на то что было у меня, (если у вас конечно 64-битная система) то стоит всетки конфигить --whith libdir=/lib64

    Comment

    • Jmurik
      Junior Member
      • Jan 2010
      • 3

      #3
      Система 32битная.

      Comment

      • sergo
        Member
        • Dec 2009
        • 99

        #4
        Originally posted by Jmurik
        Система 32битная.
        воспользуйтесь ldconfig укажите ручками где у вас netsnmp находиться

        Comment

        • Firm
          Senior Member
          • Dec 2009
          • 342

          #5
          Jmurik,

          config.log покажите.

          Comment

          • Jmurik
            Junior Member
            • Jan 2010
            • 3

            #6
            Вот собственно config.log
            Attached Files

            Comment

            • Firm
              Senior Member
              • Dec 2009
              • 342

              #7
              Попробуйте так:

              $ CFLAGS="-fno-stack-protector -fno-stack-protector-all" ./configure --enable-server --with-net-snmp --with-pgsql --with-ldap --with-jabber --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ --build=i386-portbld-freebsd8.0

              либо

              $ CFLAGS="-fstack-protector" ./configure --enable-server --with-net-snmp --with-pgsql --with-ldap --with-jabber --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ --build=i386-portbld-freebsd8.0

              P.S. Хотя у меня собралось на ура, без ошибок. Но из исходников.
              Last edited by Firm; 27-01-2010, 17:18.

              Comment

              • Dimas
                Junior Member
                • Jan 2010
                • 5

                #8
                Была такая же проблема, откати perl до 5.8 и собери zabbix

                Более подробно http://www.zabbix.com/forum/showthre...found+NET-SNMP
                Last edited by Dimas; 25-02-2010, 10:55.

                Comment

                • Raven2000
                  Member
                  • Dec 2009
                  • 70

                  #9
                  Все ставится
                  Code:
                  # cd /usr/ports/
                  bsd# make search name=zabbix
                  Port:   zabbix-agent-1.8.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.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 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_1 mysql-client-5.0.89 net-snmp-5.4.2.1_6 pcre-8.00 perl-5.10.1 php5-5.2.12 php5-bcmath-5.2.12 php5-ctype-5.2.12 php5-gd-5.2.12 php5-mysql-5.2.12 php5-pcre-5.2.12 php5-snmp-5.2.12 php5-sockets-5.2.12 pkg-config-0.23_1 png-1.2.42 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.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.19.7_1 gettext-0.17_1 gnutls-2.8.3 iksemel-1.4_1 libgcrypt-1.4.4 libgpg-error-1.7 libiconv-1.13.1_1 mysql-client-5.0.89 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.19.7_1 fping-2.4b2_1 gettext-0.17_1 gnutls-2.8.3 iksemel-1.4_1 libgcrypt-1.4.4 libgpg-error-1.7 libiconv-1.13.1_1 mysql-client-5.0.89 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.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.19.7_1 gettext-0.17_1 gnutls-2.8.3 iksemel-1.4_1 libgcrypt-1.4.4 libgpg-error-1.7 libiconv-1.13.1_1 mysql-client-5.0.89 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.19.7_1 fping-2.4b2_1 gettext-0.17_1 gnutls-2.8.3 iksemel-1.4_1 libgcrypt-1.4.4 libgpg-error-1.7 libiconv-1.13.1_1 mysql-client-5.0.89 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.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
                  
                  # make install clean
                  
                  ~~
                  ======================================================================
                  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.1,2
                  ===>   Registering installation for zabbix-server-1.8.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 zabbix-server-1.8.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 -uampul_zabbix -p5fce1b3e34b520af ampul_zabbix
                  
                  
                  # cd /usr/ports/net-mgmt/zabbix-frontend
                  # make config
                  
                  Options for zabbix-frontend 1.8.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.1,2
                  ===>  Cleaning for zabbix-frontend-1.8.1,2
                  
                  # ls /usr/local/www/zabbix
                  
                  bsd# cd /usr/ports/net-mgmt/zabbix-agent
                  bsd# make config
                  
                  
                  Options for zabbix-agent 1.8.1,2
                  
                  [ ] IPV6  Support for IPv6
                  
                  # make install clean
                  
                  ~~
                        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.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_server start
                  Starting zabbix_server.
                  # /usr/local/etc/rc.d/zabbix_agentd start
                  Starting zabbix_agentd.
                  
                  # mv zabbix.conf.php /usr/local/www/zabbix/conf
                  Моя статья по 1.6 Zabbix - мониторим и отслеживаем

                  Comment

                  Working...