yeonghoon.kim

  • 게시판
  • 갤러리
  • aws

우분투 22.04 nagios 설치(마스터 서버)

김영훈 2022.08.01 15:55 조회 수 : 1074

1. ubuntu 22.04 의존성 라이브러리 설치

#apt install build-essential apache2 php openssl perl make php-gd libgd-dev libapache2-mod-php libperl-dev libssl-dev daemon wget apache2-utils unzip

 


2. nagios 유저 생성 및 그룹 설정
# useradd nagios
# groupadd nagcmd
# usermod -a -G nagcmd nagios
# usermod -a -G nagcmd www-data

 


3. nagios 설치
# cd /usr/local/src
# wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.4.6.tar.gz
# tar -zxvf nagios-4.4.6.tar.gz
# cd nagios-4.4.6
# ./configure --with-nagios-group=nagios --with-command-group=nagcmd --with-httpd_conf=/etc/apache2/sites-enabled
# make all
# make install
# make install-init
# make install-config
# make install-commandmode
# make install-webconf

 


4. 패스워드 인증 설정 후 아파치 재구동
# htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
# a2enmod cgi
# systemctl restart apache2

 


5. nagios 이메일 수정
# vim /usr/local/nagios/etc/objects/contacts.cfg
me@yeonghoon.kim

 


6. nagios plugin 설치
# cd /usr/local/src
# wget https://nagios-plugins.org/download/nagios-plugins-2.3.3.tar.gz
# tar -zxvf nagios-plugins-2.3.3.tar.gz
# cd nagios-plugins-2.3.3
# ./configure --with-nagios-user=nagios --with-nagios-group=nagios
# make
# make install

 


7. nagios 재구동 및 부팅시 자동으로 시작되도록 설정
# systemctl enable --now nagios


  • 추천 0

  • 비추천 0
이 게시물을
목록

댓글 0

번호 제목 글쓴이 날짜 조회 수
공지 2025 일본 여행 계획 김영훈 2024.10.10 2472
공지 현금, 저축, 투자, 지출, 예산, 보험 내역(2024-05-30) 김영훈 2024.03.10 2022
88 ansible lvm 구성 예제.yml 김영훈 2021.04.10 681
87 CentOS7 ntp 서버 구성.yml 김영훈 2021.04.11 1266
86 CentOS7 ntp 클라이언트 설정.yml 김영훈 2021.04.11 757
85 ubuntu 20.04 docker, docker-compose 설치 김영훈 2021.09.18 997
84 도커 기본 명령어 김영훈 2021.09.19 1053
83 도커 컨테이너, 이미지 전체 삭제 스크립트 김영훈 2021.09.20 390
82 docker-compose 명령어 김영훈 2021.09.21 377
81 let's encrypt 와일드카드 인증서 발급(도커 이미지 이용) 김영훈 2021.10.09 470
80 인텔 11세대 RST 드라이버(윈도우 10 설치시 필요) 김영훈 2021.10.21 461
79 MBR to GPT, 디스크 용량 확장 김영훈 2021.12.17 1288
78 go_ethereum_ubuntu20.04 김영훈 2021.12.25 476
77 bitcoin_core_ubuntu20.04 김영훈 2021.12.25 1374
76 tron_ubuntu20.04 김영훈 2021.12.25 1074
» 우분투 22.04 nagios 설치(마스터 서버) 김영훈 2022.08.01 1074
74 pigz (다중 코어 압축) 사용법 김영훈 2022.08.02 585
73 nc 소스 설치(yum 안되는 환경) 김영훈 2022.08.02 381
72 오라클 클라우드 서버 백업 스크립트(+아카이브 스토리지 업로드) 김영훈 2022.08.02 1013
71 OCI CLI 이용하여 아카이브 스토리지 파일 제어 김영훈 2022.08.02 1215
70 리눅스 이미지 퀄리티 일괄 변경(ImageMagick 이용) 김영훈 2022.08.08 478
69 오라클 클라우드 RDNS 요청 방법 file 김영훈 2022.08.10 506
쓰기 태그
 첫 페이지 5 6 7 8 9 10 11 12 13 14 끝 페이지