RHEL nagios installation (1)

Source: Internet
Author: User

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.