ezeke 发表于 2019-1-12 13:07:00

【Nagios】

  Installation documentation
  https://assets.nagios.com/downloads/nagioscore/docs/Installing_Nagios_Core_From_Source.pdf#_ga=1.139535539.1081149190.1491445330
  解决Perl软件编译问题
  # echo 'export LC_ALL=C'>> /etc/profile《##设置环境变量
  # tail -l /etc/profile
  . "$i"
  else
  . "$i" >/dev/null 2>&1
  fi
  fi
  done
  unset i
  unset -f pathmunge
  export LC_ALL=C
  # source /etc/profile《#### 使增加的环境变量配置生效
  # echo $LC_ALL            《#####查看设置结果
  C
  #cd ~
  关闭放火墙和selinux
  1). # setenforce 0
  setenforce: SELinux is disabled
  2). # sed -i "s/SELINUX=enforcing/SELINUX=disabled/g"
  /etc/selinux/config
  3). # chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/
  # chcon -R -t httpd_sys_content_t /usr/local/nagios/share/
  解决时间同步问题
  # /usr/sbin/ntpdate pool.ntp.org
  10 Nov 11:01:05 ntpdate: the NTP socket is in use, exiting
  # echo '#time sync by zp at 2016-11-10'>>/var/spool/cron/root
  # echo '*/5 * * * * /usr/sbin/ntpdate pool.ntp.org> /dev/null 2>&1'>> /var/spool/cron/root
  # crontab -l
  #time sync by zp at 2016-11-10
  */5 * * * * /usr/sbin/ntpdate pool.ntp,org> /dev/null 2>&1
  #
  安装 Nagios服务端所需要的软件包
  需要web界面显示监控效果,界面的展示主要使用PHP程序,因此需要LAMP环境。
  yum install gcc glibc glibc-common -y
页: [1]
查看完整版本: 【Nagios】