2012-06-15 27 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)。