被监控机上安装nagios插件和nrpe(nrpe添加为xinetd服务)
2012-03-17 10:57
239 查看
1、添加nagios用户
/usr/sbin/useradd nagios
passwd nagios
2、安装nagios插件:
cd /usr/local/src
tar zxvf nagios-plugins-1.4.15.tar.gz
cd nagios-plugins-1.4.15
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
3、安装nrpe:
cd /usr/local/src
tar -zxvf nrpe-2.12.tar.gz
cd nrpe-2.12
./configure --prefix=/usr/local/nagios
make all
make install-plugin
make install-daemon
make install-daemon-config
make install-xinetd #nrpe安装为xinetd服务
编辑nrpe配置文件,增加监控机地址:
vi /etc/xinetd.d/nrpe
only_from = 127.0.0.1 172.16.3.56 #172.16.3.56是监控服务器IP
修改services文件,增加端口
vi /etc/services
nrpe 5666/tcp #NRPE
安装xinetd,并重启xinetd服务
yum -y install xinetd
service xinetd restart
检查目录及文件:
ll /usr/local/nagios/libexec
看看里面是不是有一大堆check的什么东西,如果有就对了。
/usr/sbin/useradd nagios
passwd nagios
2、安装nagios插件:
cd /usr/local/src
tar zxvf nagios-plugins-1.4.15.tar.gz
cd nagios-plugins-1.4.15
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
3、安装nrpe:
cd /usr/local/src
tar -zxvf nrpe-2.12.tar.gz
cd nrpe-2.12
./configure --prefix=/usr/local/nagios
make all
make install-plugin
make install-daemon
make install-daemon-config
make install-xinetd #nrpe安装为xinetd服务
编辑nrpe配置文件,增加监控机地址:
vi /etc/xinetd.d/nrpe
only_from = 127.0.0.1 172.16.3.56 #172.16.3.56是监控服务器IP
修改services文件,增加端口
vi /etc/services
nrpe 5666/tcp #NRPE
安装xinetd,并重启xinetd服务
yum -y install xinetd
service xinetd restart
检查目录及文件:
ll /usr/local/nagios/libexec
看看里面是不是有一大堆check的什么东西,如果有就对了。
相关文章推荐
- 安装nagios 图形添加监控主机和服务的软件nconf
- 安装插件[置顶] Nagios+Nrpe配置指南
- centreon+nagios安装-批量添加主机和服务
- HPUX安装nagios监控插件(NRPE)难点解析
- Nagios3.0 NRPE 安装 监控远程Linux服务
- 安装nrpe插件遇到的问题(nagios)
- Nagios+pnp4nagios+rrdtool 安装配置为nagios添加自定义插件(三)
- Ubuntu安装NRPE(Nagios插件)报:Cannot find ssl headers解决方法!
- 安装nrpe插件遇到的问题(nagios)
- nagios外部插件nrpe安装
- Nagios+pnp4nagios+rrdtool 安装配置为nagios添加自定义插件(三)
- 081-Debian的Nagios的nrpe插件的安装
- nagios-plugins、nrpe插件安装
- CentOS7安装FTP服务及添加FTP用户并设置权限
- nagios安装完后插件里没有check_mysql的解决方法
- fedora 16 yum 安装mysql后怎样启动,以及添加为系统服务
- 关于nagios监控系统添加主机和服务脚本
- Nginx(一)编译安装及添加为系统服务
- nagios安装snmp插件
- 使用Link方式添加Eclipse插件以及在Link方式下更改(安装,卸载)