Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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:

[...]

[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

[...]

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

# munin-run dbsize

or

# munin-run my.host.com:dbsize

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: sourceforge.net/mailarchive/… –  Ztyx Apr 1 '10 at 9:18

1 Answer 1

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 sourceforge.net/mailarchive/… your solution seems to be the only one. Thanks! –  Ztyx Apr 1 '10 at 12:38

Your Answer

 
discard

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.