Munin是相当详细的,并且在munin-cron每次运行munin-graph.log一些东西logging到munin-graph.log , munin-html.log , munin-limits.log和munin-update.log中。
我已经通过在munin-node.conf中设置了log_level 0来减lessmunin-node日志logging级别,并且运行良好。 munin-node.log只有在生成错误消息时才会更新。
不过,我也尝试在munin.conf添加相同的选项,但这会导致munin崩溃。
如何减less由慕尼黑写的日志量?
试图找出在munin.conf中允许哪些字段,我最终读取了Config.pm的源代码。
不幸的是,唯一引用日志的是:
config => bless ( { debug => 0, logdir => $Munin::Common::Defaults::MUNIN_LOGDIR, }, $class )
但仔细观察源代码会显示最近对所logging消息的提交 :
@@ -90,7 +90,7 @@ while (new CGI::Fast) { my $pinpoint = undef; my $path = $ENV{PATH_INFO} || ""; - INFO "Request path is $path"; + DEBUG "Request path is $path"; # The full URL looks like this: # Case 1: @@ -133,7 +133,7 @@ while (new CGI::Fast) { my ($dom, $host, $serv, $scale) = $path =~ m#^/(.*)/([^/]+)/([\w-]+)-([\w=,]+)\.png#; ## avoid bug in vim - INFO "asked for ($dom, $host, $serv, $scale)"; + DEBUG "asked for ($dom, $host, $serv, $scale)"; if ($scale =~ /pinpoint=(\d+),(\d+)/) { $pinpoint = [ $1, $2, ];
当我运行Debian stable 1.4.5-3时 ,我将munin升级到2.0.6-1,并且logging确实减less了!