yeonghoon.kim

  • 게시판
  • 갤러리
  • aws

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

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

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

사진 및 파일 첨부

여기에 파일을 끌어 놓거나 왼쪽의 버튼을 클릭하세요.

파일 용량 제한 : 0MB (허용 확장자 : *.*)

업로드 중... (0%)

0개 첨부 됨 ( / )
 
번호 제목 글쓴이 날짜 조회 수
공지 2025 일본 여행 계획 김영훈 2024.10.10 1108
공지 현금, 저축, 투자, 지출, 예산, 보험 내역(2024-05-30) 김영훈 2024.03.10 765
85 ansible lvm 구성 예제.yml 김영훈 2021.04.10 354
84 CentOS7 ntp 서버 구성.yml 김영훈 2021.04.11 290
83 CentOS7 ntp 클라이언트 설정.yml 김영훈 2021.04.11 269
82 ubuntu 20.04 docker, docker-compose 설치 김영훈 2021.09.18 268
81 도커 기본 명령어 김영훈 2021.09.19 346
80 도커 컨테이너, 이미지 전체 삭제 스크립트 김영훈 2021.09.20 235
79 docker-compose 명령어 김영훈 2021.09.21 179
78 let's encrypt 와일드카드 인증서 발급(도커 이미지 이용) 김영훈 2021.10.09 270
77 인텔 11세대 RST 드라이버(윈도우 10 설치시 필요) 김영훈 2021.10.21 275
76 MBR to GPT, 디스크 용량 확장 김영훈 2021.12.17 305
75 go_ethereum_ubuntu20.04 김영훈 2021.12.25 214
74 bitcoin_core_ubuntu20.04 김영훈 2021.12.25 271
73 tron_ubuntu20.04 김영훈 2021.12.25 336
» 우분투 22.04 nagios 설치(마스터 서버) 김영훈 2022.08.01 466
71 pigz (다중 코어 압축) 사용법 김영훈 2022.08.02 330
70 nc 소스 설치(yum 안되는 환경) 김영훈 2022.08.02 227
69 오라클 클라우드 서버 백업 스크립트(+아카이브 스토리지 업로드) 김영훈 2022.08.02 308
68 OCI CLI 이용하여 아카이브 스토리지 파일 제어 김영훈 2022.08.02 312
67 리눅스 이미지 퀄리티 일괄 변경(ImageMagick 이용) 김영훈 2022.08.08 293
66 오라클 클라우드 RDNS 요청 방법 file 김영훈 2022.08.10 310
쓰기 태그
 첫 페이지 5 6 7 8 9 10 11 12 13 14 끝 페이지