How to configure and install Nagios in centos

Source: Internet
Author: User
Tags administrator password centos

# Create a user
Useradd nagios
Passwd nagios
Groupadd nagcmd
Usermod-a-G nagcmd nagios
Usermod-a-G nagcmd apache
# Install basic package
Yum install-y gcc glibc-common
Yum install-y gd-devel
Yum install-y libtool-ltdl

# Download
Wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.4.1.tar.gz
# Decompress
Tar-zvxf nagios-3.4.1.tar.gz
Cd nagios
# Installation
./Configure-with-command-group = nagcmd
Make all
# Configuration
Vi/usr/local/nagios/etc/objects/contacts. cfg
# Modify the email address above
# Create an administrator password
Htpasswd-c/usr/local/nagios/etc/htpasswd. users nagiosadmin
# Restart apache
Service httpd restart
# Set startup
Chkconfig-add nagios
Chkconfig nagios on

Service nagios start

Install the nagios plugin
# Download
Wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.16.tar.gz
# Decompress
Tar xzf nagios-plugins-1.4.16.tar.gz
Cd nagios-plugins-1.4.16
# Installation
./Configure-with-nagios-user = nagios-with-nagios-group = nagios
Make
Make install

Logon address:
Http: // ip/nagios
Administrator name: nagiosadmin

Troubleshooting
/Usr/local/nagios/bin/nagios-v/usr/local/nagios/etc/nagios. cfg/usr/local/nagios/bin/nagios: error while loading shared libraries: libltdl. so.7: cannot open shared object file: No such file or directory
Find/-name libltdl. so.7
Ln-s/usr/local/lib/libltdl. so.7/usr/lib/libltdl. so.7

Related Article

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.