- 追加された行はこの色です。
- 削除された行はこの色です。
[[munin on FreeBSD 9.0]]
[[munin2]]
#contents
********************************************************************
Unless this file already existed, a sample configuration file
has been placed in /usr/local/etc/munin/munin.conf.
Please edit it according to your needs.
The Munin server will be run from cron under the user 'munin'.
********************************************************************
===> Correct pkg-plist sequence to create group(s) and user(s)
===> Compressing manual pages for munin-master-1.4.7_3
===> Registering installation for munin-master-1.4.7_3
===> Cleaning for munin-master-1.4.7_3
guard# reash
reash: Command not found.
guard# rehash
guard# mkdir /usr/local/www/apache22/data/munin
guard# chown -R munin:munin /usr/local/www/apache22/data/munin
guard# cd /usr/local/www
guard# ll
total 8
drwxr-xr-x 6 root wheel 512 Feb 12 10:12 apache22
drwxr-xr-x 2 root wheel 512 Aug 10 14:25 cgi-bin
drwxr-xr-x 2 root wheel 512 Oct 30 2011 icons
drwxr-xr-x 2 munin munin 512 Aug 10 14:25 munin
guard# cp cgi-bin/munin-cgi-graph apache22/cgi-bin
guard# cp -rp munin apache22/data
guard# echo munin_node_enable="YES" >> /etc/rc.conf
guard# /usr/local/sbin/munin-node restart
guard#
guard#
guard# apachectl restart
guard# ln -s /usr/local/share/munin/plugins/memory /usr/local/etc/munin/plugins/memory
guard# ln -s /usr/local/share/munin/plugins/cpu /usr/local/etc/munin/plugins/cpu
guard# ln -s /usr/local/share/munin/plugins/coretemp /usr/local/etc/munin/plugins/coretemp
guard# cat /var/log/munin/munin-node.log
Process Backgrounded
2012/08/10-14:28:11 Munin::Node::Server (type Net::Server::Fork) starting! pid(88883)
Resolved [*]:4949 to [0.0.0.0]:4949, IPv4
Binding to TCP port 4949 on host 0.0.0.0 with IPv4
Setting gid to "0 0"
2012/08/10-14:30:00 CONNECT TCP Peer: "[127.0.0.1]:62397" Local: "[127.0.0.1]:4949"
Use of uninitialized value in pattern match (m//) at /usr/local/lib/perl5/site_perl/5.10.1/Net/Server.pm line 600.
2012/08/10-14:35:00 CONNECT TCP Peer: "[127.0.0.1]:26369" ocal: "[127.0.0.1]:4949"
Use of uninitialized value in pattern match (m//) at /usr/local/lib/perl5/site_perl/5.10.1/Net/Server.pm line 600.
2012/08/10-14:40:00 CONNECT TCP Peer: "[127.0.0.1]:31368" Local: "[127.0.0.1]:4949"
Use of uninitialized value in pattern match (m//) at /usr/local/lib/perl5/site_perl/5.10.1/Net/Server.pm line 600.
**普通に kill -HUP すると、再起動できず? [#rde67511]
2012/08/10-15:12:45 HUP'ing server
Insecure dependency in exec while running with -T switch at /usr/local/lib/perl5/site_perl/5.10.1/Net/Server.pm line 861.
Process Backgrounded
2012/08/10-15:15:32 Munin::Node::Server (type Net::Server::Fork) starting! pid(89478)
**munin-node の再起動 [#b682f145]
FreeBSD で ports を使ってインストールした場合には, 「/usr/local/sbin/munin-node restart 」になる.
/usr/local/sbin/munin-node restart
**mbmon [#mabf5ca3]
https://bompopo.wordpress.com/2009/10/09/mbmon%E3%81%A7hw%E6%83%85%E5%A0%B1%E3%82%92%E5%8F%96%E5%BE%97%E3%81%99%E3%82%8B/
guard# mbmon -D
Probe Request: none
>>> Testing Reg's at ISA-IO <<<
[ISA Port IO-Base:0x290]
Probing Winbond/Asus/LM78/79 chip:
CR40:0x03, CR41:0x00, CR42:0x00, CR43:0xFF
CR44:0xFF, CR45:0x00, CR46:0x3F, CR47:0x25
CR48:0x2D, CR49:0x00, CR4A:0x20, CR4B:0x04
CR4C:0x90, CR4D:0x95, CR4E:0x00, CR4F:0xA3
CR56:0x00, CR58:0xC1, CR59:0x71, CR5D:0x05
CR3E:0x8C, CR13:0x00, CR17:0x3C, CRA1:0xBE
CR20:0x85, CR22:0xD3, CR23:0xD3, CR24:0x91
CR27:0x62, CR29:0xFF, CR2A:0xFF, CR2B:0xCA
* Temp1 exists at Bank 1, Temp2 exists at Bank 2.
Using ISA-IO access method!!
* Winbond Chip W83627HF/THF/THF-A found.
guard# kldload smb.ko
guard# kldload ichsmb.ko
guard# kldstat
Id Refs Address Size Name
1 8 0xc0400000 bb5504 kernel
2 1 0xc6e49000 3000 smb.ko
3 2 0xc7854000 3000 smbus.ko
4 1 0xc8ed6000 4000 ichsmb.ko
guard# mbmon
Temp.= 98.0, 40.5, 33.0; Rot.= 0, 0, 0
Vcore = 2.14, 3.04; Volt. = 3.38, 5.67, 8.88, 4.34, 2.54
Temp.= 98.0, 40.5, 33.0; Rot.= 0, 0, 0
Vcore = 2.16, 3.04; Volt. = 3.38, 5.67, 8.88, 4.34, 2.54
Temp.= 98.0, 40.5, 33.0; Rot.= 0, 0, 0
Vcore = 2.16, 3.04; Volt. = 3.38, 5.67, 8.82, 4.34, 2.54
^C
次回起動時には自動でモジュールをロードするために、loader.confに以下を記述。
/boot/loader.conf
smb_load="YES"
ichsmb_load="YES"
**coretemp [#nce334ec]
guard# kldload coretemp
guard# kldstat
Id Refs Address Size Name
1 10 0xc0400000 bb5504 kernel
2 1 0xc6e49000 3000 smb.ko
3 2 0xc7854000 3000 smbus.ko
4 1 0xc8ed6000 4000 ichsmb.ko
5 1 0xc8e5d000 3000 coretemp.ko
guard# sysctl -a | grep temper
dev.cpu.0.temperature: 34.0C
dev.cpu.1.temperature: 31.0C
/boot/loader.conf
coretemp_load="YES"
*guard# portinstall sysutils/ipmitool [#k1499232]
/boot/loader.conf
ipmi_load="YES"