First, install the Nagios required components (prior to configuring the Yum Environment)
# yum-y Install httpd php gcc glibc glib-common gd gd-devel libpng libjpeg zlib
Ii. Installing Nagios (Package location: http://down.51cto.com/data/1906099)
1. Unpack the Package
# TAR-ZXF Nagios-3.2.1.tar.gz-c/usr/local/
# CD/USR/LOCAL/NAGIOS-3.2.1/
You can refer to the Help documentation: file:///usr/local/nagios-3.2.1/html/docs/quickstart.html
2. Create Nagios Run user
# useradd-m Nagios
# passwd Nagios
# Groupadd Nagcmd
# usermod-a-G Nagcmd Nagios
# usermod-a-G Nagcmd Apache
3. Source package Compilation and installation
# CD/USR/LOCAL/NAGIOS-3.2.1/
# . /configure--with-command-group=nagcmd
# make All
# make Install
# Make Install-init
# Make Install-config
# Make Install-commandmode
# Make Install-webconf
4. Create Nagios login Password
# htpasswd-c/usr/local/nagios/etc/htpasswd.users nagiosadmin
5. Restart Apache
# Service httpd Restart
# Chkconfig httpd on
Third, install Nagios plug-in
# TAR-ZXF Nagios-plugins-1.4.14.tar.gz
# CD nagios-plugins-1.4.14
#./configure--with-nagios-user=nagios--with-nagios-group=nagios
# make
# make Install
Iv. add Nagios to the system service to boot it up and start Nagios
# chkconfig--add Nagios
# chkconfig Nagios on
# service Nagios Start
Five. Nagios user manual in the source package/html/docs/directory for Web mode
This article is from the "Song Xiao" blog, please be sure to keep this source http://ssxiaoguai.blog.51cto.com/5376644/1586105
Open source monitoring software-nagios-rhel5.9 installation Manual