munin de bind9 post FreeBSD 10
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[munin de bind9]]
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*munin de bind9 post FreeBSD 10 [#ba0d59dd]
FreeBSD 10 からBINDはシステムに含まれなくなり、導入後のデ...
/var/named/etc/namedb/ から /usr/local/etc/namedb/
です。
**bind9 [#oa2eaa8f]
munin de bind9 をモニターするよ
/usr/local/etc/namedb/named.conf にログの設定を仕込む
////////////////////////////////////////////////////////...
logging {
channel "log_default" {
file "log/named.log" versions 30 size 100m;
severity info;
print-time yes;
print-category yes;
};
category default { log_default; };
category general { log_default; };
category security { log_default; };
category config { log_default; };
category resolver { log_default; };
category xfer-in { log_default;};
category xfer-out { log_default;};
category notify { log_default;};
category client { log_default;};
category network { log_default;};
category update { log_default;};
// category lame-servers { log_default;};
category lame-servers { null;};
channel "log_queries" {
file "log/queries.log" versions 3 size 1m;
severity info;
print-time yes;
print-category yes;
};
category queries { log_queries; };
};
////////////////////////////////////////////////////////...
log書き込みディレクトリが無い場合は作成
mkdir /usr/local/etc/namedb/log
chown bind:bind /usr/local/etc/namedb/log
** munin の設定 [#dd228c60]
/usr/local/etc/munin/plugin-conf.d/plugins.conf
[*]
env.PATH /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/...
[bind*]
user root
env.rndc /usr/sbin/rndc
env.logfile /usr/local/etc/namedb/log/queries.log
env.querystats /usr/local/etc/namedb/named.stats
** munin のプラグイン用リンク張り [#vbb1c274]
/usr/local/share/munin/plugins/bind9
/usr/local/share/munin/plugins/bind9_rndc
ln -s '/usr/local/share/munin/plugins/bind9' '/usr/local...
ln -s '/usr/local/share/munin/plugins/bind9_rndc' '/usr/...
/usr/local/etc/rc.d/munin-node restart
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
終了行:
[[munin de bind9]]
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*munin de bind9 post FreeBSD 10 [#ba0d59dd]
FreeBSD 10 からBINDはシステムに含まれなくなり、導入後のデ...
/var/named/etc/namedb/ から /usr/local/etc/namedb/
です。
**bind9 [#oa2eaa8f]
munin de bind9 をモニターするよ
/usr/local/etc/namedb/named.conf にログの設定を仕込む
////////////////////////////////////////////////////////...
logging {
channel "log_default" {
file "log/named.log" versions 30 size 100m;
severity info;
print-time yes;
print-category yes;
};
category default { log_default; };
category general { log_default; };
category security { log_default; };
category config { log_default; };
category resolver { log_default; };
category xfer-in { log_default;};
category xfer-out { log_default;};
category notify { log_default;};
category client { log_default;};
category network { log_default;};
category update { log_default;};
// category lame-servers { log_default;};
category lame-servers { null;};
channel "log_queries" {
file "log/queries.log" versions 3 size 1m;
severity info;
print-time yes;
print-category yes;
};
category queries { log_queries; };
};
////////////////////////////////////////////////////////...
log書き込みディレクトリが無い場合は作成
mkdir /usr/local/etc/namedb/log
chown bind:bind /usr/local/etc/namedb/log
** munin の設定 [#dd228c60]
/usr/local/etc/munin/plugin-conf.d/plugins.conf
[*]
env.PATH /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/...
[bind*]
user root
env.rndc /usr/sbin/rndc
env.logfile /usr/local/etc/namedb/log/queries.log
env.querystats /usr/local/etc/namedb/named.stats
** munin のプラグイン用リンク張り [#vbb1c274]
/usr/local/share/munin/plugins/bind9
/usr/local/share/munin/plugins/bind9_rndc
ln -s '/usr/local/share/munin/plugins/bind9' '/usr/local...
ln -s '/usr/local/share/munin/plugins/bind9_rndc' '/usr/...
/usr/local/etc/rc.d/munin-node restart
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
ページ名: