穆宁cdef问题

我越来越疯狂编写一个简单的插件来查询我的ehcache统计信息。 看看我到目前为止:

$ munin-run ehcache standardquerycache_cachehits.value 1779609 standardquerycache_cachemisses.value 153404 

现在我只想绘制一个caching命中率图,但是我没有做到这一点。 我甚至没有得到它的工作总图(仅用于练习)的graphics:

 $ munin-run ehcache config graph_category Ehcache graph_title Cache Hit ratios graph_vlabel percent % graph_order standardquerycache_total standardquerycache_ratio standardquerycache_cachehits.label standardquerycache_cachehits standardquerycache_cachehits.graph no standardquerycache_cachehits.type COUNTER standardquerycache_cachemisses.label standardquerycache_cachemisses standardquerycache_cachemisses.graph no standardquerycache_cachemisses.type COUNTER standardquerycache_total.sum standardquerycache_cachehits standardquerycache_cachemisses standardquerycache_total.label standardquerycache_total standardquerycache_ratio.label standardquerycache standardquerycache_ratio.cdef standardquerycache_cachehits,standardquerycache_total,1,standardquerycache_total,0,EQ,IF,/,100,*,UNKN,standardquerycache_total,0,EQ,IF,UNKN,standardquerycache_total,UNKN,EQ,IF 

这是我在munin-update.log中的输出:

 2011/08/07 16:36:39 Opened log file 2011/08/07 16:36:39 [INFO]: Starting munin-update 2011/08/07 16:36:39 [INFO]: Config update, ensuring type of '...total-g.rrd' is 'GAUGE'. 2011/08/07 16:36:39 [INFO]: Config update, ensuring max of '...rrd' is 'U'. 2011/08/07 16:36:39 [INFO]: Config update, ensuring min of '..total-g.rrd' is 'U'. 2011/08/07 16:36:39 [WARNING] Service ehcache on ... returned no data for label standardquerycache_total 2011/08/07 16:36:39 [WARNING] Service ehcache on ... returned no data for label standardquerycache_ratio 2011/08/07 16:36:39 [INFO] Reaping Munin::Master::UpdateWorker<...>. Exit value/signal: 0/0 2011/08/07 16:36:39 [INFO]: Munin-update finished (0.14 sec) 

也许我正在做一些完全错误的事情,但是munin似乎要求一个值得cdef计算的值。

任何错误的插件configuration?

好的,现在我明白了。 munin-update.log不是问题。 我只能等10分钟才能看到图表。 这是一个计数器,所以它需要有两个值来画一条线。 你甚至不能用munin-graph强制这个。 所以只要build立你的插件,并等待10分钟(无聊)。