Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CentOS6.6 AttributeError: 'module' object has no attribute 'check_output' #31

Open
ksingh7 opened this issue Jul 9, 2015 · 1 comment

Comments

@ksingh7
Copy link

ksingh7 commented Jul 9, 2015

@rochaporto A big thanks for sharing these plugins.

Need help , While trying to use ceph_pool_plugin , i got this error in collectd logs.

[2015-07-09 16:53:04] [error] ceph-pool: failed to ceph pool stats :: 'module' object has no attribute 'check_output' :: Traceback (most recent call last):
  File "/usr/lib/collectd/plugins/ceph/ceph_pool_plugin.py", line 54, in get_stats
    stats_output = subprocess.check_output('ceph osd pool stats -f json', shell=True)
AttributeError: 'module' object has no attribute 'check_output'

[2015-07-09 16:53:04] [info] ceph: collectd new data from service :: took 0 seconds
[2015-07-09 16:53:04] [error] ceph: failed to retrieve stats
@ksingh7
Copy link
Author

ksingh7 commented Jul 14, 2015

@rochaporto check_output was introduced in python 2.7 so won't work for < 2.7.

My Ceph cluster systems are running python 2.6 , do you have plans to make this plugin python 2.6 friendly ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant