Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Failure encountered in installing zabbix

2025-04-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Failure 1:

The following problems occurred when compiling zabbix. I used the following compilation parameters:

/ configure-- prefix=/home/zhanjun/tools/zabbix-2.4.7/-- enable-server-- enable-agent-- with-mysql-- with-net-snmp-with-libcurl-- with-libxml2

Question:

Report to checking for mysql_config... Configure: error: MySQLclient library not found

Resolve:

-- with-mysql compilation parameters are transposed as follows:

-- with-mysql=/application/mysql/bin/mysql_config

/ application/mysql/bin/mysql_config # # this directory is the file that exists after my mysql installation

Failure 2:

The following problems occurred when compiling zabbix:

Configure: error: Invalid Net-SNMP directory-unable to find net-snmp-config

Solve the problem, install the following dependency package, and then compile it

Yum install net-snmp-devel

Glitch 3: the file could not be found by booting the database/mysql/schema.sql Times

[root@linux-A mysql] # mysql-uroot zabbix < database/mysql/schema.sql

-bash: database/mysql/schema.sql: No such file or directory

Resolve:

[root@linux-A mysql] # find /-name schema.sql

/ home/zhanjun/tools/zabbix-2.4.7/database/mysql/schema.sql

[root@linux-A mysql] # cd / home/zhanjun/tools/zabbix-2.4.7/

[root@linux-A zabbix-2.4.7] # mysql-uroot zabbix < database/mysql/schema.sql

Failure 4:

The last PHP gettext issued a warning [finding a solution in a zabbix failure]

First enter the php source code package

Enter the ext directory and we will find a gettext module (cd

/ home/zhanjun/tools/php-5.3.27/ext/gettext/)

Execute the following command

/ application/php5.3.27/bin/phpize

. / configure-- with-php-config=/application/php5.3.27/bin/php-config

Make & & make install

/ application/php5.3.27/lib/php.ini # depends on the installation path of your system

Add gettext.so to php.ini

Extension = "gettext.so" [extension = "/ application/php5.3.27/lib/php/extensions/no-debug-non-zts-20090626/gettext.so"] it is best to use the full path

Restart php and you will ok.

If you install the library but don't, you can edit php.ini to add the path.

* * *

Cannot find config.m4.

Make sure that you run / application/php5.3.27/bin/phpize in the top level source directory of the module

Resolve:

If the error mentioned above occurs when installing the php extension: just go to the installation directory of php, such as cd / home/zhanjun/tools/php-5.3.27/ext/openssl/, execute the command: cp. / config0.m4. / config.m4

Failure 5: [web found that it was not supported to the mysql database when filling in zabbix, then added green lines and recompiled]

/ configure-- prefix=/application/php5.3.27-- with-mysql=/application/mysql-- with-iconv=/usr/local/libiconv-- with-freetype-dir-- with-jpeg-dir-- with-png-dir-- with-zlib-- with-libxml-dir=/usr-- enable-xml-- disable-rpath-- enable-safe-mode-- enable-bcmath-- enable-shmop-- enable-sysvsem-- enable-inline-optimization-- with-curl-- with-curlwrappers-- Enable-mbregex-enable-fpm-enable-mbstring-with-mcrypt-with-gd-enable-gd-native-ttf-with-openssl-with-mhash-enable-pcntl-enable-sockets-with-xmlrpc-enable-zip-enable-soap-enable-short-tags enable-zend-multibyte enable-static with-xsl with-fpm-user=nginx with-mysqli=/application/mysql/bin/mysql_config

Make & & make install

Failure 6: the last step of the web interface for installing zabbix indicates that the configuration file cannot be created!

Error report: Configuration file

"/ data/site/monitor.ttlsa.com/zabbix/conf/zabbix.conf.php"

Created: Fail

Solution: download zabbix.conf.php

Cp zabbix.conf.php / data/site/monitor.ttlsa.com/zabbix/conf/

After changing the password of mysql's zabbix account, be sure to synchronously update the password fields in the background configuration file of mysql data source and the front php page:

1 、 zabbix_server.conf

DBPassword='new password'

2 、 zabbix.conf.php

$DB ['PASSWORD'] =' new password'

Finally, remember to restart zabbix_server.

It's for memory.

Failure 7: if the last wrong database user password problem: delete zabbix.conf.php and reinstall it

As long as you can use the mysql command, this should be all right, either because of the password problem or the data guide problem.

Rm / data/site/monitor.ttlsa.com/zabbix/conf/zabbix.conf.php

Rm-rf / data/site/monitor.ttlsa.com/zabbix/*

Cd / home/zhanjun/tools/zabbix-2.4.7

\ cp-rp frontends/php/* / data/site/monitor.ttlsa.com/zabbix/

Chown-R nginx.nginx / data/site/monitor.ttlsa.com/zabbix

The above are the failures that may occur during installation

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report