Nagios监控服务器的配置(1)


Nagios 

图-Nagios

Nagios监控服务器的配置如下:

1.安装nrpe

[root@UnixHot src]# tar zxvf nrpe-2.12.tar.gz

[root@UnixHot nrpe-2.12]# ./configure && make all

[root@UnixHot nrpe-2.12]# make install-plugin

[root@UnixHot nrpe-2.12]# make install-daemon

[root@UnixHot nrpe-2.12]# make install-daemon-config

[root@UnixHot nrpe-2.12]# make install-xinetd

2.配置nrep

[root@UnixHot nrpe-2.12]# vi /etc/xinetd.d/nrpe

service nrpe

{

flags = REUSE

socket_type = stream

port = 5666

wait = no

user = nagios

group = nagios

server = /usr/local/nagios/bin/nrpe

server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd

log_on_failure += USERID

disable = no

only_from = 127.0.0.1 192.168.0.206 192.168.0.155 192.168.0.157

在only_from 添加要监控的主机的IP地址,中间以空格隔开。


相关内容