Closed williamjoy closed 2 years ago
Diamond version __VERSION__ = 'f2bece462577a7c557be8a9f90f6b9340c3db571..0-github_archive'
f2bece462577a7c557be8a9f90f6b9340c3db571
Adding the Error log
1508834136.81 [MainProcess:87379:ERROR] Failed to initialize Collector: SNMPInterfaceCollector. Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/diamond/utils/classes.py", line 240, in initialize_collector
collector = cls(name=name, configfile=configfile, handlers=handlers)
File "/usr/share/diamond/collectors/snmp/snmp.py", line 39, in __init__
super(SNMPCollector, self).__init__(*args, **kwargs)
TypeError: super(type, obj): obj must be an instance or subtype of type```
Hi @williamjoy,
As this issue was raised a few months ago, do you have a fix for this?
TypeError('super(type, obj): obj must be an instance or subtype of type' with IMP
when initializing SNMPInterfaceCollectorThe collector module loaded as following orders, rely on
os.listdir()
outputI tested on my environment,
snmpraw
collector andiodrivesnmp
always works but notsnmpinterface
, this is probably due tosnmp
module is reloaded by imp, related codes: https://github.com/python-diamond/Diamond/commit/8c7ea91d633caab0158cc5852a6b02f7a794422e#diff-264916192cc0a7d2ccfa0c62630b34e7R159