[英]How to change log level of Munin's munin-graph.log, munin-html.log, munin-limits.log and munin-update.log?
我已經在“/etc/munin/munin-node.conf”中更改了“munin-node.log”的日志級別,但現在一切正常工作,如何更改“munin-graph”的日志級別.log“,”munin-html.log“,”munin-limits.log“和”munin-update.log“?
它們都位於/ var / log / munin /
謝謝
要更改munin-graph的日志級別(在版本2.0.7以下的日志級別INFO上運行),您可以更改/ usr / share / munin / munin-graph
從:
logger_open($config->{'logdir'});
logger_debug() if $config->{debug} or defined($ENV{CGI_DEBUG});
至:
logger_open($config->{'logdir'});
logger_debug() if $config->{debug} or defined($ENV{CGI_DEBUG});
logger_level("warn");
或升級到更高版本的munin:請參閱http://munin-monitoring.org/ticket/1251
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.