Permalink
Browse files

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

…ixes a few issues in SNMPCollector.
  • Loading branch information...
1 parent db42e4a commit 7ae38fba4303c14e35eb62c2c73935579eda0def @kormoc kormoc committed Jan 8, 2012
@@ -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()
@@ -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):

0 comments on commit 7ae38fb

Please sign in to comment.