munin on FreeBSD 9.0

munin を「追加オプションなし」で別の機体にインストールしたら、全然extensions.iniに書き込みがなかった。ので、今一度、G7のmuninを入れ替えてみる。ってことで、

perlのプロセスを殺してから、

g7# pwd
/usr/ports/sysutils/munin-node
g7#
g7#
g7#
g7# make rmconfig
===> No user-specified options configured for munin-node-1.4.7
g7# make deinstall
===>  Deinstalling for sysutils/munin-node
===>   Deinstalling munin-node-1.4.7
munin_node not running? (check /var/run/munin/munin-node.pid).
==> You should manually remove the "munin" user.
g7# cd ../../sysutils/munin-master
g7# pwd
/usr/ports/sysutils/munin-master
g7# make rmconfig
===> No user-specified options configured for munin-master-1.4.7_3
g7# make deinstall
===>  Deinstalling for sysutils/munin-master
===>   Deinstalling munin-master-1.4.7_3
crontab for user munin removed
==> You should manually remove the "munin" user.
g7# cd ../../sysutils/munin-common
g7# pwd
/usr/ports/sysutils/munin-common
g7# make rmconfig
===> No user-specified options configured for munin-common-1.4.7
g7# make deinstall
===>  Deinstalling for sysutils/munin-common
===>   Deinstalling munin-common-1.4.7
==> You should manually remove the "munin" user.

した。

さ~入れるよ! http://www.omakase.org/misc/_munin.html

/usr/local/etc/munin/munin-node.conf

注)追加しないと動かなかった

setsid yes

#
# Example config-file for munin-node
#

log_level 4
log_file /var/log/munin/munin-node.log
pid_file /var/run/munin/munin-node.pid

background 1
setsid 1

user root
group wheel
setsid yes     ←これこれ
ln -s /usr/local/share/munin/plugins/memory /usr/local/etc/munin/plugins/memory
ln -s /usr/local/share/munin/plugins/ipmi_sensor_ /usr/local/etc/munin/plugins/ipmi_sensor_
   86  8:46    ln -s /usr/local/share/munin/plugins/ipmi_sensor_ /usr/local/etc/munin/plugins/ipmi_sensor_
   87  8:46    ln -s /usr/local/share/munin/plugins/memory /usr/local/etc/munin/plugins/memory
   88  8:51    reboot
   89  9:05    ln -s /usr/local/share/munin/plugins/cpu /usr/local/etc/munin/plugins/cpu
   90  9:16    reboot
   91  9:21    ln -s /usr/local/share/munin/plugins/coretemp /usr/local/etc/munin/plugins/coretemp
   92  9:25    /usr/local/etc/rc.d/munin-node.sh stop
   93  9:26    /usr/local/sbin/munin-node restart
   94  9:27    kill -HUP 1424
   95  9:27    top
   96  9:27    reboot
   97  9:51    ln -s /usr/local/share/munin/plugins/snmp__sensors_mbm_volt /usr/local/etc/munin/plugins/snmp__sensors_mbm_volt
   98  9:52    ln -s /usr/local/share/munin/plugins/snmp__sensors_mbm_fan /usr/local/etc/munin/plugins/snmp__sensors_mbm_fan
   99  9:53    reboot

http://wirednoize.net/freebsd/index.php?munin%20chroot%20minitree


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS