python-diamond / Diamond

Diamond is a python daemon that collects system metrics and publishes them to Graphite (and others). It is capable of collecting cpu, memory, network, i/o, load and disk metrics. Additionally, it features an API for implementing custom collectors for gathering metrics from almost any source.
http://diamond.readthedocs.org/
MIT License
1.74k stars 601 forks source link

SNMP collector not working #219

Closed harishva closed 7 years ago

harishva commented 9 years ago

[root@graphite collectors]# cat SNMPInterfaceCollector.conf enabled = True path_suffix = "" retries = 3 measure_collector_time = False byte_unit = byte timeout = 5

path = interface interval = 60

[devices] [fw01]] host = 192.168.1.1 port = 161 community = public

here goes logs

Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/diamond/utils/scheduler.py", line 70, in collector_process collector._run() File "/usr/lib/python2.6/site-packages/diamond/collector.py", line 472, in _run self.collect() File "/usr/lib/python2.6/site-packages/diamond/collector.py", line 366, in collect raise NotImplementedError() NotImplementedError [2015-07-08 13:56:56,318] [MainThread] Collector failed! Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/diamond/utils/scheduler.py", line 70, in collector_process collector._run() File "/usr/lib/python2.6/site-packages/diamond/collector.py", line 472, in _run self.collect() File "/usr/lib/python2.6/site-packages/diamond/collector.py", line 366, in collect raise NotImplementedError() NotImplementedError [2015-07-08 13:56:58,332] [MainThread] Collector failed! Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/diamond/utils/scheduler.py", line 70, in collector_process collector._run() File "/usr/lib/python2.6/site-packages/diamond/collector.py", line 472, in _run self.collect() File "/usr/lib/python2.6/site-packages/diamond/collector.py", line 366, in collect raise NotImplementedError() NotImplementedError

superjeb commented 9 years ago

I'm having the same issue.

Is there a fix?

superjeb commented 9 years ago

NotImplementedError [2015-07-30 22:17:29,256] [MainThread] Collector failed! Traceback (most recent call last): File "/opt/diamond/lib/python2.7/site-packages/diamond/utils/scheduler.py", line 70, in collector_process collector._run() File "/opt/diamond/lib/python2.7/site-packages/diamond/collector.py", line 472, in _run self.collect() File "/opt/diamond/lib/python2.7/site-packages/diamond/collector.py", line 366, in collect raise NotImplementedError() NotImplementedError [2015-07-30 22:17:30,756] [MainThread] Collector failed! Traceback (most recent call last): File "/opt/diamond/lib/python2.7/site-packages/diamond/utils/scheduler.py", line 70, in collector_process collector._run() File "/opt/diamond/lib/python2.7/site-packages/diamond/collector.py", line 472, in _run self.collect() File "/opt/diamond/lib/python2.7/site-packages/diamond/collector.py", line 366, in collect raise NotImplementedError()

jaykumar2001 commented 8 years ago

+1

jrpaz commented 8 years ago

+2

frlinux commented 8 years ago

+3

Is there any way we can help on debugging/implementing this?

bmfurtado commented 8 years ago

I've created this pull request with an initial version of what could fix this... needs feedback and testing! https://github.com/python-diamond/Diamond/pull/310

bakerkj commented 8 years ago

I was having this same issue. Pulling the change above seems to address it.

Thanks

eugenepaniot commented 8 years ago

It works! Thanks.

bakerkj commented 8 years ago

Is there anything holding up pulling this to master?

krbaker commented 8 years ago

works for me too

phrend commented 8 years ago

I'm trying to get SNMPInterfaceCollector working and am getting the same errors. I tried using https://raw.githubusercontent.com/bmfurtado/Diamond/%23219/src/collectors/snmp/snmp.py but still get the error. I'm totally open to the possibility that I'm doing something else wrong!

(using diamond==4.0.195 and pysnmp==4.3.2)

kstaniek commented 8 years ago

+1

josegonzalez commented 7 years ago

Closed by #310. Thanks for the pull request!