故障1:
編譯zabbix時候出現(xiàn)下面問題,我使用的編譯參數(shù)如下:
./configure --prefix=/home/zhanjun/tools/zabbix-2.4.7/ --enable-server --enable-agent --with-mysql --with-net-snmp -with-libcurl --with-libxml2
問題:
報checking for mysql_config... configure: error: MySQLclient library not found
解決:
--with-mysql 編譯參數(shù)換位下面內(nèi)容:
--with-mysql=/application/mysql/bin/mysql_config
/application/mysql/bin/mysql_config ##這個目錄是我的mysql安裝后存在的文件
故障2:
編譯zabbix時候出現(xiàn)下面問題:
configure: error: Invalid Net-SNMP directory - unable to find net-snmp-config
解決,安裝下面依賴包,之后再編譯
yum install net-snmp-devel
故障3:引導(dǎo)database/mysql/schema.sql時報錯找不到該文件
[root@linux-A mysql]# mysql -uroot zabbix < database/mysql/schema.sql
-bash: database/mysql/schema.sql: No such file or directory
解決:
[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
故障4:
最后一個PHP gettext 發(fā)出警告【在zabbix故障中查找解決辦法】
首先進入php 源碼包
進入 ext 目錄下我們會發(fā)現(xiàn)有個 gettext 模塊 (cd
/home/zhanjun/tools/php-5.3.27/ext/gettext/)
執(zhí)行如下命令
/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 #根據(jù)自己系統(tǒng)安裝路徑而定
在php.ini里添加上gettext.so
extension = "gettext.so"【extension = "/application/php5.3.27/lib/php/extensions/no-debug-non-zts-20090626/gettext.so"】最好用全路徑
重啟php就ok了
如果你安裝了這個庫但是沒有,你可以編輯php.ini 把路徑加進去。
***************************************************************************************************************************************************
Cannot find config.m4.
Make sure that you run /application/php5.3.27/bin/phpize in the top level source directory of the module
解決:
如果在安裝php擴展的時候出現(xiàn)如題的錯誤:只需到php的安裝目錄下如:cd /home/zhanjun/tools/php-5.3.27/ext/openssl/執(zhí)行命令: cp ./config0.m4 ./config.m4 即可解決
故障5:【web填寫zabbix時發(fā)現(xiàn)沒有支持到mysql數(shù)據(jù)庫,后來添加了綠色行,重新編譯】
./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
故障6:安裝zabbix的web界面最后一步提示無法創(chuàng)建配置文件的解決方法!
報錯:Configuration file
"/data/site/monitor.ttlsa.com/zabbix/conf/zabbix.conf.php"
created: Fail
解決:下載 zabbix.conf.php
cp zabbix.conf.php /data/site/monitor.ttlsa.com/zabbix/conf/
修改mysql的zabbix賬號的密碼后,注意同步更新關(guān)于mysql數(shù)據(jù)源后臺配置文件及前臺php頁面中的密碼字段:
1、zabbix_server.conf
DBPassword='new password'
2、zabbix.conf.php
$DB['PASSWORD'] = 'new password';
最后記得重啟一下zabbix_server。
是為記。
故障7:如果最后一報錯數(shù)據(jù)庫用戶密碼問題:把zabbix.conf.php刪了重新裝過
只要用mysql命令可以的,這應(yīng)該都可以,要么就是密碼問題,要么數(shù)據(jù)導(dǎo)得有問題
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
以上為安裝時可能會出現(xiàn)的故障
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。
新聞標(biāo)題:安裝zabbix遇到的故障-創(chuàng)新互聯(lián)
標(biāo)題路徑:http://www.chinadenli.net/article12/gsidc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站內(nèi)鏈、用戶體驗、外貿(mào)網(wǎng)站建設(shè)、搜索引擎優(yōu)化、品牌網(wǎng)站建設(shè)、靜態(tài)網(wǎng)站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容