1. INTRODUCTION(Introduction)
a) Purpose(Purpose)
The NRPE addon (plug-in) is designed-to-allow-execute (fulfillment, execution) Nagios plugins on remote Linux/unix machines.
(The Nrpe plug-in is designed to allow you to run Nagios plugins that exists on a remote Linux/unix host)
The main reason for doing the "local" resources (like CPU load, memory usage, etc.) on Remo Te machines.
(The main reason is to allow Nagios to monitor the "local" resources of the remote host (like CPU load, memory usage, etc.)
Since (because) these public resources is not usually exposed to external machines, a agent like NRPE must is installed on the Remote Linux/unix machines.
(Since these public resources are not often exposed to external machines, a proxy such as Nrpe must be installed on a remote Linux/unix machine)
Note (hint): It is possible to execute (execution) Nagios plugins on remote Linux/unix machines through SSH. It is possible to execute the Nagios plugins of the remote host via SSH
There is a check_by_ssh plugin, that allows.
There is a plugin called "check_by_ssh" that will help you to implement it.
Using SSH is more secure than the NRPE addon, but it also imposes a larger (CPU) overhead on both the monitoring and R Emote machines. (using SSH is more secure than Nrpe plug-ins, but it also imposes more overhead on the monitor and remote hosts.) This can become a issue when you start monitoring hundreds or thousands of MA Chines. (This will be a major problem when you start monitoring hundreds of hosts) many Nagios admins (administrators abbreviation) opt for using the NRPE addon because of the lower load I T imposes. (many Nagios administrators choose to use the Nrpe plugin because of its low burden on the host)
b) Design Overview(designing Officer)
650) this.width=650; "title=" clip_image01.jpg "alt=" wkiol1q6gnajbnpwaacvqgb8ima859.jpg "src=" http://s3.51cto.com/ Wyfs02/m00/4c/47/wkiol1q6gnajbnpwaacvqgb8ima859.jpg "/>
The NRPE addon consists of the pieces:
(The Nrpe plugin consists of two parts:)
-
The Check_nrpe plugin, which resides on the local monitoring machine
(Check_nrpe this plugin, exists in the local monitoring host)
-
The NRPE daemon, which runs on the remote Linux/unix machine
(Nrpe daemon, running on remote Linux/unix host)
When Nagios needs to monitor a resource for service from a remote Linux/unix machine:
(When Nagios needs to monitor a service's resources for a remote host:)
-
Nagios would execute the Check_nrpe plugin and tell it about service needs to be checked
(Nagios will use the Check_nrpe plugin to execute the corresponding command)
-
The Check_nrpe plugin contacts the Nrpe daemon on the remote host over an (optionally) Ssl-protected connection
(Check_nrpe connect the remote host's Nrpe daemon via protected SSL)
-
The NRPE daemon runs the appropriate Nagios plugin to check the service or resource
(The Nrpe process runs the appropriate Nagios plugin to detect services and resources)
-
The results from the service check is passed from the NRPE daemon back to the Check_nrpe plugin and which then returns the C Heck results to the Nagios process.
(The results from the Nrpe process are passed to the Check_nrpe plugin, and the plugin returns the detected results to the Nagios process)
Note:the NRPE daemon requires that Nagios plugins is installed on the remote Linux/unix host. Without these, the daemon wouldn ' t be able to monitor anything.
Tip: The Nrpe process needs to be installed on the remote host in Nagios plugins this plugin library. Without these, this daemon will not be able to monitor anything.
2. EXAMPLE USES
A) Direct Checks (direct inspection)
The most straight forward use of the NRPE addon are to monitor "local" or "private" resources on a remote Linux/unix Machin E.
The most straightforward way to use the Nrpe plugin is to monitor a remote Linux/unix host's "local" and "private" resources
This includes things like CPU load, memory usage, swap usage, current users, disk usage, process states, etc.
These resources include CPU load, memory, swap usage, current number of users, disk usage and process status, and more
650) this.width=650; "Width=" 588 "height=" 168 "title=" Clip_image02.jpg "alt=" wkiom1q6gl3bc4vqaacyrgahhhq191.jpg "src = "Http://s3.51cto.com/wyfs02/M00/4C/46/wKiom1Q6gl3Bc4VQAACYRgahHhQ191.jpg"/>
B) Indirect Checks (Indirect inspection)
You can also use the NRPE addon to indirectly check "public" services and resources of remote servers that might not being re Achable directly from the monitoring host.
(You can also use the Nrpe plugin to indirectly detect the remote server's public services and resources, which may not be available directly to the resource monitoring host)
For instance, if the remote host is the NRPE daemon and plugins is installed on can talk to the a Remote Web server (BU t the monitoring host cannot), you can configure the NRPE daemon to allow you to monitor the remote Web server indirectly.
(for example, if a remote host that has already installed the Nrpe process and the plugins can communicate with another remote Web server and the master does not, you can configure the NCRE process to indirectly monitor the remote Web server.)
The NRPE daemon is essentially acting as proxy in this case.
(At this point, the ncre process is essentially playing an acting role here.)
650) this.width=650; "title=" clip_image03.jpg "alt=" wkiol1q6gu3s8pidaachnr7yzwo519.jpg "src=" http://s3.51cto.com/ Wyfs02/m02/4c/47/wkiol1q6gu3s8pidaachnr7yzwo519.jpg "/>
===================================================
Induced by:
While learning to monitor, find out about Nagios's help document written too good, so I can't help but want to try to translate, this is just Nrpe reference document on the technology of the brief introduction, the follow-up installation and use of methods are not, if there is time, will do their best to translate.
This article is from the "zcy.gy" blog, make sure to keep this source http://1064187464.blog.51cto.com/9108437/1563045
Nagios-nrpe documentation (translated)