1. Nagios Installation
# wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.2.tar.gz
# tar ZXVF nagios-3.2.2.tar.gz
# CD nagios-3.2.2
# useradd-m-s/bin/bash Nagios
# Groupadd Nagios
# usermod-g Nagios Nagios
# Groupadd Nagcmd
# usermod-a-G Nagcmd Nagios
# usermod-a-G Nagcmd www
#./configure--prefix=/usr/local/nagios--with-command-group=nagcmd
# make
# make All
# make Install
# make Install-init # Generate init startup script
# make Install-config # Install the sample configuration file
# make Install-commandmode # set appropriate directory permissions
2. Nagiox Plug-in Installation
# wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.15.tar.gz
# tar ZXVF nagios-plugins-1.4.15.tar.gz
# CD nagios-plugins-1.4.15
#./configure--with-nagios-user=nagios--with-nagios-group=nagios--prefix=/usr/local/nagios
# make
# make Install
3. Nrpe Installation
# Apt-get Install Libssl-dev
# wget http://sourceforge.net/projects/nagios/files/nrpe-2.x/nrpe-2.13/nrpe-2.13.tar.gz
# tar ZXVF nrpe-2.12.tar.gz
# CD nrpe-2.12
#./configure
# make All
# CP src/check_nrpe/usr/local/nagios/libexec/
4. Installation Configuration Nginx
#sudo apt-get Install nginx php5-fpm libssl-dev fcgiwrap apache2
# htpasswd-c-m/usr/local/nagios/etc/nagiosadmin.net nagiosadmin
# Start Service
#/ETC/INIT.D/PHP5-FPM Start
#/etc/init.d/fcgiwrap start #默认是socket模式, socket file in/var/run/fcgiwrap.socket
#/etc/init.d/nagios Start
#/etc/init.d/nginx Start