Ubuntu 기준 설명
http://munin-monitoring.org/
https://github.com/jnstq/munin-nginx-ubuntu
[Server]
apt-get install munin munin-node
* /etc/munin.conf
[Node - web2.domain.com]
apt-get install munin-node
* /etc/munin-node.conf
http://munin-monitoring.org/
https://github.com/jnstq/munin-nginx-ubuntu
[Server]
apt-get install munin munin-node
* /etc/munin.conf
# a simple host tree
[web1.domain.com]
address 127.0.0.1
use_node_name yes
[web2.domain.com]
address 1.2.3.5
use_node_name yes
* NGINX 설정
* NGINX 설정
server {
listen 8000;
server_name localhost:8000;
location / {
root /var/cache/munin/www;
}
}
# Nginx status
server {
listen 80;
server_name localhost;
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
}
}
[Node - web2.domain.com]
apt-get install munin-node
* /etc/munin-node.conf
# Set this if the client doesn't report the correct hostname when
# telnetting to localhost, port 4949
#
host_name web2.domain.com
서버IP가 1.2.3.4 일때
서버IP가 1.2.3.4 일때
allow ^1\.2\.3\.4$
[서버 임의 실행]
mumin을 설치하면 5분마다 돌도록 cron이 설정되어있음
su - munin --shell=/bin/bash
/usr/bin/munin-cron
[Plugin]
[서버 임의 실행]
mumin을 설치하면 5분마다 돌도록 cron이 설정되어있음
su - munin --shell=/bin/bash
/usr/bin/munin-cron
[Plugin]
ln -s /usr/share/munin/plugins/nginx_request /etc/munin/plugins/
ln -s /usr/share/munin/plugins/nginx_status /etc/munin/plugins/
원하는 플러그인을 심볼릭 링크 걸어주고
service munin-node restart
원하는 플러그인을 심볼릭 링크 걸어주고
service munin-node restart