Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes #14, this fixes the SNMPInterfaceCollector inherit issues and f…

…ixes a few issues in SNMPCollector.
  • Loading branch information...
commit 7ae38fba4303c14e35eb62c2c73935579eda0def 1 parent db42e4a
@kormoc kormoc authored
View
7 src/collectors/SNMPCollector/SNMPCollector.py
@@ -12,9 +12,10 @@
import pysnmp.entity.rfc3413.oneliner.cmdgen
import pysnmp.debug
-from metric import Metric
+import diamond.collector
+from diamond.metric import Metric
-class SNMPCollector(Collector):
+class SNMPCollector(diamond.collector.Collector):
"""
SNMPCollector is a special collector for collecting data from using SNMP
"""
@@ -24,7 +25,7 @@ def __init__(self, config, handlers):
Create a new instance of the SNMPCollector class
"""
# Initialize base Class
- Collector.__init__(self, config, handlers)
+ diamond.collector.Collector.__init__(self, config, handlers)
# Initialize SNMP Command Generator
self.snmpCmdGen = pysnmp.entity.rfc3413.oneliner.cmdgen.CommandGenerator()
View
2  src/collectors/SNMPInterfaceCollector/SNMPInterfaceCollector.py
@@ -9,7 +9,7 @@
import socket
import re
-from diamond.collector import SNMPCollector
+from SNMPCollector import SNMPCollector
from diamond.metric import Metric
class SNMPInterfaceCollector(SNMPCollector):
Please sign in to comment.
Something went wrong with that request. Please try again.