如何让munin图(派生或计数器)不是每秒?

我有价值观:

10:00 - 505 11:00 - 507 12:00 - 510 13:00 - 525 

我想得到

 11:00 - 2 12:00 - 3 13:00 - 15 

但每秒(munin每5分钟运行一次):

 11:00 - 2/300 12:00 - 3/300 13:00 - 15/300 

我如何能够每小时制作图表?

你如何做这取决于你正在处理什么types的数据源。 在具有graphics插件的主机上,运行munin-run <plugin> config并查找其字段的type属性。

如果字段的types为COUNTER或DERIVE,则可以将graphics的graph_period属性设置为所讨论的graphics的minutehour 。 例如,我的邮件服务器并不是很忙,因此更有意义的是每分钟显示消息而不是每秒消息。 我使用munin.conf的以下主机定义来munin.conf

 [mailserver.our.tld] <snip other config> sendmail_mailstats.graph_period minute 

(这也是一个munin常见问题 。)

如果这些字段的types是GAUGE或ABSOLUTE,则必须使用cdef属性来相应地调整值。 您可能还必须更改graph_vlabel属性以匹配您的新缩放比例。 一个例子就是nutups2__runtime插件,在几秒钟内报告UPS运行时间。 我更喜欢在几分钟内看到它,所以我在munin.conf有以下主机定义:

 [upshost.our.tld] <snip other config> nutups2_ups_runtime.battery.cdef battery,60,/ nutups2_ups_runtime.graph_vlabel Minutes