Guest User

Untitled

a guest
Sep 2nd, 2014
179
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 2014-09-02 23:36:12,983 unregister_socket(<SNMPGetSocket(0x807079290, closing)>)
  2. 2014-09-02 23:36:12,984 [334142cc-67ad-5249-8e1c-64900baa76e6] Result {'Interface | Load | In': 1765364718, 'Interface | Load | Out': 1524330918}
  3. 2014-09-02 23:36:12,984 [sender] Creating channel None
  4. 2014-09-02 23:36:12,986 UNHANDLED EXCEPTION (2014-09-02 23:36:12.984812)
  5. Working directory: /opt/noc
  6. <type 'exceptions.TypeError'>
  7. expected string or buffer
  8. START OF TRACEBACK
  9. ------------------------------------------------------------------------
  10. File: /opt/noc/pm/probe/sender.py (Line: 41)
  11. Function: create_channel
  12. 34
  13. 35 def create_channel(self, url):
  14. 36 with self.create_lock:
  15. 37 c = self.channels.get(url)
  16. 38 if c:
  17. 39 return c
  18. 40 self.debug("Creating channel %s" % url)
  19. 41 ==> match = self.rx_url.match(url)
  20. 42 proto, address, port = match.groups()
  21. 43 c = getattr(self, "create_%s_channel" % proto)(
  22. 44 url, address, int(port))
  23. 45 self.channels[url] = c
  24. 46 return c
  25. 47
  26. Variables:
  27. url = None
  28. c = None
  29. self = <Sender(sender, started 34468683776)>
  30. ------------------------------------------------------------------------
  31. File: /opt/noc/pm/probe/sender.py (Line: 58)
  32. Function: feed
  33. 51 :param collector: Collector url
  34. 52 :param metric: metric name
  35. 53 :param t: timestamp
  36. 54 :param v: value
  37. 55 """
  38. 56 ch = self.channels.get(collector)
  39. 57 if not ch:
  40. 58 ==> ch = self.create_channel(collector)
  41. 59 self.debug("sending %s %s %s %s" % (collector, metric, t, v))
  42. 60 ch.feed(metric, t, v)
  43. 61
  44. 62 def create_line_channel(self, url, address, port):
  45. 63 return LineProtocolSocket(self, url, self.factory, address, port)
  46. 64
  47. Variables:
  48. ch = None
  49. self = <Sender(sender, started 34468683776)>
  50. t = 1409686572
  51. v = 7428241.057402993
  52. collector = None
  53. metric = 'object.MQZW.GOBZ.cat-dzr-vokzal.interface.gi_0-1.interface.load.in'
  54. ------------------------------------------------------------------------
  55. File: /opt/noc/pm/probe/metric.py (Line: 48)
  56. Function: set_value
  57. 41
  58. 42 def set_value(self, t, v):
  59. 43 r = self.cvt(t, v)
  60. 44 self.last_time = t
  61. 45 self.last_value = v
  62. 46 if r is not None:
  63. 47 r *= self.scale
  64. 48 ==> self.daemon.sender.feed(self.collector, self.metric, int(t), r)
  65. 49 # @todo: Check thresholds
  66. 50
  67. 51 def reset(self):
  68. 52 self.last_value = None
  69. 53 self.last_time = None
  70. 54
  71. Variables:
  72. self = <noc.pm.probe.metric.Metric object at 0x8070744d0>
  73. r = 7428241.057402993
  74. t = 1409686572.984611
  75. v = 1765364718
  76. ------------------------------------------------------------------------
  77. File: /opt/noc/pm/probe/task.py (Line: 61)
  78. Function: run
  79. 54 if self.default_metric_type:
  80. 55 result = {self.default_metric_type: result}
  81. 56 else:
  82. 57 raise ValueError("Handler must return dict")
  83. 58 # Feed result
  84. 59 for m in result:
  85. 60 if m in self.mdata:
  86. 61 ==> self.mdata[m].set_value(t, result[m])
  87. 62 self.debug("Done")
  88. 63 except:
  89. 64 error_report()
  90. 65 self.last_run = self.next_run
  91. 66 self.next_run = self.get_next_run()
  92. 67 self.running = False
  93. Variables:
  94. self = <Task 334142cc-67ad-5249-8e1c-64900baa76e6>
  95. m = 'Interface | Load | In'
  96. t = 1409686572.984611
  97. result =
  98. {'Interface | Load | In': 1765364718, 'Interface | Load | Out': 1524330918}
  99. ------------------------------------------------------------------------
  100. END OF TRACEBACK
RAW Paste Data