nigos core 安装配置
系统环境
Apache
PHP
GCC compiler
GD development libraries
环境安装
yum install httpd php
yum install gcc glibc glibc-common
yum install gd gd-deve
添加用户:
useradd -M nagios
groupadd nagcmd
usermod -a -G nagcmd nagios
usermod -a -G nagcmd apache
解压缩并进入nagios软件目录
cd /usr/src/
tar xzf nagios-4.0.4.tar.gz
cd nagios-4.0.4
编译安装软件
./configure --with-command-group=nagcmd
make all
make install 使用make install来安装主程序,CGI和HTML文件
make install-init 使用make install-init在/etc/rc.d/init.d安装启动脚本
make install-config installs *SAMPLE* config files
make install-commandmode 使用make install-commandmode来配置目录权限
make install-webconf 使用make install-webconf来安装apache的配置文件
配置WEB接口
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
service httpd restart
安装nagios-plugins
cd /usr/src/nagios-plugins-2.0.3
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
启动nagios
chkconfig --add nagios
chkconfig nagios on
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg 检查nagios配置是否正确
service nagios start
每天更新一点点,温习一点点点,进步一点点