首页 > 移动平台 > 详细

nagios监控linux nrpe安装

时间:2014-09-28 17:46:08      阅读:378      评论:0      收藏:0      [点我收藏+]

1、下载nrpe2.15

  wget http://cznic.dl.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz

2、yum install openssl openssl-devel

   cd nrpe-2.15

   ./configure --enable-ssl --with-nagios-user=nagios --with-nagios-group=nagcmd --with-nrpe-user=nagios --with-nrpe-group=nagcmd

   make all

   make install-plugin

   make install-daemon

   make install-daemon-config

   make install-xinetd

3、编辑nrpe配置文件,增加监控机地址:   

      vi /etc/xinetd.d/nrpe

      only_from = nagios-server-ip,127.0.0.1

4、修改services文件,增加端口
          vi /etc/services
          nrpe            5666/tcp                        #NRPE

3、启动 nrpe

   /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d

   设置开机启动

   vi /etc/rc.d/rc.local加入/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d

   验证是否启动

   netstat -an |grep 5666  

   tcp        0      0 0.0.0.0:5666                0.0.0.0:*                   LISTEN    

4、

nagios监控linux nrpe安装

原文:http://2860664.blog.51cto.com/2850664/1559056

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!