trbs/bucky

unable to get collectd-types to work

Closed this issue · 3 comments

If I try to use collectd-types, I get the following:

(wheezy)root@extinctvm:~# bucky --collectd-types=/opt/telemetry/statsbox/types.db
Traceback (most recent call last):
  File "/usr/local/bin/bucky", line 9, in <module>
    load_entry_point('bucky==2.2.2', 'console_scripts', 'bucky')()
  File "/usr/local/lib/python2.7/dist-packages/bucky-2.2.2-py2.7.egg/bucky/main.py", line 216, in main
    parser.parse_args(values=cfg)
  File "/usr/lib/python2.7/optparse.py", line 1399, in parse_args
    stop = self._process_args(largs, rargs, values)
  File "/usr/lib/python2.7/optparse.py", line 1439, in _process_args
    self._process_long_opt(rargs, values)
  File "/usr/lib/python2.7/optparse.py", line 1514, in _process_long_opt
    option.process(opt, value, values, self)
  File "/usr/lib/python2.7/optparse.py", line 788, in process
    self.action, self.dest, opt, value, values, parser)
  File "/usr/lib/python2.7/optparse.py", line 800, in take_action
    values.ensure_value(dest, []).append(value)
AttributeError: 'module' object has no attribute 'ensure_value'

The workaround I am using is to symlink /usr/local/share/collectd/types.db to /opt/telemetry/statsbox/types.db

No idea how to fix this.

This occurs for both the 'pip install' version and the version from git.

trbs commented

This is a bug in bucky, thanks for reporting it.

I have committed a fix for this in the git version, could you please try and see if this fixes your issue ?

Looks good to me "ship it!"

(wheezy)root@extinctvm:~# /usr/local/bin/bucky --collectd-types=/opt/telemetry/statsbox/types.db
[2015-02-19 15:18:49,587][INFO] udpserver - Bound socket socket 127.0.0.1:23632
[2015-02-19 15:18:49,591][INFO] udpserver - Bound socket socket 127.0.0.1:25826
[2015-02-19 15:18:49,597][INFO] collectd - Loaded collectd types from /opt/telemetry/statsbox/types.db
[2015-02-19 15:18:49,605][INFO] udpserver - Bound socket socket 127.0.0.1:8125
[2015-02-19 15:18:49,608][ERROR] carbon - Failed to connect to 127.0.0.1:2003: [Errno 111] Connection refused
[2015-02-19 15:18:50,610][ERROR] carbon - Failed to connect to 127.0.0.1:2003: [Errno 111] Connection refused

Thanks!

trbs commented

We have a new release :) v2.3.0