Installation problems encountered zabbix

1, compile and install error zabbix: Library not found MySQL
MySQL installed with the compiler, compile and install with zabbix
reported checking for mysql_config ... configure: error: MySQL library not found
Find mysql_config

    #find / -name "mysql_config*"
            /usr/local/mysql/bin/mysql_config           
    把--with-mysql改成
--with-mysql=/usr/local/mysql/bin/mysql_config

By normal

2, the installation process prompts PHP BCMath and PHP gettext wrong!
Into the ext / bcmath or gettext directory under the PHP source package directory

        cd /usr/local/php/ext/
        /usr/local/php/bin/phpize
        ./configure --with-php-config=/usr/local/php/bin/php-config

(More than two paths according to their commands and system conditions)

 make
 make install

 在php.ini里添加上gettext.so
 extension = "gettext.so"

PHP can restart

3, [Z3001] Connection to Database 'zabbix' failed The: [2002] of Can not Connect to local MySQL Server through socket '/var/lib/mysql/mysql.sock' (2)
24661: 20,170,523: 203,330.920 Database IS Down: reconnecting in 10 seconds ------- not connect to database
/var/lib/mysql/mysql.sock does not exist

             [root@localhost zabbix]# find / -name mysql.sock

The links do mysql.sock

             [root@localhost lib]# mkdir /var/lib/mysql
            [root@localhost lib]# ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock
            [root@localhost lib]# /etc/rc.d/init.d/mysqld restart
            Shutting down MySQL... SUCCESS! 
            Starting MySQL SUCCESS

Or
modified zabbix_server.conf arranged in mysql.sock

    vim /etc/zabbix/zabbix_server.conf
    DBSocket=/tmp/mysql.sock

4, as shown:
Installation problems encountered zabbix

 zabbix_agent进程没有起来,端口10050

5、提示错误:Received empty response from Zabbix Agent at [192.168.1.110]. Assuming that agent dropped connection because of access permissio

  解决方法:

  在客户端vim /etc/zabbix_agentd.conf

  修改Server=192.168.1.130(服务器地址)

Guess you like

Origin blog.51cto.com/14430265/2417224