Nagios NRPE安装(官方文档)

Nagios NRPE官方文档

1、安装并启动xinetd服务

yum install xinetd -y

systemctl start xinetd


2、下载nrpe源码文件

wget https://github.com/NagiosEnterprises/nrpe/releases/download/nrpe- 3.2.1/nrpe-3.2.1.tar.gz

3、编译安装

tar xzf nrpe-3.2.1.tar.gz

cd nrpe-nrpe-3.2.1

./configure  # 编译

make all

make install-groups-users #安 装nagios用户

make install  # 安装二进制文件

make install-config # 安装nrpe配置文件

make install-inetd 

make install-init 

systemctl reload xinetd #重启xinetd服务

systemctl enable nrpe && systemctl start nrpe # 启动nrpe

netstat -at | egrep "nrpe|5666"  #检查nrpe服务

4、检查安装结果

在nagios服务器端执行命令

/usr/local/nagios/libexec/check_nrpe -H 192.168.56.8    # 192.168.56.8为nrpe客户端

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容