トップ 差分 一覧 ソース 検索 ヘルプ RSS ログイン

FB-MUNIN

MUNIN

 plugins.conf

squidのポートをデフォルトの3128以外にしている場合は、/usr/local/etc/munin/plugin-conf.d/plugins.confに以下を追加

[squid*] 
env.squidhost 127.0.0.1 
env.squidport 8080

  httpd.conf に次の内容を追加

 munin 2008-05-08

ExtendedStatus On

<Location /server-status>
   SetHandler server-status   
   Order deny,allow
   Deny from all
   Allow from .example.com
</Location>

install

pkg install munin-master 
pkg install munin-node
pkg install smartmontools
# smartctl --scan   ## インストールの確認

## pwd_mkdb /etc/master.passwd
## env HTTP_PROXY="http://192.168.11.80:8080" pkg install munin-node smartmontools

# env HTTP_PROXY="http://127.0.0.1:18080" pkg  install munin-node smartmontools
# Filesystem     Size    Used   Avail Capacity  Mounted on
# /dev/ada0p2     23G    338M     21G     2%    /
# /dev/ada0p4     23G    4.2G     17G    20%    /usr
# /dev/ada0p5     23G    3.1G     18G    14%    /var
# /dev/ada0p6    378G     11G    337G     3%    /home

# vi /etc/rc.conf
### munin_node_enable="YES"
### # smartd_enable="YES" ## nothing too do.
#
# vi /usr/local/etc/munin/munin-node.conf
#### cidr_allow 192.168.250.15/32
#
# /usr/local/sbin/munin-node-configure --suggest
#
# /usr/local/sbin/munin-node-configure --shell | sh -x
#
#   /usr/local/etc/rc.d/munin-node start
#
## pushd /usr/local/etc/munin/plugins
## ln -s /usr/local/share/munin/plugins/coretemp /usr/local/etc/munin/plugins/coretemp
## ln -s /usr/local/share/munin/plugins/dev_cpu_ /usr/local/etc/munin/plugins/dev_cpu_temperature
## ln -s /usr/local/share/munin/plugins/dev_cpu_ /usr/local/etc/munin/plugins/dev_cpu_freq
## /usr/local/sbin/munin-node-configure --shell | sh -x
## /usr/local/etc/rc.d/munin-node restart
# + ln -s /usr/local/share/munin/plugins/hddtemp_smartctl /usr/local/etc/munin/plugins/hddtemp_smartctl
# + ln -s /usr/local/share/munin/plugins/smart_ /usr/local/etc/munin/plugins/smart_ada0
#
# 追加 squid :: /usr/local/etc/munin/plugin-conf.d/plugins.conf
に
    [squid_*]
    env.squidport 48080
を追加

Tips

http://next.matrix.jp/freebsd-munin.html

https://www.server-memo.net/server-setting/munin/munin-install.html

http://next.matrix.jp/freebsd-munin-hddtemp.html