標籤:問題
1.安裝rrdtool報錯
perl: warning: Falling back to the standard locale ("C")
解決辦法vi /root/.bashrc
再最底部加上
export LC_ALL=C
或者直接運行
echo "export LC_ALL=C LANGUAGE=en_US:en" >> /root/.bashrc
然後執行一下
source /root/.bashrc
2.關閉selinux的安全控制 getenforce setenforce 0
3.為了能夠監控印表機check_hpjp需在編譯nagios前安裝net-snmp net-snmp-utils
4.啟動httpd時提示apr_sockaddr_info_get() failed
所以要解決這個問題可以設定httpd.conf檔案中的 ServerName如下
ServerName localhost:80
或者在 /etc/hosts 中填入自己的主機名稱 bogon如下
127.0.0.1 主機名稱
5.安裝PNP時報錯 RRDs Perl Modules: *** NOT FOUND ***
./configure --with-nagios-user=nagios \
--with-nagios-group=nagios \
--with-rrdtool=/usr/local/rrdtool/bin/rrdtool \
--with-perl-lib-path=/usr/local/rrdtool/lib/perl/5.10.1/i386-linux-thread-multi \ 指定路徑RRDS Perl
--with-perfdata-dir=/usr/local/nagios/share/perfdata
6.安裝rrdtool 需要環境
cairo-devel libxml2-devel pango-devel pango libpng-devel freetype freetype-devel libart_lgpl-devel
7.Nagios 監控報錯HTTP WARNING: HTTP/1.1 404 Not Found
在此目錄建立一個index.html檔案 /var/www/html
重啟httpd和nagios服務等待幾分鐘警告就自動清除了。
8.擷取交換器或者路由器中的SNMP資訊而後結合check_snmp命令進行擷取相應的資訊
snmpwalk -v1 -c public 10.10.253.2 3.6.1.2.1.2.2.1.6
snmpwalk -v1 -c public 10.10.253.2 -m ALL
9.web伺服器在執行某個.cgi檔案失敗
賦予該使用者對此檔案的執行許可權
10.nagios The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server解決方案
安裝庫檔案gd gd-devel libpng libpng-devel libjpeg libjpeg-devel zlib zlib-devel
重新編譯安裝nagios 和nagios-plugin
#make devclean
#./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios --with-gd-lib=/usr/lib --with-gd-inc=/usr/include/
#make all
#make install
#make install-init
#make install-config
#make install-commandmode
11.configure: error: no acceptable C compiler found in $PATH
解決辦法安裝gcc yum install gcc
12.Libtool library used but `LIBTOOL‘ is undefined
解決辦法yum -y install gettext-devel
yum -y install libtool*
13.cms.pod around line 474: Expected text after =item, not a number
POD document had syntax errors at /usr/bin/pod2man line 69.
make: *** [install_docs] Error 1
解決辦法sudo rm /usr/bin/pod2man
14.查看BIOS資訊
dmidecode
15.linux 安裝庫 編譯提示-lcrypto 無法連結缺少 crypto 庫
crypto 基於openssl決定安裝openssl-devel
#yum install openssl openssl-devel
16.httpd 啟動問題 httpd: apr_sockaddr_info_get() failed for linux.64.114
修改httpd.conf ServerName www.example.com:80 為 ServerName localhost:80
17.httpd: Could not reliably determine the server‘s fully qualified domain name, using 127.0.0.1 for ServerName
httpd.conf 找到#ServerName www.example.com:80 把#去掉再重啟apache即可沒事了。
18.configure: error:
!!! OpenSSL is not properly installed on your system. !!!
!!! Can not include OpenSSL headers files.
解決yum install -y openssl openssl-devel
19.安裝ISCSI-target 報錯 cc: /lib/modules/2.6.32-358.el6.i686/build/include/linux/version.h: No such file or director
解決yum install kernel-devel
20.執行#luci_admin init 失敗
解決 rhel6.0取消這個命令了直接用root的帳號密碼可以登入
21.系統啟動出錯進入linux下repair filesystem模式修複方法
非順利關機引起的用fsck /dev/hdaX後reboot進入或只用fsck來修複只管y斷行符號(也可以使用fsck -y / )
由於/etc/fstab檔案編輯錯誤 而引起的不能正常進入系統
Repair filesystem) 1 # mount -o remount,rw / 重新載入根分區修複模式下read-only system 檔案是被保護的不能修改
Repair filesystem) 1 # vi /etc/fstab 修改相應的檔案
22.device eth0 does not seem to be present, delaying initialization
查看/etc/udev/rules.d/70-persistent-net.rules檔案中的mac地址
修改ifcfg-eth0 中相應的MAC
23.linux安裝mysql出現Could NOT find Curses (missing CURSES_LIBRARY CURSES_INCLUDE_PATH)
解決辦法:
[[email protected] mysql-5.5.11]#rm CMakeCache.txt
[[email protected] mysql-5.5.11]#yum install ncurses-devel
[[email protected] mysql-5.5.11]#yum install bison
24.CMake Error at /usr/share/cmake/Modules/CMakeCXXInformation.cmake:17 (GET_FILENAME_COMPONENT):
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
CMake Error: Internal CMake error, TryCompile configure of cmake failed
解決辦法:
[[email protected] mysql-5.5.11]#yum install gcc gcc-c++ -y
本文出自 “咚咚的部落格” 部落格,謝絕轉載!
LINUX問題匯總