Nagios Installation Process (1)

Source: Internet
Author: User

NagiosThe installation process is very simple. Let's take a look at the specific process!

Nagios is a very popular system. It is a free software for server monitoring. Many large domestic sites such as Sohu and Netease are using nagios for server monitoring.

Nagios is just a framework. It is very convenient for the nagios extended monitoring module and alarm module. It can be easily added to service Monitoring compiled by itself, as well as text messages, emails, gtalk and msn alarms.

The following describes how to install and configure nagios in linux REDHAT AS4U4:

Download Software:

Wget http://surfnet.dl.sourceforge.net/sourceforge/nagios/nagios-3.0.3.tar.gz

Wget http://nchc.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.12.tar.gz

Wget http://nchc.dl.sourceforge.net/sourceforge/nagiosplug/nagiosmib-1.0.0.tar.gz

Add User:

Useradd-m nagios

Passwd nagios

Groupadd nagcmd

Usermod-G nagcmd nagios

Usermod-G nagcmd daemon

Compile and install nagios

Tar-xvzf nagios-3.0.3.tar.gz

Cd nagios-3.0.3

./Configure -- with-command-group = nagcmd

Make all

Make install

Make install-init

Make install-config

Make install-commandmode

Set the apache server access password:

Cd/usr/local/nagios/etc/

/Usr/local/apache/bin/htpasswd-c/usr/local/nagios/etc/htpasswd. users nagiosadmin

Cd/usr/local/apache/conf/

Vi httpd-vhosts.conf

Configure apache cgi as follows:

ScriptAlias/nagios/cgi-bin/usr/local/nagios/sbin

Options ExecCGI

AllowOverride None

Order allow, deny

Allow from all

AuthName "Nagios Access"

AuthType Basic

AuthUserFile/usr/local/nagios/etc/htpasswd. users

Require valid-user

Alias/nagios/usr/local/nagios/share

Options None

AllowOverride None

Order allow, deny

Allow from all

AuthName "Nagios Access"

AuthType Basic

AuthUserFile/usr/local/nagios/etc/htpasswd. users

Require valid-user

Restart apache

/Usr/local/apache/bin/apachectl configtest

/Usr/local/apache/bin/apachectl stop

/Usr/local/apache/bin/apachectl start


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.