zabbix nginx 썸네일형 리스트형 Zabbix에서 NGINX의 access.log와 error.log를 모니터링하는 방법 Zabbix에서 NGINX의 access.log와 error.log를 모니터링하는 방법Zabbix 7.0에서 NGINX의 로그를 모니터링하기 위해 템플릿, 매크로, 아이템, 트리거를 생성합니다.1. 템플릿 생성템플릿 이름 : Nginx Log Monitoring2. 매크로 설정매크로 이름기본값설명{$NGINX_ACCESS_LOG}/var/log/nginx/access.logNGINX 액세스 로그 경로{$NGINX_ERROR_LOG}/var/log/nginx/error.logNGINX 에러 로그 경로3. 아이템(Item) 생성NGINX 액세스 로그이름 : NGINX 액세스 로그 - 4XX 오류키 : logrt[{$NGINX_ACCESS_LOG},"HTTP/(1\.0|1\.1|2\.0|3)\" 4[0-9]{.. 더보기 [리눅스] zabbix(zabbix-agent) nginx의 성능 상태를 모니터링하는 방법 zabbix(zabbix-agent) nginx의 성능 상태를 모니터링하는 방법 nginx(default.conf) 설정 vim /etc/nginx/conf.d/default.conf location /basic_status { stub_status on; allow 127.0.0.1; deny all; access_log off; } $ cat /etc/nginx/conf.d/default.conf ... # nginx status location /basic_status { stub_status on; allow 127.0.0.1; deny all; access_log off; } ... systemctl restart nginx curl 테스트 curl -s localhost/basic_status.. 더보기 이전 1 다음