2012-06-15 25 views
0

我試圖使用memcachec插件從memcached中讀取數據,但是當我使用這個配置:Collectd memcachec插件壞了?

<Plugin "memcachec"> 
    <Page "plugin_instance"> 
    Key "KEY1" 
    Server "localhost" 
    ... 
    </Page> 
</Plugin> 

我越來越memcachec plugin: Option 'server' not allowed here.,如果我刪除了服務器選項我得到memcachec plugin: 'Server' missing in 'Page' block.。我檢查memcachec的來源,有此代碼(memcachec.c,線329):

if (strcasecmp ("Server", child->key) == 0) 
    status = cmc_config_add_string ("Server", &page->server, child); 
if (strcasecmp ("Key", child->key) == 0) 
    status = cmc_config_add_string ("Key", &page->key, child); 
else if (strcasecmp ("Match", child->key) == 0) 
    /* Be liberal with failing matches => don't set `status'. */ 
    cmc_config_add_match (page, child); 
else 
{ 
    WARNING ("memcachec plugin: Option `%s' not allowed here.", child->key); 
    status = -1; 
} 

好像第二if應該已經else if該插件工作。這是一個錯誤?我在哪裏報告?在正式解決方案到達之前,在本地修復它的正確方法是什麼?

回答

0

我想你很久以前就已經得到了你的答案,但看起來這已經被修復了。報告錯誤最好使用郵件列表(請參閱標記信息)或在github上打開問題(https://github.com/collectd/collectd)。