munin de bind9
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*munin de bind9 [#x5adf6fc]
**bind9 [#oa2eaa8f]
munin de bind9 をモニターするよ
/var/named/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
** munin の設定 [#wbb923af]
/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 /var/named/etc/namedb/log/queries.log
env.logfile /usr/local/etc/namedb/log/queries.log
#env.querystats /var/named/etc/namedb/named.stats
env.querystats /usr/local/etc/namedb/named.stats
[amavis]
env.amavislog /var/log/maillog
env.logtail /usr/local/bin/logtail
//** /usr/local/share/munin/plugins/bind9 編集 [#bb618135]
// cp /usr/local/share/munin/plugins/bind9 /usr/local/sha...
// vi /usr/local/share/munin/plugins/bind9
//変更点
// [bind9]
// # env.logfile /var/log/bind9/query.log
// env.logfile /var/named/etc/namedb/log/query.log
// #my $QUERYLOG = $ENV{logfile} || '/var/log/bind9/query...
// my $QUERYLOG = $ENV{logfile} || '/var/named/etc/namedb...
// #my $STATEFILE= "$ENV{MUNIN_PLUGSTATE}/bind9.state";
// my $STATEFILE= "$ENV{MUNIN_PLUGSTATE}/named.log";
//
// my $OTHER=0;
** 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]);
終了行:
CONTENTS
#contents
----
Lastmodified &lastmod;
----
*munin de bind9 [#x5adf6fc]
**bind9 [#oa2eaa8f]
munin de bind9 をモニターするよ
/var/named/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
** munin の設定 [#wbb923af]
/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 /var/named/etc/namedb/log/queries.log
env.logfile /usr/local/etc/namedb/log/queries.log
#env.querystats /var/named/etc/namedb/named.stats
env.querystats /usr/local/etc/namedb/named.stats
[amavis]
env.amavislog /var/log/maillog
env.logtail /usr/local/bin/logtail
//** /usr/local/share/munin/plugins/bind9 編集 [#bb618135]
// cp /usr/local/share/munin/plugins/bind9 /usr/local/sha...
// vi /usr/local/share/munin/plugins/bind9
//変更点
// [bind9]
// # env.logfile /var/log/bind9/query.log
// env.logfile /var/named/etc/namedb/log/query.log
// #my $QUERYLOG = $ENV{logfile} || '/var/log/bind9/query...
// my $QUERYLOG = $ENV{logfile} || '/var/named/etc/namedb...
// #my $STATEFILE= "$ENV{MUNIN_PLUGSTATE}/bind9.state";
// my $STATEFILE= "$ENV{MUNIN_PLUGSTATE}/named.log";
//
// my $OTHER=0;
** 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]);
ページ名: