RHELInstallNagiosThe procedure is as follows:
Nagios is a powerful host monitoring software in Linux. Now let's take a look at it. This system is RHEL5.4, and nagios version is 3.21. Don't talk much about it. Please do it right away.
1. apache, php, gd, and other environments are required
Yum install httpd gcc glibc-common gd-devel php-y
2. Create Account Information (Create user Information)
# Useradd-m nagios
# Groupadd nagcmd
# Usermod-a-G nagcmd nagios
# Usermod-a-G nagcmd apache
3. Download Nagios and the Plugins (these are the latest versions)
# Wget http://cdnetworks-kr-2.dl.sourceforge.net/project/nagios/nagios-3.x/nagios-3.2.1/nagios-3.2.1.tar.gz
# Wget http://cdnetworks-kr-2.dl.sourceforge.net/project/nagiosplug/nagiosplug/1.4.14/nagios-plugins-1.4.14.tar.gz
4. Compile and Install Nagios)
# Tar xzf nagios-3.2.1.tar.gz
** Run the Nagios configure script, passing the name of the group you created earlier like so:
#./Configure -- with-command-group = nagcmd
** Compile the Nagios source code.
# Make all
** Install binaries, init script, sample config files and set permissions on the external command directory.
# Make install
# Make install-init
# Make install-config
# Make install-commandmode
5. Customize Configuration (modify parameters)
Vi/usr/local/nagios/etc/objects/contacts. cfg
For example, you can modify the recipient of the email address in this file.