{"action":"created","issue":{"url":"https://api.github.com/repos/collectd/collectd/issues/1790","repository_url":"https://api.github.com/repos/collectd/collectd","labels_url":"https://api.github.com/repos/collectd/collectd/issues/1790/labels{/name}","comments_url":"https://api.github.com/repos/collectd/collectd/issues/1790/comments","events_url":"https://api.github.com/repos/collectd/collectd/issues/1790/events","html_url":"https://github.com/collectd/collectd/issues/1790","id":165196181,"number":1790,"title":"Varnish plugin ignoring configuration options under libvarnishapi1 4.1.3","user":{"login":"dbeckham","id":250375,"avatar_url":"https://avatars.githubusercontent.com/u/250375?v=3","gravatar_id":"","url":"https://api.github.com/users/dbeckham","html_url":"https://github.com/dbeckham","followers_url":"https://api.github.com/users/dbeckham/followers","following_url":"https://api.github.com/users/dbeckham/following{/other_user}","gists_url":"https://api.github.com/users/dbeckham/gists{/gist_id}","starred_url":"https://api.github.com/users/dbeckham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbeckham/subscriptions","organizations_url":"https://api.github.com/users/dbeckham/orgs","repos_url":"https://api.github.com/users/dbeckham/repos","events_url":"https://api.github.com/users/dbeckham/events{/privacy}","received_events_url":"https://api.github.com/users/dbeckham/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-12T22:26:26Z","updated_at":"2016-07-28T08:47:06Z","closed_at":null,"body":"When collectd is compiled against libvarnishapi1 version 4.1.3, available from varnish-cache.org's Debian/Ubuntu repository: https://repo.varnish-cache.org/ubuntu/, it refuses to recognize the following configuration options:\r\n\r\n```\r\nCollectDirectorDNS\r\nCollectPurge\r\nCollectSMA\r\nCollectSM\r\n```\r\nAll of which are described here: https://collectd.org/documentation/manpages/collectd.conf.5.shtml#plugin_varnish\r\n\r\nThere seems to be a discrepancy between the man pages and the wiki (https://collectd.org/wiki/index.php/Plugin:Varnish), so I removed all but `CollectSMA` option, but still saw the same start up warnings about `CollectSMA`\r\n\r\nExample syslog output:\r\n```\r\ncollectd[437]: Varnish plugin: Ignoring unknown configuration option: \"CollectDirectorDNS\". Did you forget to add an <Instance /> block around the configuration?\r\ncollectd[437]: Varnish plugin: Ignoring unknown configuration option: \"CollectPurge\". Did you forget to add an <Instance /> block around the configuration?\r\ncollectd[437]: Varnish plugin: Ignoring unknown configuration option: \"CollectSMA\". Did you forget to add an <Instance /> block around the configuration?\r\ncollectd[437]: Varnish plugin: Ignoring unknown configuration option: \"CollectSM\". Did you forget to add an <Instance /> block around the configuration?\r\n```\r\n\r\nMy varnish plugin configuration looks like:\r\n\r\n```\r\nLoadPlugin varnish              \r\n<Plugin varnish>                \r\n    <Instance>\r\n        CollectBackend     true \r\n        CollectBan         true \r\n        CollectCache       true \r\n        CollectConnections true \r\n        CollectDirectorDNS false\r\n        CollectESI         false\r\n        CollectFetch       true \r\n        CollectHCB         false\r\n        CollectObjects     true \r\n        CollectPurge       true \r\n        CollectSession     true \r\n        CollectSHM         true \r\n        CollectSMA         true \r\n        CollectSMS         true \r\n        CollectSM          true \r\n        CollectStruct      true \r\n        CollectTotals      true \r\n        CollectUptime      true \r\n        CollectVCL         true \r\n        CollectVSM         true \r\n        CollectWorkers     true \r\n    </Instance>                 \r\n</Plugin>                       \r\n```\r\n\r\nStart up output looks like:\r\n```\r\noption = FQDNLookup; value = true;\r\noption = Interval; value = 60.000000;\r\noption = Timeout; value = 2.000000;\r\nCreated new plugin context.\r\nVarnish plugin: Ignoring unknown configuration option: \"CollectDirectorDNS\". Did you forget to add an <Instance /> block around the configuration?\r\nVarnish plugin: Ignoring unknown configuration option: \"CollectPurge\". Did you forget to add an <Instance /> block around the configuration?\r\nVarnish plugin: Ignoring unknown configuration option: \"CollectSMA\". Did you forget to add an <Instance /> block around the configuration?\r\nVarnish plugin: Ignoring unknown configuration option: \"CollectSM\". Did you forget to add an <Instance /> block around the configuration?\r\nDone parsing `/usr/share/collectd/types.db'\r\ninterval_g = 60.000;\r\ntimeout_g = 2;\r\nhostname_g = prx04.<REMOVED>;\r\nplugin_read_thread: Handling `varnish/localhost'.\r\nCreated new plugin context.\r\nInitialization complete, entering read-loop.\r\nCreated new plugin context.\r\n```"},"comment":{"url":"https://api.github.com/repos/collectd/collectd/issues/comments/235836314","html_url":"https://github.com/collectd/collectd/issues/1790#issuecomment-235836314","issue_url":"https://api.github.com/repos/collectd/collectd/issues/1790","id":235836314,"user":{"login":"octo","id":116087,"avatar_url":"https://avatars.githubusercontent.com/u/116087?v=3","gravatar_id":"","url":"https://api.github.com/users/octo","html_url":"https://github.com/octo","followers_url":"https://api.github.com/users/octo/followers","following_url":"https://api.github.com/users/octo/following{/other_user}","gists_url":"https://api.github.com/users/octo/gists{/gist_id}","starred_url":"https://api.github.com/users/octo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octo/subscriptions","organizations_url":"https://api.github.com/users/octo/orgs","repos_url":"https://api.github.com/users/octo/repos","events_url":"https://api.github.com/users/octo/events{/privacy}","received_events_url":"https://api.github.com/users/octo/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T08:47:06Z","updated_at":"2016-07-28T08:47:06Z","body":"Judging from the code:\r\n*CollectDirectorDNS* is Varnish v3 only.\r\n*CollectPurge*, *CollectSMA* and *CollectSM* are Varnish v2 only.\r\n\r\nI suppose the error message should communicate that fact."}}
{"actor":{"display_login":"octo"}}