[모니터링] Nagios(나기오스) 모니터링 설치
- IT/모니터링
- 2020. 5. 24.
반응형
반응형
설치 환경
VirtualBox CentOS 7.8 - (IP : 192.168.56.101) nagios-4.4.6 nagios-plugins-2.3.3 |
selinux 비활성화
vi /etc/selinux/config
# SELINUX=enforcing
SELINUX=disabled
iptables 규칙 제거
작업 편의상 iptables(방화벽) 규칙을 모두 제거하였습니다.
필요에 따라 정책을 수정하여 사용하시면 됩니다.
iptables -F
설치를 위한 사전 작업
nagios 설치에 필요한 프로그램들을 설치합니다.
yum install httpd php php-cli gcc glibc glibc-common gd gd-devel net-snmp openssl-devel wget unzip -y
Ngios를 사용하기 위한 계정과 그룹을 생성합니다
useradd nagios
groupadd nagcmd
usermod -a -G nagcmd nagios
usermod -a -G nagcmd apache
Nagios 다운로드
nagios와 nagios-plugins를 다운로드하여서 압축을 해제합니다.
cd /usr/local/src/
mkdir nagios
cd nagios
wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.6.tar.gz
wget http://www.nagios-plugins.org/download/nagios-plugins-2.3.3.tar.gz
tar zxf nagios-4.4.6.tar.gz
tar zxf nagios-plugins-2.3.3.tar.gz
Nagios 설치
컴파일하여 설치합니다.
cd /usr/local/src/nagios/nagios-4.4.6
./configure --with-command-group=nagcmd
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf
nagiosadmin 계장에 대한 패스워드 생성
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
Nagios Plugins 설치
cd /usr/local/src/nagios/nagios-plugins-2.3.3
./configure --with-nagios-user=nagios --with-nagios-group=nagios --with-openssl
make all
make install
Naigos 구동
systemctl start httpd
systemctl start nagios
Nagios 접속
http://192.168.56.101/nagios 접속
이렇게 해서 Nagios 설치에 대해 알아보았습니다.
이어서 모니터링 등록 방법에 대해서는 아래 포스팅을 참고해 주시기 바랍니다~
https://sh-safer.tistory.com/37
[모니터링] Nagios(나기오스) - 호스트 모니터링 등록
이번 포스팅은 nagios에서 원격 호스트를 모니터링하는 방법에 대해 알아보겠습니다. 아직 nagios 설치가 안되신 분들은 아래 링크를 참고하여 먼저 설치를 진행해 주시기 바랍니다. https://sh-safer.ti
sh-safer.tistory.com
반응형
'IT > 모니터링' 카테고리의 다른 글
[Grafana] admin 계정 패스워드 초기화 (0) | 2020.11.04 |
---|---|
[Linux] ELK 설치 - 1. ElasticSearch 설치 (0) | 2020.06.29 |
[모니터링] Nagios(나기오스) - 서비스 모니터링 등록 (0) | 2020.06.19 |
[모니터링] Nagios(나기오스) - 호스트 모니터링 등록 (0) | 2020.06.12 |
[모니터링] 1. InfluxDB + Telegraf + Grafana 설치(CentOS7) (0) | 2020.05.03 |