CentOS 6.4上通过yum安装Nagios-3.5.0 [客户端/client端]

原文见:http://sharadchhetri.com/2013/03/02/how-to-install-and-configure-nagios-nrpe-in-centos-and-red-hat/

#安装nrpe
rpm -ivh dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

yum install -y nrpe nagios-plugins-all openssl

#修改配置文件,先备份是好习惯
vi /etc/nagios/nrpe.cfg
#找到allowed_hosts=127.0.0.1,在后面加上server端的IP,这样server端才能监控这台机器,比如我加的:
allowed_hosts=127.0.0.1,192.168.1.103

#开机自启
chkconfig --level 3 on

#启动
/etc/init.d/nrpe start

参考此文配置客户端:CentOS 6.4上通过yum安装Nagios-3.5.0 [服务端/server端]

你可能感兴趣的:(centos,yum,nagios)