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

ProcessResourcesCollector TypeError #713

Closed
grnrk opened this issue Aug 20, 2014 · 5 comments
Closed

ProcessResourcesCollector TypeError #713

grnrk opened this issue Aug 20, 2014 · 5 comments
Labels
Milestone

Comments

@grnrk
Copy link

grnrk commented Aug 20, 2014

Hi, can't get this collector to work, tried a bunch of different configs, none successful.

Config:
enabled = True
unit = kB
[process]
[[apache2]]
exe = ^/usr/sbin/apache2$

[2014-08-20 10:55:41,882] [Thread-1] Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/diamond/collector.py", line 393, in _run
self.collect()
File "/usr/share/diamond/collectors/processresources/processresources.py", line 191, in collect
self.collect_process_info(process)
File "/usr/share/diamond/collectors/processresources/processresources.py", line 173, in collect_process_info
pi = process_info(process, self.default_info_keys)
File "/usr/share/diamond/collectors/processresources/processresources.py", line 73, in process_info
process_info = process.as_dict()
File "/usr/local/lib/python2.7/dist-packages/psutil/init.py", line 414, in as_dict
ret = attr()
File "/usr/local/lib/python2.7/dist-packages/psutil/init.py", line 921, in memory_maps
it = self._proc.memory_maps()
TypeError: memory_maps() takes exactly 2 arguments (1 given)

@checkmypi
Copy link

It may be due to psutil version you are running

try to install psutil from via pip

@grnrk
Copy link
Author

grnrk commented Sep 5, 2014

psutil is installed from pip, version: psutil==2.1.1

@kormoc
Copy link
Contributor

kormoc commented Sep 15, 2014

Upstream has an open bug:
giampaolo/psutil#533

@kormoc kormoc added the bug label Sep 15, 2014
@kormoc kormoc added this to the 3.5.0 milestone Sep 15, 2014
@kormoc
Copy link
Contributor

kormoc commented Sep 16, 2014

Upstream has fixed the bug. Please update your psutil and try again.

@kormoc kormoc closed this as completed Sep 16, 2014
@grnrk
Copy link
Author

grnrk commented Sep 17, 2014

This fixes it. Thanks.

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

No branches or pull requests

3 participants