본문 바로가기
Linux/Nagios

모니터링 대상 서버 nagios agent 설치 및 nrpe 설치

by 준섭이 2023. 12. 23.
728x90

### 모니터링 할 서버에 Nagios Agent 및 Nrpe 설치

### Package Install
yum install -y gcc glibc glibc-common gd gd-devel make openssl-devel net-snmp

### Nagios Plugin, NRPE Download
cd /usr/local/src
wget --no-check-certificate https://nagios-plugins.org/download/nagios-plugins-2.4.6.tar.gz
wget --no-check-certificate https://github.com/NagiosEnterprises/nrpe/archive/nrpe-4.1.0.tar.gz

### Nagios Plugins Install
tar zxvf nagios-plugins-2.4.6.tar.gz
cd nagios-plugins-2.4.6
./configure
make
make install
chown nagios.nagios /usr/local/nagios
chown -R nagios.nagios /usr/local/nagios/libexec

### NRPE Install
cd /usr/local/src
yum install -y xinetd
tar zxvf nrpe-4.1.0.tar.gz
cd nrpe-nrpe-4.1.0/
./configure --enable-command-args
make all
make install
make install-config
make install-init
echo "nrpe            5666/tcp                # NRPE" >> /etc/services
systemctl enable nrpe

### NRPE 설정
vi /usr/local/nagios/etc/nrpe.cfg
allowed_hosts=127.0.0.1,나기오스서버IP

dont_blame_nrpe=1
systemctl restart nrpe

 

※ Nagios 서버에서 확인

/usr/local/nagios/libexec/check_nrpe -H checkserver IP

■ nrpe가 표시가 안되면, 5666 Port Open 후, 다시 확인

 

'Linux > Nagios' 카테고리의 다른 글

Nagios check memory  (0) 2023.12.23
Nagios check cpu 확인  (0) 2023.12.23
Nagios Server 설치  (0) 2023.12.23
nagios plugin, nrpe yum 설치  (0) 2023.12.23