nagios-Introduction and Installation

Source: Internet
Author: User

Cacti

Monitoring Tools

Collect data, plot according to data

CPU Load:0.8 1.2 ...

Alarm:thold

Nagios

Monitoring Tools

Hosts, services / Resources

Status:OK,warnging,CRITICAL,UNKNOWN

CPU:90%(CRITICAL),80% (WARNING) ,80% The following OK ,UNKNOWN

Alarm system

Nagios Core

Don't do any surveillance work.

Plugins plug-in (scripts)

N types of objects for monitoring work

Master, host Group

Services / resources, service groups

Contact person, contact person to rent

Time

Command

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6C/8B/wKiom1VLbyvQAgFvAAEhGebiXjM172.jpg "style=" float: none; "title=" Image 1.png "alt=" Wkiom1vlbyvqagfvaaehgebixjm172.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6C/86/wKioL1VLcJ-yg8qOAAHV_R--690875.jpg "style=" float: none; "title=" Image 2.png "alt=" Wkiol1vlcj-yg8qoaahv_r--690875.jpg "/>


Nagios is usually made up of a main program Nagios, a plug-in program Nagios-plugins and four optional accessories (nrpe,nsca,nsclient++ and Ndoutils).

Nagios's monitoring work is done through plug-ins, so Nagios and nagios-plugins are the components necessary for the server to work. and 4 pieces of addon

NRPE: Used to monitor remote linux/ Execute script plug-ins on UNIX hosts for resource monitoring of these hosts

NSCA: Used to enable monitored remote Linux/unix hosts to proactively send monitoring information to the Nagios server (which is especially useful in redundant monitoring mode)

nsclinet++: A component that is installed on a Windows host when it is used to monitor Windows hosts

Ndoutils: It is used to store the configuration information of Nagios and the data generated by each event into a database for fast retrieval and processing of these data.

Nrpe and nsclient++ work on the client side, Ndoutlis work on the server, and NSCA need to be installed on both the server and the client side.

Installing Nagios-dependent programs

# yum-y Install httpd gcc glibc glibc-common gd gd-devel php php-mysql MySQL mysql-devel mysql-server

# Groupadd Nagcmd

# useradd-g Nagcmd Nagios

# passwd Nagios

# usermod-a-G Nagcmd Apache

# tar zxf nagios-3.3.1.tar.gz

# tar zxf nagios-plugins-1.4.15.tar.gz

# CD Nagios

#./configure--sysconfdir=/etc/nagios--with-nagios-group=nagcmd--enable-event-broker

# make all Compile all content

# make Install

# Make Install-init

# Make Install-commandmode
# Make Install-config

Set a default mailbox contact

# vim/usr/local/nagios/etc/dbjects/contace.cfg

To create the Nagios Web program configuration file in HTTPd's configuration document directory CONF.D

# Make Install-webconf

with . htaccess mechanism for Web page authentication

# htpasswd-c/etc/nagios/htpasswd.users nagiosadmin

# service httpd Start

# chkconfig--add Nagios

# chkconfig Nagios on

# service Nagios Start

Installing Nagios Plugins

# tar zxf nagios-plugins-1.4.15

# CD nagios-plugins-1.4.15

#./configure--with-nagios-user=nagios--with-nagios-group=nagios

# make

# make Install

# Service Nagios Restart

Turn off SELinux or set

# Setenforce 0 Close

# chcon-r-T Httpd_sys_content_t/usr/local/nagios/sbin
# chcon-r-T Httpd_sys_content_t/usr/local/nagios/share/

Log on to Nagios Web page

Http://localhost/nagios

User name: nagiosadmin password

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6C/8B/wKiom1VLb1HCiPJwAAOP1Owqr6E506.jpg "title=" Picture 3.png "alt=" wkiom1vlb1hcipjwaaop1owqr6e506.jpg "/>


This article is from the "Brother" blog, please be sure to keep this source http://yangmv.blog.51cto.com/2366107/1644001

nagios-Introduction and Installation

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.