Web Monitor agent
1. configuration
[root@an3 ~]$ cat /etc/sysconfig/httpd-monitor
# httpd-monitor configuration
# 모니터링 실행 여부
# cronjob 실생시에 이 값이 no이면 그냥 종료함.
execute=no
# 서비스 fail시에 구동할 init file 이름 (기본값 httpd)
# /sbin/srevice ${initfile} [stop|start] 로 사용됨
# 안녕 3에서는 httpd | lighttpd | nginx 중 하나
# 기본값: httpd
initfile=
# 로그 파일 경로
# 기본값: /var/log/httpd/httpwatch.log
logfile=
# connection timeout
# 기본값: 5
ctimeout=
# read timeout
# 기본값: 5
rtimeout=
# 모니터링 주소
# 기본값: $(hostname)
target=
# 접속시 사용할 HTTP/1.1 Host header 값
target_v11=
# 체크할 URI
# 기본값: /robots.txt
uri=
# 서비스 faile시에 apache process의 gdb dump를 뜰지 여부
# AnNyung 3 httpd-conf 패키지의 /usr/sbin/httpd-dump script 필요
# initfile=httpd 일 경우에만 동작함
gdbdump=no
[root@an3 ~]$2. Cronjob
3. logging
Last updated