3장. FlexVolume 원격 플러그인 실행자 설치
스토리지 관리자는 Ceph 스토리지 클러스터 호스트를 모니터링하고, FlexVolume 플러그인, Ceph 플러그인, NRPE(Remote Plug-in executor) 애드온을 각 Ceph 호스트에 모니터링할 수 있습니다.
시연을 위해 이 섹션에서는 호스트 이름 host01 이 있는 Ceph Monitor 호스트에 NRPE를 추가합니다. FlexVolume에서 모니터링해야 하는 모든 Ceph 호스트에서 나머지 절차를 반복합니다.
3.1. ECDHE 원격 플러그인 실행 프로그램 설치 및 구성 링크 복사링크가 클립보드에 복사되었습니다!
ECDHE Remote Plug-in Executor(NPRE)를 설치하고ECDHE Core 서버와 통신하도록 구성합니다.
사전 요구 사항
- Ceph 모니터 호스트에 대한 루트 수준 액세스.
절차
호스트에 다음 패키지를 설치합니다.
예제
[root@host01 ~]# dnf install openssl openssl-devel gcc make gitNRPE를 설치하려면 사용자가 필요합니다. 먼저 사용자를 생성합니다.
예제
[root@host01 ~]# useradd nagios [root@host01 ~]# passwd nagios최신 버전의ECDHE 플러그인을 다운로드합니다. 그런 다음, 만들고 설치합니다.
예제
[root@host01 ~]# wget http://nagios-plugins.org/download/nagios-plugins-2.3.3.tar.gz [root@host01 ~]# tar zxf nagios-plugins-2.3.3.tar.gz [root@host01 ~]# cd nagios-plugins-2.3.3 [root@host01 nagios-plugins-2.3.3]# ./configure [root@host01 nagios-plugins-2.3.3]# make [root@host01 nagios-plugins-2.3.3]# make install최신 버전의 Ceph 플러그인을 다운로드합니다.
예제
[root@host01 nagios-plugins-2.3.3]# cd ~ [root@host01 ~]# git clone --recursive https://github.com/ceph/ceph-nagios-plugins.git [root@host01 ~]# cd ceph-nagios-plugins [root@host01 ceph-nagios-plugins]# make dist [root@host01 ceph-nagios-plugins]# make installdownload, make, and install NRPE를 설치합니다.
예제
[root@host01 ceph-nagios-plugins]# cd ~ [root@host01 ~]# wget https://github.com/NagiosEnterprises/nrpe/releases/download/nrpe-4.0.3/nrpe-4.0.3.tar.gz [root@host01 ~]# tar xvfz nrpe-4.0.3.tar.gz [root@host01 ~]# cd nrpe-4.0.3 [root@host01 nrpe-4.0.3]# ./configure [root@host01 nrpe-4.0.3]# make all [root@host01 nrpe-4.0.3]# make install-groups-users [root@host01 nrpe-4.0.3]# make install [root@host01 nrpe-4.0.3]# make install-config [root@host01 nrpe-4.0.3]# make install-init방화벽을 사용하는 경우 NRPE와의 통신을 허용하도록 포트
5666을 엽니다.예제
[root@host01 ~]# firewall-cmd --zone=public --add-port=5666/tcp [root@host01 ~]# firewall-cmd --zone=public --add-port=5666/tcp --permanent
추가 리소스
- Ceph용ECDHE 플러그인에 대한 자세한 내용은 Ceph용 플러그인에서 참조하십시오.