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
該插件工作。這是一個錯誤?我在哪裏報告?在正式解決方案到達之前,在本地修復它的正確方法是什麼?