# apt-get install munin munin-node
# vi /etc/munin/munin.conf
# cat /etc/munin/munin.conf
dbdir /var/lib/munin
htmldir /var/www/munin
logdir /var/log/munin
rundir /var/run/munin
tmpldir /etc/munin/templates
[localhost.localdomain]
address 127.0.0.1
use_node_name yes
# vi /etc/munin/munin-node.conf
# cat /etc/munin/munin-node.conf
log_level 1
log_file /var/log/munin/munin-node.log
port 4949
pid_file /var/run/munin/munin-node.pid
background 1
setseid 1
host *
user root
group root
setsid yes
ignore_file ~$
ignore_file \.bak$
ignore_file %$
ignore_file \.dpkg-(tmp|new|old|dist)$
ignore_file \.rpm(save|new)$
allow ^127\.0\.0\.1$
# /etc/init.d/munin-node restart
/etc/munin/munin-node.conf の log_level はデフォルトで 4 が設定されていた。
log_level の一覧
0 : err
1 : warning
2 : notice
3 : info
4 : debug
munin-node.conf - Munin - Trac を見たら、デフォルト値は 2 らしい。ここでは 1 を設定しておいた。
どちらにしても、/var/log/syslog には 5分間隔で /USR/SBIN/CRON: (munin) CMD が出力されてしまうけど。
tags: zlashdot Linux
Posted by NI-Lab. (@nilab)