Configure NRPE of Nagios on RedHat5.4 for remote monitoring

Source: Internet
Author: User
Tags unix domain socket
1. Introduction to nagios plug-ins 1. nagios is an open-source network monitoring software that can be used to monitor host, service, and other objects. nagios can change the image status according to the monitoring changes, for the notification administrator, of course, you can select the alarm method (E-mai, SMS (that is, SMS Service) 2nagios usually has a main program, a plug-in program nagios-plug First,Introduction to nagios plug-ins

1. nagios is an open-source network monitoring software that can be used to monitor host, service, and other objects. nagios can notify administrators of changes to the image status according to the monitoring changes, of course, you can select the alarm method (E-mai, SMS (Short Message Service ))

2 nagios usually has a main program, a plug-in program nagios-plugins and four optional ADDON are made of NRPE, NSCA, NSClient ++, and Ndoutils respectively, of course, the monitoring work of nagios is implemented through plug-ins. nagios and nagios-Plugins are necessary components for server work, while the other four ADDON functions respectively.

NRPE is used to monitor remote linux/unix hosts, execute plug-ins or scripts on remote hosts, and monitor host resources and services, of course, if you use this method to monitor resources on a remote linux/unix host, you must install the nrpe on the nagios server.

NSCA is a monitored remote linux/unix host that actively sends monitoring information to the nagios server (used in redundancy monitoring mode, this plug-in is also used in distributed monitoring of nagios. If you use the NSCA plug-in to monitor resources on a remote host, the nagios server also needs to install this plug-in.

NSClient ++ this plug-in is used to monitor resources on the Window host,

Ndoutils addon is mainly used to store Nagios configuration information and event-generated data to the database. (currently, beta supports mysql and pgsql, and the stable version only supports mysql ), to facilitate the rapid retrieval and processing of data, and to ensure other web interface programs to manage the data.

In a large application, multiple independent or distributed Nagios servers may exist. Each Nagios server in this environment is usually called a Nagios instance. In the environment of multiple Nagios instances, you can either store the data of all instances in one database or store the data of each instance separately.

In an environment with only one Nagios instance, the Instance name is usually "default". In a multi-instance Environment, you must name each Nagios instance.

NDO Utils consists of the following four parts: 1) NDOMOD Event Broker Module (NDOMOD. o): Used to output data (data and logic) generated by Nagios processes. The premise is that Nagios enables the Event broker function during compilation. In addition, the NDOMOD module can export Nagios configuration information (including the dynamic data generated by the runtime environment of the Nagios monitoring process) to files, Unix domain sockets, or TCP sockets. NDO2DB obtains data about Nagios in the preceding three methods. 2) NDO2DB: used to receive and store information output by NDOMOD and LOG2NDO components in the database. At startup, The NDO2DB process will create a TCP socket or Unix domain socket to listen to client (output end) connection requests. Currently, only MySQL databases are supported. Multiple Clients can output data to an NDO2DB daemon at the same time. In this case, NDO2DB establishes a connection process for each connected client (Nagios instance, to achieve independent storage, retrieval and processing of data on each client. 3) LOG2NDO: Used to output historical Nagios logs to the database through the NDO2DB process. The methods for LOG2NDO to communicate with the NDO2DB process are still standard files, Unix domain sockets, or TCP sockets. 4) FILE2SOCK: reads data from a standard file or standard input and outputs the data to a Unix or TCP socket. When NDOMOD or LOG2NDO outputs data to a standard file, this tool can read the data in these standard files and send the data to the TCP socket or Unix domain socket listened by the NDO2DB process.

650) this. width = 650; "border = 0>

The architecture of nagios components is as follows:

650) this. width = 650; "border = 0>

Related Article

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.