«前の日記(2007-07-25) 最新 次の日記(2007-08-08)» 編集

echo.createdb.net

https://echo.createdb.net/fts4p/
[PHPマニュアル検索] [PGSQLマニュアル検索]

2007-07-26

_ [Log][OS] FreeBSD Munin リソース監視

# メイン
portinstall sysutils/munin-main

# ノード
portinstall sysutils/munin-node

# 自動起動
vi /etc/rc.conf
# Munin
munin_node_enable="YES"

# 起動
/usr/local/etc/rc.d/munin-node.sh start

# 各種データ場所
dbdir /usr/local/var/munin
htmldir /usr/local/www/munin
logdir /var/log/munin-main
rundir /var/run/munin

_ [Log][OS] Vine Linux 2.6r4にMunin nodeインストール

# ユーザ追加
useradd -M -s /bin/false munin

# perlモジュール
perl -MCPAN -e shell
install Test::More
install Net::Server::Fork

# ノード
wget http://nchc.dl.sourceforge.net/sourceforge/munin/munin_1.2.5.tar.gz
tar zxvf munin_1.2.5.tar.gz
cd munin-1.2.5
make install-node install-node-plugins

# リンク
/opt/munin/sbin/munin-node-configure --shell | sh

# 変更
vi /etc/opt/munin/munin-node.conf
allow ^127\.0\.0\.1$→allow ^192\.168\.1\.1$


# 変更
cp dists/redhat/munin-node.rc /etc/init.d/
vi /etc/init.d/munin-node.rc
/usr/sbin/munin-node &→/opt/munin/sbin/munin-node &
pkill→killall


# 起動
/etc/init.d/munin-node.rc start

# 自動起動
chkconfig --add munin-node.rc
chkconfig --level 35 munin-node.rc on

# メインサーバのmunin.confに追加
[hoge.local.zone]
    address 192.168.1.100
    use_node_name yes


«前の日記(2007-07-25) 最新 次の日記(2007-08-08)» 編集