Nagios-NRPE Documentation(译文)

1. INTRODUCTION(介绍)

a) Purpose(目的)

The NRPE addon(插件) is designed to allow you to execute(履行,执行) Nagios plugins on remote Linux/Unix machines.

(NRPE插件设计的目的是允许你来运行存在于远程linux/Unix主机上的Nagios plugins)

The main reason for doing this is to allow Nagios to monitor "local" resources (like CPU load, memory usage, etc.) on remote machines.

(最主要的原因是为了允许Nagios去监控远程主机的“本地”资源(像CPU负载,内存使用情况,等等))

Since(由于)these public resources are not usually exposed to external machines, an agent like NRPE must be installed on the remote Linux/Unix machines.

(由于这些公共的资源不是经常地被显露在外部的机器上,因此像NRPE这样一个代理必须安装在远程的linux/Unix机器上)

Note(提示): It is possible to execute(执行) Nagios plugins on remote Linux/Unix machines through SSH.  通过SSH来执行远程主机的Nagios plugins是可能的

There is a check_by_ssh plugin that allows you to do this.

有一个叫做“check_by_ssh”的插件会帮助你来实现。

Using SSH is more secure than the NRPE addon, but it also imposes a larger (CPU) overhead on both the monitoring and remote machines. (使用SSH比NRPE插件更安全,但是它也同时会把更大的开支强加于监控端和远程主机.) This can become an issue when you start monitoring hundreds or thousands of machines. (当你开始监控成百上千台主机时,这将会是一个重大的问题) Many Nagios admins(administrators缩写) opt for using the NRPE addon because of the lower load it imposes.(许多Nagios管理员选择使用NRPE插件就是因为它的加于主机的负担低的优点)

b) Design Overview(设计概官)

The NRPE addon consists of two pieces:

(NRPE插件包括两个部分:)

  • The check_nrpe plugin, which resides on the local monitoring machine

    (check_nrpe这个插件,存在于本地监控主机)

  • The NRPE daemon, which runs on the remote Linux/Unix machine

    (NRPE守护进程,运行在远程linux/Unix主机上)

When Nagios needs to monitor a resource of service from a remote Linux/Unix machine:

(当Nagios需要监控远程主机的一个服务的资源时:)

  • Nagios will execute the check_nrpe plugin and tell it what service needs to be checked

    (Nagios将利用check_nrpe插件执行相应的命令)

  • The check_nrpe plugin contacts the NRPE daemon on the remote host over an (optionally) SSL-protected connection

    (check_nrpe通过被保护的ssl连接远程主机的NRPE守护进程)

  • The NRPE daemon runs the appropriate Nagios plugin to check the service or resource

    (NRPE进程运行适当的Nagios插件去检测服务和资源)

  • The results from the service check are passed from the NRPE daemon back to the check_nrpe plugin, which then returns the check results to the Nagios process.

(将检测的结果从NRPE进程交给check_nrpe插件,插件将收到的检测结果返回给Nagios进程)

Note: The NRPE daemon requires that Nagios plugins be installed on the remote Linux/Unix host.  Without these, the daemon wouldn‘t be able to monitor anything.

提示:NRPE进程需要在Nagios plugins这个插件库被安装在远程主机上。如果没有这些的话,这个守护进程将无法监控到任何东西

2. EXAMPLE USES

a) Direct Checks(直接检查)

The most straight forward use of the NRPE addon is to monitor "local" or "private" resources on a remote Linux/Unix Machine.

NRPE插件最直截了当的使用方法是监控一台远程linux/Unix主机的“本地”和“私有”资源

This includes things like CPU load, memory usage, swap usage, current users, disk usage, process states, etc.

这些资源包括像CPU负载,内存、swap使用情况,当前的用户数量,磁盘使用状况和进程状态,等等

b) Indirect Checks(间接检查)

You can also use the NRPE addon to indirectly check "public" services and resources of remote servers that might not be reachable directly from the monitoring host.

(你也可以使用NRPE插件来间接检测远程服务器的公共服务和资源,而这些资源监控主机可能无法直接可以获取)

For instance, if the remote host that the NRPE daemon and plugins are installed on can talk to the a remote web server (but the monitoring host cannot), you can configure the NRPE daemon to allow you to monitor the remote web server indirectly.

(例如,如果一台已经安装过NRPE进程和plugins的远程主机可以和另一台远程web服务器进行通信,而主控端却不能,你可以通过配置NCRE进程来实现间接监控远程web服务器的目的)

The NRPE daemon is essentially acting as proxy in this case.

(此刻,NCRE进程本质上在这里是正在扮演一个代理的角色)

===================================================

致:

学习监控的同时,发现关于Nagios的帮助文档写的太好了,于是就忍不住想要尝试翻译一下,这只是NRPE参考文档的关于该技术的简要介绍,后续的安装和使用方法都还没有,如果有时间,会尽自己所能的翻译一下。

时间: 2024-10-10 06:02:39

Nagios-NRPE Documentation(译文)的相关文章

nagios nrpe

layout: post title: "nagios/nrpe" nrpe NRPE 可以理解为nagios 的 client for linux 源码下载: http://sourceforge.net/projects/nagios/files/nrpe-2.x/ 编译安装 wget http://cznic.dl.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz tar -xvpf nrpe-2

Nagios nrpe客户端的安装与配置

1.Nrpe安装 创建 nagios用户 useradd nagios 1.1被监控服务器安装nagios插件 tar xzvfnagios-plugins-1.4.15.tar.gz cd nagios-plugins-1.4.15 ./configure make make install 1.2被监控服务器安装nrpe程序 tar xzvf  nrpe-2.1.2.tar.gz cd nrpe-2.1.2 ./configure --prefix=/usr/local/nagios mak

安装配置nagios+nrpe+nconf

安装配置nagios+nrpe+nconf Nagios是一个功能非常强大的开源的系统网络监测程序,通过访问http://www.nagios.org可以了解其基本特性.Nagios不但能够实现对系统CPU,磁盘.网络等方面参数的基本系统监测,而且还能够监测包括SMTP,POP3,HTTP,NNTP等各种基本的服务类型.另外通过一些插件的安装和监测脚本自定义用户可以针对自己的应用程序实现监测,并针对大量的监测主机和多个对象部署层次化的监测架构 Nagios最大的特点之一是其设计者将Nagios设

实战Nagios网络监控(2)—— Nagios+Nrpe监控其他主机

本次实验在上次实验的环境下进行:实战Nagios网络监控(1)--监控本机运行状态和Mysq主机 需要的包:nagios-plugins-2.1.1.tar.gz nrpe-2.15.tar.gz 服务器端:server1.example.com        172.25.254.1 新监控端:server2.example.com        172.25.254.2 实验前提: /etc/init.d/httpd start /etc/init.d/nagios start /etc/i

Nagios NRPE超时问题

ESXi里面的一台ubuntu因为物理机当机,然后也挂了,重启后发现nagios有问题. 表现为: 监测的服务有Current Loas.DRBD.Disk_Space.PING.SSH. 而有问题的就只有PING.SSH. 在服务器端测试如下: [email protected]:/usr/local/nagios/libexec# ./check_nrpe -H 192.168.100.5 -c check_ping  CHECK_NRPE: Socket timeout after 10 

nagios+nrpe监控配置错误日志集

报错:UNKNOWN: iostat not found or is not executable by the nagios user 客户端缺少:iostat命令 下载:wget ftp://195.220.108.108/linux/centos/6.5/os/x86_64/Packages/sysstat-9.0.4-22.el6.x86_64.rpm 安装:rpm -ivh sysstat-9.0.4-22.el6.x86_64.rpm 问题解决!!!

Nagios集成Selenium

Nagios与Selenium结合可以执行更复杂的页面检查,检测网站运行状态.任务运行情况等. Nagios集成Selenium步骤: 编写一个用来调用测试用例的Java Main函数 编写运行测试用例的shell脚本check_selenium.sh 定义Nagios Command和Service Java测试程序 说明:Java Main函数使用了https://github.com/czunker/check_selenium 的CallSeleniumTest类,略作修改. POM <

nagios安装(nrpe安装)

nagios文件目录: bin目录用来存放nagios的执行程序,包括nagios.nrpe等. etc目录用来存放nagios的配置文件. libexec目录用来存放nagios的监控插件. sbin目录用来存放nagios cgi文件,也就是执行外部命令所需文件所在的目录. share目录用来存放nagios网页文件,也就是存放web页面的目录. include目录用来存放nagios cgi文件的外部调用. var目录用来存放nagios日志文件.lock文件等文件. nagios配置文件

Install Nagios (Agent) nrpe client and plugins in Ubuntu/Debian

安装apt-get install nagios-nrpe-server nagios-plugins 修改nrpe.cfgvi /etc/nagios/nrpe.cfg修改Allow Host,添加监控机的IPservice nagios-nrpe-server restart 安装流量监控下载插件check_traffic插件apt-get install snmpd snmp-mibs-downloader