Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2014-09-02 23:36:12,983 unregister_socket(<SNMPGetSocket(0x807079290, closing)>)
- 2014-09-02 23:36:12,984 [334142cc-67ad-5249-8e1c-64900baa76e6] Result {'Interface | Load | In': 1765364718, 'Interface | Load | Out': 1524330918}
- 2014-09-02 23:36:12,984 [sender] Creating channel None
- 2014-09-02 23:36:12,986 UNHANDLED EXCEPTION (2014-09-02 23:36:12.984812)
- Working directory: /opt/noc
- <type 'exceptions.TypeError'>
- expected string or buffer
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/pm/probe/sender.py (Line: 41)
- Function: create_channel
- 34
- 35 def create_channel(self, url):
- 36 with self.create_lock:
- 37 c = self.channels.get(url)
- 38 if c:
- 39 return c
- 40 self.debug("Creating channel %s" % url)
- 41 ==> match = self.rx_url.match(url)
- 42 proto, address, port = match.groups()
- 43 c = getattr(self, "create_%s_channel" % proto)(
- 44 url, address, int(port))
- 45 self.channels[url] = c
- 46 return c
- 47
- Variables:
- url = None
- c = None
- self = <Sender(sender, started 34468683776)>
- ------------------------------------------------------------------------
- File: /opt/noc/pm/probe/sender.py (Line: 58)
- Function: feed
- 51 :param collector: Collector url
- 52 :param metric: metric name
- 53 :param t: timestamp
- 54 :param v: value
- 55 """
- 56 ch = self.channels.get(collector)
- 57 if not ch:
- 58 ==> ch = self.create_channel(collector)
- 59 self.debug("sending %s %s %s %s" % (collector, metric, t, v))
- 60 ch.feed(metric, t, v)
- 61
- 62 def create_line_channel(self, url, address, port):
- 63 return LineProtocolSocket(self, url, self.factory, address, port)
- 64
- Variables:
- ch = None
- self = <Sender(sender, started 34468683776)>
- t = 1409686572
- v = 7428241.057402993
- collector = None
- metric = 'object.MQZW.GOBZ.cat-dzr-vokzal.interface.gi_0-1.interface.load.in'
- ------------------------------------------------------------------------
- File: /opt/noc/pm/probe/metric.py (Line: 48)
- Function: set_value
- 41
- 42 def set_value(self, t, v):
- 43 r = self.cvt(t, v)
- 44 self.last_time = t
- 45 self.last_value = v
- 46 if r is not None:
- 47 r *= self.scale
- 48 ==> self.daemon.sender.feed(self.collector, self.metric, int(t), r)
- 49 # @todo: Check thresholds
- 50
- 51 def reset(self):
- 52 self.last_value = None
- 53 self.last_time = None
- 54
- Variables:
- self = <noc.pm.probe.metric.Metric object at 0x8070744d0>
- r = 7428241.057402993
- t = 1409686572.984611
- v = 1765364718
- ------------------------------------------------------------------------
- File: /opt/noc/pm/probe/task.py (Line: 61)
- Function: run
- 54 if self.default_metric_type:
- 55 result = {self.default_metric_type: result}
- 56 else:
- 57 raise ValueError("Handler must return dict")
- 58 # Feed result
- 59 for m in result:
- 60 if m in self.mdata:
- 61 ==> self.mdata[m].set_value(t, result[m])
- 62 self.debug("Done")
- 63 except:
- 64 error_report()
- 65 self.last_run = self.next_run
- 66 self.next_run = self.get_next_run()
- 67 self.running = False
- Variables:
- self = <Task 334142cc-67ad-5249-8e1c-64900baa76e6>
- m = 'Interface | Load | In'
- t = 1409686572.984611
- result =
- {'Interface | Load | In': 1765364718, 'Interface | Load | Out': 1524330918}
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement