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客户端
网友评论