nagios 监控被监控服务器安装nrpe
2017-07-28 10:09
387 查看
以下安装方式均来自网络搜索后自己整理形成
建议在
usr/local/ 目录下建一个nagios
cd /usr/local
mkdir nagios
1/新建nagios用户和组
#groupadd nagios && useradd nagios -g nagios -M -r
2 安装nagios-plugins插件
# tar zxvf nagios-plugins-2.2.1.tar.gz
cd nagios-plugins-2.2.1
指定用户和属组为前面创建的nagios专用用户和属组
./configure--with-nagios-user=nagios --with-nagios-group=nagios
#编译源代码
make
#安装
make install
#修改plugin的权限
chown nagios.nagios /usr/local/nagios; chown -R nagios.nagios /usr/local/nagios/libexec
检查是否需要安装xinet,没有的话,需要安装
rpm -qa | grep xinetd
rpm -ivh xinetd-2.3.14-40.el6.x86_64.rpm
在被监控机上安装nrpe插件
# tar zxvf nrpe-2.15.tar.gz
cd nrpr-2.15
/configure --with-nrpe-user=nagios --with-nrpe-group=nagios --with-nagios-user=nagios --with-nagios-group=nagios
make all
make install-plugin
make install-daemon
make install-daemon-config
make install-xinetd
在/etc/xinetd.d/nrpe文件的only_from行,添加Monitor服务器的ip地址,以空格分开
在/etc/services文件末添加一行:nrpe5666/tcp# NRPE 并保存
重启xinetd服务
service xinetd restart
nrpe 重启
pkill nrpe
# /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
netstat -at | grep nrpe
期待的结果是
tcp 0 0 *:nrpe *:* LISTEN
在服务器上验证是否可以获取被监控机器的NRPE版本
/usr/local/nagios/libexec/check_nrpe -H IP
期待的结果是输出NRPE v2.15
建议在
usr/local/ 目录下建一个nagios
cd /usr/local
mkdir nagios
1/新建nagios用户和组
#groupadd nagios && useradd nagios -g nagios -M -r
2 安装nagios-plugins插件
# tar zxvf nagios-plugins-2.2.1.tar.gz
cd nagios-plugins-2.2.1
指定用户和属组为前面创建的nagios专用用户和属组
./configure--with-nagios-user=nagios --with-nagios-group=nagios
#编译源代码
make
#安装
make install
#修改plugin的权限
chown nagios.nagios /usr/local/nagios; chown -R nagios.nagios /usr/local/nagios/libexec
检查是否需要安装xinet,没有的话,需要安装
rpm -qa | grep xinetd
rpm -ivh xinetd-2.3.14-40.el6.x86_64.rpm
在被监控机上安装nrpe插件
# tar zxvf nrpe-2.15.tar.gz
cd nrpr-2.15
/configure --with-nrpe-user=nagios --with-nrpe-group=nagios --with-nagios-user=nagios --with-nagios-group=nagios
make all
make install-plugin
make install-daemon
make install-daemon-config
make install-xinetd
在/etc/xinetd.d/nrpe文件的only_from行,添加Monitor服务器的ip地址,以空格分开
在/etc/services文件末添加一行:nrpe5666/tcp# NRPE 并保存
重启xinetd服务
service xinetd restart
nrpe 重启
pkill nrpe
# /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
netstat -at | grep nrpe
期待的结果是
tcp 0 0 *:nrpe *:* LISTEN
在服务器上验证是否可以获取被监控机器的NRPE版本
/usr/local/nagios/libexec/check_nrpe -H IP
期待的结果是输出NRPE v2.15
相关文章推荐
- nagios用NRPE监控Linux主机 服务端和客户端的安装配置 推荐
- Nagios安装配置和基于NRPE监控远程Linux主机 推荐
- Nagios监控Linux主机(NRPE安装与应用)
- nagios监控linux nrpe安装
- nagios之通过nrpe实现监控编译安装
- LINUX开源监控平台Nagios(NRPE的安装配置)
- nagios安装配置教程,远程监控服务器配置。
- 在Ubuntu 14.04上安装Nagios 用于监控服务器
- 通过cacti+nagios监控服务器的运行―nagios nrpe
- HPUX安装nagios监控插件(NRPE)难点解析
- Nagios监控服务器与客户端的安装
- 关于Nagios通过NRPE监控客户端的安装与配置
- nagios监控-监控客户端NRPE的安装配置
- Nagios+pnp4nagios+rrdtool 安装配置nagios被监控端NRPE配置(二)
- Nagios客户端的安装步骤(要监控的服务器)
- Nagios--运维监控软件--简易安装与配置(已经在信工服务器实现)
- nagios 监控Linux和Unix服务器(ubuntu服务器安装实例)
- LINUX开源监控平台Nagios(NRPE的安装配置)
- Nagios 监控 Linux 服务器 运行情况 快速安装手册
- Nagios+pnp4nagios+rrdtool 安装配置nagios被监控端NRPE配置(二)