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
该插件工作。这是一个错误?我在哪里报告?在正式解决方案到达之前,在本地修复它的正确方法是什么?