ftnk.jp -> ~fumi -> ChangeLog -> Munin

ChangeLog 最新ページ

2010-09-17 Fri

気になった Munin plugin [Munin] はてぶ

- Munin Exchange - fail2ban_ plugin
- Munin Exchange - smtp_hello_ plugin
- Munin Exchange - passenger_memory plugin
- Munin Exchange - puppetmaster plugin
- Munin Exchange - DRBD Stat plugin

2010-08-13 Fri

munin でグラフが生成されない [Munin] はてぶ

エラーとかメモし忘れたけど,こんな感じ.

原因: munin-node が返す host 名と munin.conf で指定した host 名が一致しなかったため
対策: munin-node.conf で host_name を指定

今までこんなことでハマったことがないので,
munin-node.conf で host_name を特に指定していなかったけど,
こういうハマり方があるなら,常に host_name を指定した方がよさげ.

munin-node が返す host 名は telnet で munin-node に接続して確認できる.
以下のような感じ.

$ telnet localhost 4949
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
# munin node at fuga.ftnk.jp
nodes
fuga.ftnk.jp
.
quit
Connection closed by foreign host.

- munin の apahce プラグイン [2009-07-03-2]
- munin の NFSv4 プラグイン [2009-07-03-1]
- munin の plugin 自動設定 [2009-02-09-1]

2009-07-12 Sun

Unbound 1.3.1 にアップデート [DNS][Unbound][Munin] はてぶ

Unbound 1.3.1 にアップデート

bug fix がメインで新機能は以下の 2 点.

- unbound_munin_ in contrib uses ps to show total memory rss if sbrk hack does not work.
- Added build-unbound-localzone-from-hosts.pl to contrib, from Dennis DeDonatis. It converts /etc/hosts into config statements.

build-unbound-localzone-from-hosts.pl は /etc/hosts から
以下のような設定を生成してくれる perl スクリプト.
server:
 
local-zone: "example.com" transparent
 
local-data-ptr: "127.0.0.1 localhost.localdomain"
local-data: "localhost.localdomain A 127.0.0.1"
local-data: "localhost A 127.0.0.1"
 
local-data-ptr: "::1 localhost6.localdomain6"
local-data: "localhost6.localdomain6 AAAA ::1"
local-data: "localhost6 AAAA ::1"



munin 用 plugin の使い方

Plugin の準備
contrib/unbound_munin_ を /etc/munin/plugins/unbound としてコピー.
さらに以下のように ln しておく.

ln -s unbound unbound_munin_by_class
ln -s unbound unbound_munin_by_flags
ln -s unbound unbound_munin_by_opcode
ln -s unbound unbound_munin_by_rcode
ln -s unbound unbound_munin_by_type
ln -s unbound unbound_munin_histogram
ln -s unbound unbound_munin_hits
ln -s unbound unbound_munin_memory
ln -s unbound unbound_munin_queue

/etc/munin/plugin-conf.d/munin-node に以下を追加.

[unbound*]
user root
env.statefile /var/lib/munin/plugin-state/unbound-state
env.unbound_conf /etc/unbound.conf
env.unbound_control /usr/sbin/unbound-control
env.spoof_warn 1000
env.spoof_crit 100000
で,munin-node を restart.

unbound の準備
まず remote control 用の setup

# unbound-control-setup

/etc/unbound.conf の編集

extended-statistics: yes
control-enable: yes

- 日本Unboundユーザ会 » Unbound 1.3.1リリース
  http://unbound.jp/?p=370

2009-07-03 Fri

munin の apahce プラグイン [Apache][network][Munin] はてぶ

munin の apache プラグインは /server-status から情報を取得するので,
server status を有効にする必要がある.

ExtendedStatus On
<Location /server-status>
  SetHandler server-status
  Order deny,allow
  Deny from all
  Allow from 127.0.0.1
</Location>

ExtendedStatus を on にしないと
- Total Accesses
- Total kBytes
- Uptime
- ReqPerSec
- BytesPerSec
- BytesPerReq
等の情報が取得できない.

- munin の NFSv4 プラグイン [2009-07-03-1]
- munin の plugin 自動設定 [2009-02-09-1]

Referrer (Inside):
[2010-08-13-1] munin でグラフが生成されない

2009-07-03 Fri

munin の NFSv4 プラグイン [network][Munin] はてぶ

munin に含まれる nfsd プラグインは NFSv4 に対応していないので,
以下から NFSv4 用プラグインをダウンロードしてインストール.

- MuninExchange - nfsv4

- munin の plugin 自動設定 [2009-02-09-1]

Referrer (Inside):
[2010-08-13-1] munin でグラフが生成されない
[2009-07-03-2] munin の apahce プラグイン

2009-02-09 Mon

munin の plugin 自動設定 [network][Munin] はてぶ

第 1 回 静岡 IT Pro 勉強会([2009-02-07-1])のディスカッションで,
munin は plugin を自動設定してくれて便利
という話がでたんだけど,どうやっているのか気になったので,
ちょっと調べてみた.

- munin-node インストール時には設定されている
- munin-node を再起動したりしても変更されない
ということはわかっているので,
インストール時に何かしているはず,
ということで spec ファイルを見てみると,以下のような記述が.

%post node
/sbin/chkconfig --add munin-node
%{_sbindir}/munin-node-configure --shell 2> /dev/null | sh >& /dev/null || :
どうやら,munin-node-configure でどんなサービスが動いているか確認しているよう.
Usage: /usr/sbin/munin-node-configure [options]

Options:
       --help                  View this help page
       --version               Show version information
       --debug                 View debug information (very verbose)
       --config <file>         Override configuration file
                               [/etc/munin/munin-node.conf]
       --servicedir <dir>      Override plugin dir [/etc/munin/plugins]
       --libdir <dir>          Override plugin lib [/usr/share/munin/plugins]
       --families <family,...> Override families (auto,manual,contrib) [auto]
       --suggest               Show suggestions instead of status
       --shell                 Show shell commands (implies --suggest)
       --remove-also           Also show rm-commands when doing --shell
       --newer <version>       Only show suggestions related to plugins newer
                               than version <version>. [0.0.0]
       --snmp <host|cidr>      Do SNMP probing on the host or CIDR network.
       --snmpversion <ver>     Set SNMP version (1, 2c or 3) [2c]
       --snmpcommunity <comm>  Set SNMP community [public]
で,--shell オプションでリンクの生成コマンドの表示と
サジェストをしてくれる.
ln -s /usr/share/munin/plugins/apache_processes /etc/munin/plugins/apache_processes
ln -s /usr/share/munin/plugins/apache_volume /etc/munin/plugins/apache_volume
こんな感じの出力.

spec ファイルでは,これを sh に渡してリンクの作成までして,
自動設定してくれている.

Referrer (Inside):
[2010-08-13-1] munin でグラフが生成されない
[2009-07-03-2] munin の apahce プラグイン
[2009-07-03-1] munin の NFSv4 プラグイン
ChangeLog 最新ページ