简体   繁体   中英

How to change log level of Munin's munin-graph.log, munin-html.log, munin-limits.log and munin-update.log?

I've already changed the log level for "munin-node.log" in "/etc/munin/munin-node.conf" but now that everything is working 100%, how do I change the log level of "munin-graph.log", "munin-html.log", "munin-limits.log" and "munin-update.log"?

They are all located in /var/log/munin/

Thanks

to change the log level of munin-graph (which is running on log level INFO below version 2.0.7) you can change /usr/share/munin/munin-graph

from:

logger_open($config->{'logdir'});
logger_debug() if $config->{debug} or defined($ENV{CGI_DEBUG});

to:

logger_open($config->{'logdir'});
logger_debug() if $config->{debug} or defined($ENV{CGI_DEBUG});
logger_level("warn"); 

or upgrade to a higher munin version: see http://munin-monitoring.org/ticket/1251

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM