Nagios Introduction and principles

Source: Internet
Author: User


1. about Nagios

1. The difference from cacti

a) Cacti

1.Cacti More emphasis on intuitive data monitoring, easy to generate graphics, used to monitor network traffic,CPU utilization, hard disk usage, etc. can be said to be very suitable but

2. monitoring data via SNMP

3. Presentation Tools

4. add modules to monitor with plugins

b) Nagios

1. More focus on the monitoring of the host and service, and have a very strong ability to send alarm information

2. More monitoring methods

3. Configure a flexible monitoring tool

4. scripting and agent monitoring

2. Monitoring Objects

a) host, host group: server, virtual machine, network device

b) Services / resources, service groups:http service,MySQL service,CPU Resources, hard disks, memory resources

c) contact person, contact Group: Administrator

d) period: Time range

e) command: Monitor a template for an object

Use different steps for different monitoring objects

Different steps may also be used for the same monitoring object

3. main functions

Network Service monitoring (, pop3 http nntp icmp SNMP ftp ssh )

Host resource monitoring (CPU load,disk usage,system logs), also including Windows Host (using nsclient++ Plugin )

You can specify the Plugin you write to collect data over the network to monitor any situation (temperature, warning ...). )

Scripts can be executed remotely by configuring the Nagios remote execution plug-in

ssh Span style= "font-family: ' italics ';" > or ssl plus channel mode for monitoring

  simple design allows users to easily develop their own required inspection services, supporting many development languages ( shell scripts c++ perl ruby python php c#

Contains many graphical data Plugins(nagiosgraph,nagiosgrapher, Pnp4nagios , etc.)

Parallel service Check Available

Ability to define the hierarchy of network hosts, allowing for step-by-step checks, starting from the parent host

Notify When a problem occurs with a service or host, via email, pager, SMS or any user-defined plugin

Ability to customize the event handling mechanism to reactivate a faulty service or host

Automatic log Looping

Supports redundant monitoring

Includes Web interface to view current network status, notifications, problem history, log files, etc.

2. How Nagios works

Nagios 's function is Monitoring Services and hosts , but he does not include this part of the function himself, all the monitoring and detection functions are through a variety of plug-ins to complete. .

Start after Nagios, it periodically automatically calls the plugin to detect the state of the server, while Nagios maintains a queue where all the plug-ins return state information into the queue,Nagios Each time the information is read from the first team and processed, the status results are displayed through the Web .

Nagios provides a number of plug-ins that allow you to easily monitor many service statuses. After the installation is complete, in the /libexec in the Nagios home directory all the plugins that are available with Nagios , for example,check_disk is a plug-in that checks disk space,check_load checks the CPU load, and so on. Each plugin can be run by the./check_xxx –H to view its usage and functionality.

Nagios can identify 4 status return information, i.e. 0 (OK) indicates normal state / Green, 1 (WARNING) ' indicates a warning / Span style= "font-family: ' italics ';" > yellow, 2 (CRITICAL) indicates a very serious error / red, 3 (UNKNOWN) / Span style= "font-family: ' italics ';" > dark yellow . Nagios determines the state of the monitored object based on the value returned by the plug-in, and displays it through the Web for administrators to detect faults in a timely manner


Four monitoring states

Normal OK Green

Warning WARNING Yellow

Severe CRITICAL Red

Unknown error unkown Dark Yellow


nagios One of the most important features. However, similarly, There is no code for the alarm part, not even plug-ins, but to the user or other relevant open source project team to complete < span>

so Nzgios How to manage the remote server object. The Nagios system provides a plugin NRPE. Nagios runs it periodically to obtain various state information for the remote server .


Nagios uses NRPE to manage services remotely  

1. Nagios executes the Check_nrpe plugin installed inside it and tells Check_nrpe to detect which services.

2. via SSL,theCheck_nrpe connects to the Nrpe on the remote machine Daemon

3. NRPE runs various local plugins to detect local service and status (Check_disk,.. etc)

4. Finally,NRPE The results of the test to the host side of the Check_nrpe,Check_nrpe to send the results to the Nagios status queue.

5. Nagios reads the information in the queue, then displays the results.




This article is from the "Lingyu Technology blog" blog, make sure to keep this source http://lampit.blog.51cto.com/12958178/1931046

Nagios Introduction and principles

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.