Nagios Installation Usage Introduction

Source: Internet
Author: User

Project background:

In order to better monitor our server, open source monitoring software is free, can save a lot of money for our enterprise


Lab Environment:

Virtual Machines VMware Workstation player

Server-side: centos6.4 system, ip:192.168.0.24 netmask:255.255.255.0

Nagios 3.5.1

system default Yum source for Apache server


Software Introduction:

Nagios is an open-source monitoring system that can be run on the Linux/unix platform to monitor system health and network information. Nagios can monitor the specified local or remote host as well as services, while providing exception notification functionality.

Nagios provides the following monitoring capabilities.

    • Monitor network Services (SMTP, POP3, HTTP, NNTP, Ping, and so on).

    • Monitor host resources (processor load, disk utilization, and so on).

    • Simple plug-in design allows users to easily expand their own service detection methods.

    • Parallel service check mechanism.

    • The ability to define network hierarchies and the use of "parent" host definitions to express relationships between network hosts can be used to discover and clarify host outages or unreachable states.

    • Send alerts to Contacts when a service or host problem arises and resolves (by email, SMS, user-defined method).

    • With the ability to define event handling, you can get more problem targeting when a host or service event occurs.

    • Automatic log rollback.

    • Redundancy monitoring of the host can be supported and implemented.

    • The optional web interface is used to view the current network status, notification and fault history, log files, and so on.

The best place to use Nagios is that it will be the daily work of the administrator to automate, you only need to set the port to listen to, it will silently work, to help regularly to detect the status of the service port, once the problem is detected, the alarm will be issued in a timely manner. An alarm can be an email or a phone, which allows the administrator to receive the system's status the first time.


Software Installation:

Execute the following script

#!/bin/bash

#This is nagios in centos6.4 autho install shell

Setenforce 0

Yum install-y gcc gcc-c++ httpd php php-gd glibc glibc-common gd gd-devel perl perl-devel traceroute bind-utils ntpdate m TR wget NC MAILX

wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-3.5.1.tar.gz

Tar zxvf nagios-3.5.1.tar.gz

CD nagios/

Useradd-m Nagios

Groupadd Nagcmd

Usermod-a-G Nagcmd Nagios

Usermod-a-G Nagcmd Apache

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

Make all

Make install

Make Install-init

Make Install-config

Make Install-commandmode

Make install-webconf

Htpasswd-c/usr/local/nagios/etc/htpasswd.users Nagiosadmin

Chkconfig--add Nagios

Service httpd Restart

Service Nagios Start

Sed-i ' s/^selinux=enforcing/selinux=disabled/'/etc/sysconfig/selinux

Service Iptables Stop

Chkconfig iptables off

Chkconfig Ip6tables off


Test:

1. Enter Ip/nagios in the browser

650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M01/7C/A2/wKioL1bUPs6wGRZ7AAKMBDvVHnE385.png "title=" login. png "alt=" Wkiol1bups6wgrz7aakmbdvvhne385.png "/>

2, log in after 650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7C/A2/wKioL1bUP7jDJ_2NAAHK6c3-fQI274.png "title = "01.png" alt= "Wkiol1bup7jdj_2naahk6c3-fqi274.png"/>

3. Take a look at it casually.

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/7C/A4/wKiom1bUQXzCCgkaAAHtOAfW9As048.png "style=" float: none; "Title=" 2 (1). png "alt=" Wkiom1buqxzccgkaaahtoafw9as048.png "/>

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7C/A4/wKiom1bUQYGh7mCzAAIApTQhhpA004.png "style=" float: none; "Title=" 2 (2). png "alt=" Wkiom1buqygh7mczaaiaptqhhpa004.png "/>

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7C/A3/wKioL1bUQfuQbIhKAALXST_RbwA375.png "style=" float: none; "Title=" 2 (3). png "alt=" Wkiol1buqfuqbihkaalxst_rbwa375.png "/>


This article is from the "Make a few" blog, be sure to keep this source http://9399369.blog.51cto.com/9389369/1746150

Nagios Installation Usage Introduction

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.