8244 发表于 2019-1-16 09:26:54

nagios安装配置(二):nrpe

1.下载:



[*]wget http://nchc.dl.sourceforge.net/project/nagiosplug/nagiosplug/1.4.15/nagios-plugins-1.4.15.tar.gz -P /usr/local/src
[*]wget http://nchc.dl.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.12/nrpe-2.12.tar.gz -P /usr/local/src

  2.添加所需要的用户


[*]useradd -r nagios -M -s /bin/bash -d /usr/local/nagios

  3.安装nagios-plugin


[*]# 加压nagios-plugin
[*]tar zxvf nagios-plugins-1.4.15.tar.gz
[*]cd nagios-plugins-1.4.15
[*]# 编译、安装
[*]./configure --with-mysql=/usr/local/mysql
[*]make && make install
[*]# 更改目录的拥有者为nagios
[*]chown -R nagios:nagios /usr/local/nagios

  4.安装nrpe


[*]# 加压
[*]tar zxvf nrpe-2.12.tar.gz
[*]cd nrpe-2.12
[*]# 编译、安装
[*]./configure
[*]make all && make install-plugin && make install-daemon && make install-daemon-config

  5.添加nrpe为系统服务


[*]cp /usr/local/src/nrpe-2.12/init-script /etc/rc.d/init.d/nrpe
[*]chown -R nagios:nagios /etc/rc.d/init.d/nrpe
[*]chmod 0755 /etc/rc.d/init.d
[*]# 添加为系统服务
[*]chkconfig --add nrpe
[*]# 设置为开机启动
[*]chkconfig nrpe on




页: [1]
查看完整版本: nagios安装配置(二):nrpe