我定义了一个额外的图表(在Munin,munin.conf中),它计算我的MySQL数据库的总大小。索引和数据大小是从外部插件中提取的。定义如下:
[...]
[Database;my.host.com]
address my.host.com
use_node_name yes
dbsize.update no
dbsize.graph_args --base 1024 -l 0
dbsize.graph_title Total database size
dbsize.graph_vlabel bytes
dbsize.graph_category mysql
dbsize.graph_info The total database size.
dbsize.graph_order the_sum
dbsize.the_sum.sum \
my.host.com:mysql_size.index \
my.host.com:mysql_size.datas
dbsize.the_sum.label data+index
dbsize.the_sum.type GAUGE
dbsize.the_sum.min 0
[...]现在,是否可以提取此图的当前值?正在运行
# munin-run dbsize或
# munin-run my.host.com:dbsize似乎不起作用。
发布于 2010-03-31 16:21:36
也许您可以尝试直接从RRDTool获取值?
Munin管理rrdtool (.rrd)文件的源代码,您可以尝试使用rrdtool直接在munin的rrd上获取值。
https://serverfault.com/questions/128119
复制相似问题