How Nagios Works

Source: Internet
Author: User

How Nagios Works

Nagios actively monitors through the Nrpe plugin and SNMP protocol. As for what is active monitoring can refer to the above mentioned. The simple solution is that nagios proactively obtains data from the remote host in accordance with the detection cycle. So real-time is going to be a little worse. Nagios monitors the Linux/unix server through the Nrpe plug-in and SNMP protocols, while monitoring Windows servers, switches, printers, and more through the SNMP protocol. In addition, Nagios can also monitor windows through the nsclient++ client.

NMS (Network management Platform) it will give the administrator a command line interface, you can send SNMP operation instructions to any of the monitored host, how can the monitor end to accept the instructions sent by the monitoring side, and can understand its instructions? On the monitored host to install a server process, the server process is simply to receive from the monitoring side of the query request, and can resolve the other side of the query request, and the other side of the request to return the data to each other. This service process is called the agent, a remote agent, the agent is only to receive our query instructions or other management instructions exist, NMS to the other agent after sending instructions. The agent obtains the data by performing some operations locally and returns the obtained results to the monitoring side. For example: Disk space, current service traffic, and so on.

But any one of us is being monitored to send instructions to request access to our data, so our privacy is nine, so in order to avoid this situation, introduced a simple authentication mechanism (comminuty) the name of the community is the password of the communication between the two sides. NMS is sent to the monitored host I am the cominuty:xxx, the monitoring side if recognized: XXX, the data back to the past.

There are 3 comminuty modes in the SNMP v1 version: Read-only,read-write,trap

Read-only: The management side can only initiate requests for information from the managed side, that is, only the information that is read from the managed

Read-write: The management side can send control instructions to the managed side, that is, the management side has the authority to operate the managed side. For example: Let it shutdown

Trap: the monitored side can actively contact the monitoring side, tell them there is a problem.

SNMP is a UDP protocol-based agent (passive open udp:161 port on the monitored side), NMS (passive open udp:162 port on the monitor side)

SNMP is based on UDP protocol is fast, TCP protocol is reliable, but need three times handshake, if the monitoring of the alarm is urgent to deal with, after three handshake is monitored by the end of the machine.

There are two packages on Linux on sbmp.

Net-snmp "SNMP agent is used on the monitor side"

Net-snmp-util "command set to be used on the monitor side"

Note: For the monitored side, only this one package net-snmp is required. For the monitoring side, under normal circumstances, if only to obtain information, whether it is get/set, the use of this package is net-snmp-utils, but if we want to receive the monitoring end through the trap sent by the notification message, Then our monitoring side must install NET-SNMP this package, and enable/ETC/RC.D/INIT.D/SNMPTRAPD this service.

How Nagios works

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.