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)
解决办法:
[root@localhost mysql-5.5.11]#rm CMakeCache.txt
[root@localhost mysql-5.5.11]#yum install ncurses-devel
[root@localhost 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
解决办法:
[root@localhost mysql-5.5.11]#yum install gcc gcc-c++ -y

25./usr/src/kernels 无内核目录
解决办法:yum install kernels-devel