Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have defined an additional graph (in Munin, munin.conf) that calculates the total size of my MySQL database. The index and data sizes are extracted from an external plugin. The definition looks like this:


    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 \
    dbsize.the_sum.label data+index
    dbsize.the_sum.type GAUGE
    dbsize.the_sum.min 0


Now, is it possible to extract the current value of this graph? Running

# munin-run dbsize


# munin-run

does not seem to work.

share|improve this question
I've posted the same question on the munin-users mailing list and will put any answer here in case I get a good one. See here:… – Ztyx Apr 1 '10 at 9:18
up vote 0 down vote accepted

Maybe you could try getting the value directly from RRDTool?

Munin mantains rrdtool (.rrd) files for the sources, you could try using rrdtool directly on munin's rrd to get the values.

share|improve this answer
Yes, I've thought of it. The thing is I have a generic script that extracts values from Munin plugins using munin-run. I might write a fake-plugin that just extracts the rrd-value... – Ztyx Apr 1 '10 at 9:16
According to the mailing list… your solution seems to be the only one. Thanks! – Ztyx Apr 1 '10 at 12:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.