본문 바로가기
728x90
반응형
SMALL

전체 글112

netdata nginx 모니터링 추가 nginx 모니터링은 stub_status 모듈을 통해 이뤄지는데 nginx 설치 때 해당 모듈이 설치되어 있어야 한다. 모듈이 설치되어 있다면 nginx.conf에 아래 설정을 추가해주면된다. location /stub_status { stub_status; # Security: Only allow access from the IP below. allow 127.0.0.1; # Deny anyone else deny all; } nginx 재시작 후 curl http://localhost/stub_status 명령어를 실행하여 아래와 같은 결과가 나오면 정상이다. Active connections: 1 server accepts handled requests 4 4 3 Reading: 0 Writing.. 2019. 10. 8.
리눅스 서버 모니터링 Netdata #netdata 모니터링 설치 - Centos / Redhat / Fedora netdata 설치 yum -y install zlib-devel gcc make git autoconf autogen automake pkgconfig libuuid-devel -데비안 / 우분투 netdata 설치 apt-get -y install zlib1g-dev gcc make autoconf autogen automake pkg-config uuid-dev git #Netdata 다운로드 git clone https://github.com/netdata/netdata.git #Netdata 설치 #디렉토리 지정하고 싶을때는 --install [경로] 옵션 사용하여 설치 ./netdata-installer.sh --i.. 2019. 10. 8.
Cloudflare 설정시 nginx real ip 남기기 Cloudflare Proxy를 사용할 경우 일반 사용자는 IP가 변환되어 웹 서버로 들어오게된다. Real ip로 접속하도록하기 위해서 nginx.conf 파일에 아래와 같이 설정해주면 real ip로 접속이 된다. [cloudflare_realip.conf cloudflare IP 등록] vi cloudflare_realip.conf set_real_ip_from 103.21.244.0/22; set_real_ip_from 103.22.200.0/22; set_real_ip_from 103.31.4.0/22; set_real_ip_from 104.16.0.0/12; set_real_ip_from 108.162.192.0/18; set_real_ip_from 131.0.72.0/22; set_real_.. 2019. 9. 27.
linux interface rx packets dropped 조치 root@localhost:~# ifconfig em1 Link encap:Ethernet HWaddr 1c:98:ec:21:90:a4 inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::1e98:ecff:fe21:90a4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:467978585 errors:0 dropped:9408 overruns:0 frame:0 TX packets:392979533 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes.. 2019. 9. 24.
728x90
반응형
SMALL