`
lilisalo
  • 浏览: 1125163 次
文章分类
社区版块
存档分类
最新评论

NRPE与远程系统监测的详细攻略(五)(转载)

 
阅读更多

这一话主要讲NRPE的作用,以及Nagios监控主机和被监控主机需要做的安装工作。最重要的是,这一话中将会详细交待Nagios利用NRPE扩展插件来执行远程系统监测服务的配置。

一.NRPE的功能和意义:
之前已经理解了Nagios的服务-命令-插件的工作关系,因此也明确了基本的Nagios服务是无法实现对远程系统的状况进行监测的,基本的
Nagios监测服务只能是本地系统监测以及对远程主机的连通性监测。为了使Nagios的监测服务器能够远程对被监测主机系统上的信息进行获取,比如远 程系统上的进程数、磁盘空间使用状况、所运行的服务等等这些必须要登录远程主机系统上才能了解的信息的话,就必须要依靠NRPE这个核心扩展插件程 序,NRPE作为中间的代理程序,扮演着一手接受着Nagios监测服务器发来的请求,另一手在远程主机系统上获取指定的信息的中间人角色。


二.NRPE的主要工作方式:
如以上提到的实现Nagios对远程系统的监测,那么首先必须要在被监测的远程主机上除了安装Nagios-plugins插件程序之外还必须安装 NRPE核心扩展插件程序,并将NRPE在被监测的远程主机系统上以守护进程的方式运行起来,开放指定的NRPE监听端口监听着Nagios监测服务器发 送过来的所有监测请求。另外,在Nagios监测服务器上,在必须要安装Nagios-plugins插件程序和NRPE核心扩展插件程序。唯一不同的 是,Nagios监测服务器不需要将NRPE作为守护进程运行着,因为它本身一般不需要被别人监测着而是去监测别人,对Nagios监测服务器而言,它只 需要使用到Nagio-plugins插件程序和NRPE扩展插件程序就足够了。


三.在被监控主机上安装Nagios-plugins插件程序:
1.添加Nagio用户
[root@KCentOS5A ~]# useradd nagios

2.准备好Nagios-plugins和NRPE源代码包
[root@KCentOS5A ~]# ll
-------------------------------------------------------
total 2008
-rw------- 1 root root 928 Oct 3 10:33 anaconda-ks.cfg
-rw-r--r-- 1 root root 22760 Oct 3 10:33 install.log
-rw-r--r-- 1 root root 2888 Oct 3 10:33 install.log.syslog
-rw-r--r-- 1 root root 1693979 Sep 30 22:51 nagios-plugins-1.4.10.tar.gz
Nagios-plugins插件程序包

-rw-r--r-- 1 root root 305019 Sep 30 22:58 nrpe-2.9.tar.gz
NRPE扩展插件功能包
-------------------------------------------------------

3.解压Nagios-plugins压缩包
[root@KCentOS5A ~]# tar -zxvf nagios-plugins-1.4.10.tar.gz

4.进入Nagios-plugins插件包目录
[root@KCentOS5A ~]# cd nagios-plugins-1.4.10

5.预配置Nagios-plugins的安装路径
[root@KCentOS5A nagios-plugins-1.4.10]# ./configure --prefix=/usr/local/nagios

6.预配置完成后会反馈信息并生成Makefile
-------------------------------------------------------
config.status: creating po/Makefile
--with-apt-get-command:
--with-ping6-command: /bin/ping6 -n -U -w %d -c %d %s
--with-ping-command: /bin/ping -n -U -w %d -c %d %s
--with-ipv6: yes
--with-mysql: no
--with-openssl: yes
--with-gnutls: no
--with-perl: /usr/bin/perl
--enable-perl-modules: no
--with-cgiurl: /nagios/cgi-bin
--with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin
-------------------------------------------------------

7.编译Nagios-plugins插件程序
[root@KCentOS5A nagios-plugins-1.4.10]# make

8.安装Nagios-plugins插件程序
[root@KCentOS5A nagios-plugins-1.4.10]# make install

9.查看Nagios-plugins插件程序的安装
[root@KCentOS5A nagios-plugins-1.4.10]# ll /usr/local/nagios/
total 8
drwxr-xr-x 2 root root 4096 Oct 7 01:02 libexec
drwxr-xr-x 3 root root 4096 Oct 7 01:02 share

10.递归更改Nagios主路径的属主
[root@KCentOS5A ~]# chown -R nagios.nagios /usr/local/nagios/

11.检查Nagios主路径的属性
[root@KCentOS5A ~]# ll /usr/local/|grep nagios
drwxr-xr-x 4 nagios nagios 4096 Oct 7 01:02 nagios

[root@KCentOS5A ~]# ll /usr/local/nagios/
total 8
drwxr-xr-x 2 nagios nagios 4096 Oct 7 01:02 libexec
drwxr-xr-x 3 nagios nagios 4096 Oct 7 01:02 share


四.再在被监控主机上安装NRPE扩展插件程序:
1.解压NRPE的压缩包
[root@KCentOS5A ~]# tar -zxvf nrpe-2.9.tar.gz

2.进入NRPE包目录
[root@KCentOS5A ~]# cd nrpe-2.9

3.预配置NRPE安装程序
[root@KCentOS5A nrpe-2.9]# ./configure

4.预配置完毕后会反馈提示信息以及建立Makefile
-------------------------------------------------------
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating subst
config.status: creating include/config.h

*** Configuration summary for nrpe 2.9 08-13-2007 ***:
General Options:
-------------------------
NRPE port: 5666
NRPE user: nagios
NRPE group: nagios
Nagios user: nagios
Nagios group: nagios

Review the options above for accuracy. If they look okay,
type 'make all' to compile the NRPE daemon and client.
最后提示继续使用“make all”命令来对NRPE守护程序以及客户端程序进行编译。
-------------------------------------------------------

5.对NRPE程序进行编译
[root@KCentOS5A nrpe-2.9]# make all

6.编译成功后会反馈提示信息
-------------------------------------------------------
*** Compile finished ***
If the NRPE daemon and client compiled without any errors, you
can continue with the installation or upgrade process.
Read the PDF documentation (NRPE.pdf) for information on the next
steps you should take to complete the installation or upgrade.
在NRPE的包目录中有一份NRPE.pdf的手册,接下来就可以参考那份手册进行后续的操作了。
-------------------------------------------------------
安装NRPE插件程序,守护程序以及模板守护程序配置文件。
Install the NRPE plugin (for testing), daemon, and sample daemon config file.

7.安装NRPE插件程序
[root@KCentOS5A nrpe-2.9]# make install-plugin

8.安装NRPE守护程序
[root@KCentOS5A nrpe-2.9]# make install-daemon

9.安装NRPE守护程序配置文件
[root@KCentOS5A nrpe-2.9]# make install-daemon-config

10.检查NRPE程序的安装
[root@KCentOS5A nrpe-2.9]# ll /usr/local/nagios/
-------------------------------------------------------
total 16
drwxrwxr-x 2 nagios nagios 4096 Oct 7 01:16 bin
drwxrwxr-x 2 nagios nagios 4096 Oct 7 01:16 etc
drwxr-xr-x 2 nagios nagios 4096 Oct 7 01:15 libexec
drwxr-xr-x 3 nagios nagios 4096 Oct 7 01:02 share
-------------------------------------------------------


五.在被监测主机上配置并运行NRPE:
1.配置NRPE的主配置文件
[root@KCentOS5A ~]# vi /usr/local/nagios/etc/nrpe.cfg
这里主要交待一些关键重要的设定。
-------------------------------------------------------
pid_file=/var/run/nrpe.pid
设定NRPE运行的PID文件,这个默认就设定好了,不用更改。

server_port=5666
这个是NRPE守护进程占用的系统端口。

#server_address=0.0.0.0
server_address=192.168.1.9
设定系统监听NRPE的网络接口。一般设定具体的IP地址,如果要多个网卡的话就用逗号“,”来分隔多个IP地址。如果要监听系统全部的网络接口的话,可以使用“0.0.0.0”这个表示全部网络接口的特殊地址,但是不可以用通配符“*”。

nrpe_user=nagios
nrpe_group=nagios
设定NRPE的宿主用户。

allowed_hosts=192.168.1.12
这里是设定允许与本机进行NRPE交互的主机的IP地址,也就是Nagios监测服务器的地址,如果要指定多个Nagios服务器的话,那么用逗号“,”来分隔多个IP地址。

command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
以上是NRPE默认就有的扩展插件命令,这是至关重要的地方了。当被监测主机运行NRPE守护进程的时候,同时就运行起来了这些在NRPE配置文件中定义的NRPE扩展命令了。可以看出这些扩展命令都已经指定了好了命令名、插件路径以及选项参数了。格式如下:

command[NRPE命令名]=插件路径/插件 选项1 参数1 选项2 参数2 ...

注意,如果要指定该被监测主机需要被监控的服务的话,就必须在这里都配置好NRPE命令并运行在NRPE守护进程里。这里没有配置的NRPE命令则Nagios监测服务器是无法监控到的。
-------------------------------------------------------

2.找到NRPE运行的执行程序
[root@KCentOS5A ~]# ll /usr/local/nagios/bin/nrpe
-rwxrwxr-x 1 nagios nagios 93420 Oct 7 01:16 /usr/local/nagios/bin/nrpe

3.了解NRPE的执行程序的使用方式
[root@KCentOS5A ~]# /usr/local/nagios/bin/nrpe -h
-------------------------------------------------------
Usage: nrpe [-n] -c <config_file> <mode>
运行方法:nrpe -c NRPE配置文件路径 运行模式

Options:
可用选项

-n = Do not use SSL
不使用SSL方式,一般都使用SSL。

<config_file> = Name of config file to use
指定NRPE配置文件路径,这个NRPE主配置文件就是nrpe.cfg。

<mode> = One of the following two operating modes:
指定NRPE的运行方式,一共有2种可用的NRPE运行方式:

-i = Run as a service under inetd or xinetd
以超级守护进程inetd或xinetd方式运行NRPE,要通过这种方式运行的话还要安装和配置xinetd,一般不用。

-d = Run as a standalone daemon
以独立守护进程方式运行NRPE,一般常用这种运行方式。
-------------------------------------------------------

4.运行NRPE守护进程
[root@KCentOS5A ~]# /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d

5.查看系统日志检查NRPE运行情况:
[root@KCentOS5A ~]# tail /var/log/messages
-------------------------------------------------------
Oct 7 01:45:10 KCentOS5A nrpe[21659]: Starting up daemon
说明已经顺利启动了NRPE守护进程。

Oct 7 01:45:10 KCentOS5A nrpe[21659]: Listening for connections on port 5666
说明已经启动了5666端口为NRPE的监听端口。

Oct 7 01:45:10 KCentOS5A nrpe[21659]: Allowing connections from: 192.168.1.12
说明已经打开对指定的Nagios监测服务器的访问允许。
-------------------------------------------------------

6.检查NRPE的进程信息
[root@KCentOS5A ~]# ps aux | grep nrpe
-------------------------------------------------------
nagios 21659 0.0 0.3 4396 868 ? Ss 01:45 0:00 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
-------------------------------------------------------

7.检查NRPE的网络连接信息
-------------------------------------------------------
[root@KCentOS5A ~]# netstat -nap | grep nrpe
tcp 0 0 192.168.1.9:5666 0.0.0.0:* LISTEN 21659/nrpe
unix 2 [ ] DGRAM 23374 21659/nrpe
-------------------------------------------------------

8.将NRPE运行添加加入系统启动脚本中
[root@KCentOS5A ~]# echo "/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d" >> /etc/rc.d/rc.local
到此,被监控主机要做的工作已经完成了。


六.在Nagios监测服务器上安装NRPE核心扩展插件程序
相对被检测主机来说,Nagios监测服务器上做的NRPE安装就比较简单了,而且它主要监测别人而不是被别人监测,所以它不需要将NRPE作为守护进程运行起来,只要拥有NRPE的扩展插件功能就可以了。
1.解压NRPE压缩包
[root@KCentOS5C ~]# tar -zxvf nrpe-2.9.tar.gz

2.进入NRPE包目录
[root@KCentOS5C ~]# cd nrpe-2.9

3.预配置NRPE安装程序
[root@KCentOS5C nrpe-2.9]# ./configure

4.编译NRPE程序
[root@KCentOS5C nrpe-2.9]# make all

5.安装NRPE扩展插件程序
[root@KCentOS5C nrpe-2.9]# make install-plugin
Nagios只要拥有NRPE的扩展插件功能就可以了,所以在Nagios监测服务器安装NRPE工作到这步就可以了。接下来要做的就是在Nagios监 测服务器上配置NRPE的扩展插件命令,使得Nagios监测服务器能够定义nrpe命令,从而可以定义出“远程系统监测服务”。


七.在监控主机上配置NRPE的服务
1.查看新扩展插件check_nrpe的使用方法
[root@KCentOS5C ~]# /usr/local/nagios/libexec/check_nrpe -h|less
-------------------------------------------------------
Usage: check_nrpe -H <host> [-n] [-u] [-p <port>] [-t <timeout>] [-c <command>]
使用方式:check_nrpe -H 主机名 -p NRPE端口 -c NRPE命令名

Options:
选项:

<host> = The address of the host running the NRPE daemon
主机,运行着NRPE守护进程的远程被监测主机名,并且该主机名必须在host里定义过。

[port] = The port on which the daemon is running (default=5666)
端口,被监测的远程主机上运行NRPE的端口,默认是5666,如果是默认就不用指定。

[command] = The name of the command that the remote daemon should run
命令,这些命令名必须是被监测主机上NRPE守护进程运行着的。
-------------------------------------------------------

2.在command.cfg命令定义文件中添加NRPE命令。
[root@KCentOS5C ~]# vi /usr/local/nagios/etc/commands.cfg
-------------------------------------------------------
# NRPE Command
添加NRPE功能命令。

define command(
command_name nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}
-------------------------------------------------------
这里要说明几点:
(1)这里定义的命令名就叫作nrpe。
(2)$USER1$/check_nrpe会通过引用resource.cfg获得/usr/local/nagios/libexec/check_nrpe这个绝对路径。
(3)-H $HOSTADDRESS$ 用来获得指定被监测主机的IP地址,$HOSTADDRESS$变量会通过定义主机名查找到host段中的IP地址。
(4)-c $ARG1$ 用来指定被监测主机上NRPE守护进程运行着的NRPE命令名。

3.添加NRPE监控服务
-------------------------------------------------------
#Define Remote Current Users
定义监测远程系统当前登录用户数量服务。
define service{
use remote-service
host_name KCentOS5A
service_description Current Users On Remote System
check_command nrpe!check_users
}

#Define Remote System Loads
定义监测远程系统当前负载服务。
define service{
use remote-service
host_name KCentOS5A
service_description Current System Loads
check_command nrpe!check_load
}

#Define Remote Zombie Processes
定义监测远程系统僵尸进程数服务。
define service{
use remote-service
host_name KCentOS5A
service_description Zombie Processes On Remote System
check_command nrpe!check_zombie_procs
}

#Define Remote System Total Processes
定义监测远程系统进程总数服务。
define service{
use remote-service
host_name KCentOS5A
service_description Total Processes On Remote System
check_command nrpe!check_total_procs
}
-------------------------------------------------------
再强调一遍:
(1)这里check_command后面的nrpe是commands.cfg里定义的命令名。
(2)而nrpe命令名后用感叹号“!”分隔的是NRPE命令名,这些NRPE命令是在远端被监测主机上nrpe.cfg中command后方括号“[]”中定义的命令名,并且被远程NRPE守护进程运行着。

3.在修改配置并确认完毕后,重新启动Nagios主程序。
[root@KCentOS5C ~]# service nagios restart
Running configuration check...done
Stopping nagios: done.
Starting nagios: done.
这里特别提醒一点: 如果配置文件当中不小心出现偏差的话,那么Nagios程序将启动失败,而且通过service nagios restart这种方式的话,还可能不会出现配置文件出错的任何提示信息,即使在日志中也不会记录,就是单单地告诉你不能启动,这样会给排查错误带来巨大 的困扰。如果发生了配置文件错误而导致Nagios启动失败的话,那么请不要使用service nagios restart/start这样的方式启动。而是使用命令的方式启动它:/usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg 这个命令来启动Nagios主程序,这样的方式下,如果Nagios配置错误的话,它还会提示出错信息,以方便于故障的排查。


八.定制个性化的NRPE远程监控服务:
默认情况下被检测主机上的NRPE配置文件nrpe.cfg中只给出了5条NRPE命令名,如下
-------------------------------------------------------
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
-------------------------------------------------------
其实在方括号“[]”里面写的才是真正的NRPE命令名,而其后的部分则是指定了所使用到的插件路径以及相应的选项和参数,也就是说,命令名和其使用到的 插件以及相应的选项和参数是在被监测端定义的,而Nagios主监测服务器上只要把被监控端上定义的NRPE命令名拿过来再加入到服务定义中就可以了。

比如我要增加两个远程监测服务,分别是:
(1)监测远程主机上的sda1磁盘空间使用状况。
(2)监测远程主机上的swap交换分区使用状况。

1.首先要找到相应的插件,以及使用方法。
根据要求,找到check_disk和check_swap这两个插件。
首先看看check_disk的用法。
[root@KCentOS5C ~]# /usr/local/nagios/libexec/check_disk -h|less
-------------------------------------------------------
Usage: check_disk -w limit -c limit {-p path | -x device}
格式:check_disk -w 低限% -c 低限% -p 磁盘设备文件或则分区文件的绝对路径

Options:
选项

-w, --warning=PERCENT%
设定告警通知百分比数,空间低于该百分比则发出告警通知。

-c, --critical=PERCENT%
设定严重告警通知百分比数,空间低于该百分比则发出严重告警通知。

-p, --path=PATH, --partition=PARTITION
指定磁盘设备文件或则分区文件的绝对路径。
-------------------------------------------------------

再来看看check_swap的用法。
[root@KCentOS5C ~]# /usr/local/nagios/libexec/check_swap -h|less
-------------------------------------------------------
Usage:check_swap [-av] -w <percent_free>% -c <percent_free>%
check_swap -w 剩余空间% -c 剩余空间%

check_swap [-av] -w <bytes_free> -c <bytes_free>
check_swap -w 剩余字节数 -c 剩余字节数

Options:
选项

-w, --warning=INTEGER
设定告警通知剩余字节数,剩余字节低于该值则发出告警通知,只可整数。

-w, --warning=PERCENT%%
设定告警通知百分比数,剩余空间低于该百分比则发出告警通知,双百分号。

-c, --critical=INTEGER
设定严重告警通知剩余字节数,剩余字节低于该值则发出严重告警通知,只可整数。

-c, --critical=PERCENT%%
设定严重告警通知百分比数,剩余空间低于该百分比则发出严重告警通知,双百分号。
-------------------------------------------------------

2.在被监控主机上编辑nrpe.cfg配置文件:
[root@KCentOS5A ~]# vi /usr/local/nagios/etc/nrpe.cfg
-------------------------------------------------------
# Added NRPE Commands
下面两条是自己添加的NRPE命令名。

command[disk_observer]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/sda
设定监测/dev/sda块设备文件,空间小于20%产生告警,小于10%产生严重告警。

command[swap_observer]=/usr/local/nagios/libexec/check_swap -w 45%% -c 25%%
设定监测Swap交换分区,占用率大于55%则产生告警,大于75%则产生严重告警。
-------------------------------------------------------

3.重新启动被监控主机的NRPE守护进程:
[root@KCentOS5A ~]# killall nrpe
[root@KCentOS5A ~]# /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d

4.检查被监测主机的NRPE守护进程:
[root@KCentOS5A ~]# ps aux | grep nrpe
nagios 27504 0.0 0.3 4396 868 ? Ss 03:35 0:00 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d

5.在Nagios监控服务器上首先确认NRPE的命令定义:
[root@KCentOS5C ~]# vi /usr/local/nagios/etc/commands.cfg
-------------------------------------------------------
define command{
command_name nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}
-------------------------------------------------------

6.在Nagios监控服务器上然后按照NRPE命令定义来添加NRPE远程监控服务:
[root@KCentOS5C ~]# vi /usr/local/nagios/etc/localhost.cfg
-------------------------------------------------------
#Define Remote System Disk Using
定义监测远程系统磁盘使用状况。
define service{
use remote-service
host_name KCentOS5A
service_description Disk Using Of Remote System
check_command nrpe!disk_observer
}

#Define Remote System Swap Using
定义监测远程系统交换分区使用状况。
define service{
use remote-service
host_name KCentOS5A
service_description Swap Using Of Remote System
check_command nrpe!swap_observer
}
-------------------------------------------------------
7.重新启动Nagios监测服务器的监测程序:
[root@KCentOS5C ~]# service nagios restart
Running configuration check...done
Stopping nagios: .done.
Starting nagios: done.

8.查看Naigos服务运行状况:
[root@KCentOS5C ~]# ps aux | grep nagios
nagios 7367 0.0 0.3 22888 904 ? Ssl 21:24 0:00 /usr/local/nagios/bin/nagios -d
/usr/local/nagios/etc/nagios.cfg
root 7376 0.0 0.2 3884 660 pts/2 R+ 21:25 0:00 grep nagios

9.通过浏览器来访问Nagios监测服务器
-------------------------------------------------------
Service Status Details For All Hosts

Host Service Status Last Check Duration Attempt Status Information
KCWIN2K3A
PING
CRITICAL 10-06-2007 21:34:24 1d 2h 44m 32s 1/2 CRITICAL - Host Unreachable (192.168.1.14)

KCXP1
PING
OK 10-06-2007 21:35:50 0d 2h 48m 58s 1/2 PING OK - Packet loss = 0%, RTA = 0.71 ms

KCentOS5A
Current System Loads
OK 10-06-2007 21:37:16 0d 0h 6m 59s 1/2 OK - load average: 0.00, 0.00, 0.00
Current Users On Remote System
OK 10-06-2007 21:38:41 0d 0h 5m 34s 1/2 USERS OK - 2 users currently logged in
Disk Using Of Remote System
OK 10-06-2007 21:34:46 0d 0h 9m 29s 1/2 DISK OK - free space: / 4909 MB (75% inode=96%):
PING
OK 10-06-2007 21:36:11 0d 0h 8m 4s 1/2 PING OK - Packet loss = 0%, RTA = 0.82 ms
Swap Using Of Remote System
OK 10-06-2007 21:38:37 0d 0h 0m 38s 1/2 SWAP OK - 100% free (1027 MB out of 1027 MB)
Total Processes On Remote System
OK 10-06-2007 21:39:03 0d 0h 5m 12s 1/2 PROCS OK: 66 processes
Zombie Processes On Remote System
OK 10-06-2007 21:36:07 0d 0h 3m 8s 1/2 PROCS OK: 0 processes with STATE = Z

localhost
Current Load
OK 10-06-2007 21:36:33 1d 2h 0m 47s 1/2 OK - load average: 0.00, 0.00, 0.00
Current Users
OK 10-06-2007 21:37:59 1d 2h 2m 39s 1/2 USERS OK - 1 users currently logged in
PING
OK 10-06-2007 21:34:24 1d 2h 0m 9s 1/2 PING OK - Packet loss = 0%, RTA = 0.22 ms
Root Partition
OK 10-06-2007 21:35:29 1d 2h 2m 2s 1/2 DISK OK - free space: / 4890 MB (75% inode=96%):
Total Processes
OK 10-06-2007 21:36:54 1d 1h 59m 32s 1/2 PROCS OK: 20 processes with STATE = RSZDT
14 Matching Service Entries Displayed

分享到:
评论

相关推荐

    nagios+nrpe详细安装配置

    - NRPE (Nagios Remote Plugin Executor) 允许Nagios服务器远程执行客户端主机上的插件,以监控远程系统状态。 - 在客户端机器上安装NRPE,配置NRPE守护进程,设置允许Nagios服务器访问的IP地址和端口。 5. **...

    nrpe-2.13.tar.gz

    NRPE与Nagios结合使用,能帮助管理员实时了解整个网络的状态,及时发现并解决潜在问题。 二、NRPE 2.13的特性 1. 安全性增强:NRPE 2.13增强了权限管理和加密通信,确保只有授权的Nagios服务器能够请求和接收监控...

    nrpe及配置說明

    NRPE(Nagios Remote Plugin Executor)是Nagios监控系统的一个组件,它允许远程执行Nagios插件,从而可以对目标主机进行监控。Nagios是一款广泛使用的开源网络监控系统,它能够检查网络服务、系统资源以及各种应用...

    NRPE-3.2.1安装手册

    ### NRPE-3.2.1安装手册:深入解析与应用 #### 一、引言 ##### a) 目的 ...通过详细的安装步骤、配置指南以及故障排除技巧,管理员可以轻松地在他们的环境中部署和维护 NRPE,实现高效稳定的远程监控功能。

    nrpe-3.2.1.tar.gz

    NRPE是Nagios监控系统扩展的一部分,主要作用在于扩展Nagios的监控范围,使其能够监测远程主机的状态,而无需在这些主机上安装完整的Nagios服务器。通过NRPE,管理员可以在中心化的Nagios服务器上调度和运行目标...

    nrpe-2.15.tar.gz

    NRPE是Nagios监控系统的一个扩展,允许远程执行Nagios插件,从而在被监控的主机上进行更详细的系统检查。Nagios是一款广泛使用的网络、系统和应用监控工具,它可以实时监控网络服务、服务器、硬件状态以及各种网络...

    nrpe-2.15

    【nrpe-2.15】是一个用于网络远程执行程序(Nagios Remote Plugin Executor)的版本号,它属于Nagios监控系统的一部分。Nagios是一款广泛使用的开源网络监控系统,可以监视网络服务、主机以及各种网络设备,确保系统...

    nrpe-2.5.2

    在Nagios中,NRPE的作用是允许Nagios主服务器在远程Linux主机上执行插件,从而获取关于该主机的详细信息,如CPU负载、磁盘空间、内存使用情况、网络状态等。NRPE通过安全的方式(通常使用SSL加密)与Nagios服务器...

    nrpe-3.0.1.tar.gz

    5. **日志记录与报警**:NRPE 3.0.1改进了日志记录功能,详细记录每次远程检查的过程和结果,便于故障排查和审计。同时,它还支持集成多种报警机制,如邮件、短信或第三方告警平台,确保管理员在第一时间收到异常...

    icinga-nrpe-2.14.tar.zip

    Icinga是一款开源的企业级监控系统,用于监测网络服务、系统和应用程序的运行状态。它源自于Nagios,提供了一种更为现代化的界面和更丰富的功能。在本例中,我们关注的是Icinga的NRPE(Nagios Remote Plugin ...

    nagios nrpe

    而NRPE(Nagios Remote Plugin Executor)是Nagios的一个扩展,允许Nagios服务器远程执行插件在被监控的客户端上,从而能够收集客户端系统的实时状态信息。 Nagios的核心功能包括: 1. **主机监控**:检查主机是否...

    nrpe-2.12.tar.gz

    1. **远程监控插件执行**:nrpe允许Nagios服务器在远程主机上运行插件,获取监控数据,这样可以实现对远程系统的全面监控,而不仅仅局限于服务器自身。 2. **安全通信**:nrpe通过安全套接层(SSL)提供安全的通信...

    nrpe监控mysql.docx

    #### 一、Nagios与NRPE简介 - **Nagios**:一种开源工具,用于监控系统、网络服务的状态,能够迅速报告问题并通知管理员采取措施。 - **NRPE(Nagios Remote Plugin Executor)**:作为Nagios的一个插件,它允许...

    NAGIOS代理程序NRPE 2.15

    NAGIOS的监控代理,NRPE 2.15.

    nrpe3.1版本的官方说明

    1. check_nrpe插件:它安装在本地监控主机上,负责与远程主机上的NRPE守护进程通信。 2. NRPE守护进程:运行在远程Linux/Unix机器上,执行Nagios插件以检查服务或资源,并将检查结果返回给check_nrpe插件。 NRPE的...

    nrpe安装过程.docx

    总结来说,Nagios与NRPE的结合使得远程监控成为可能,通过在被监控主机上安装NRPE,Nagios Server可以执行远程插件检查,实现对远程系统的全面监控。整个过程涉及用户创建、插件安装、NRPE配置以及xinetd的管理,...

    关闭snmp和nrpe的syslog正常输出

    在网络管理领域,简单网络管理协议(Simple Network Management Protocol, SNMP)与网络资源性能监控工具(Nagios Remote Plugin Executor, NRPE)是两种常用的技术。它们能够帮助管理员监控网络设备的状态并收集...

    nrpe-2.8.1.tar.gz

    本文将详细介绍NRPE 2.8.1的特性、安装过程以及配置方法。 NRPE 2.8.1是NRPE的一个版本,它提供了一个安全的机制,允许Nagios服务器在被监控的远程主机上运行本地监控插件。这使得监控范围不再局限于服务器本身,...

    开源项目-envimate-nrpe.zip

    NRPE是Nagios监控系统中的一个重要组成部分,它允许远程执行Nagios插件,从而扩展了监控范围,能够检查分布式系统中的各种服务和硬件状态。 一、NRPE协议简介 NRPE协议是Nagios的核心扩展之一,它允许Nagios服务器...

Global site tag (gtag.js) - Google Analytics