Advertisement
Guest User

Untitled

a guest
Nov 12th, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.26 KB | None | 0 0
  1. 2014-11-12 16:39:11,320 [noc.lib.nbsocket.basesocket] [SNMPGetSocket 192.168.82.129] Initializing socket
  2. 2014-11-12 16:39:11,321 [noc.lib.nbsocket.basesocket] [SNMPGetSocket 89.189.25.122] Initializing socket
  3. 2014-11-12 16:39:11,321 [noc.lib.nbsocket.basesocket] [SNMPGetSocket 195.98.32.89] Initializing socket
  4. 2014-11-12 16:39:11,322 [noc.lib.nbsocket.basesocket] [SNMPGetSocket 192.168.87.210] Initializing socket
  5. 2014-11-12 16:39:11,322 [noc.lib.nbsocket.basesocket] [SNMPGetSocket 195.98.58.40] Initializing socket
  6. 2014-11-12 16:39:11,323 [noc.lib.nbsocket.basesocket] [SNMPGetSocket 195.98.32.68] Closing socket
  7. 2014-11-12 16:39:11,323 [noc.pm.probe.io.base] SNMP GET RESULT [195.98.32.68] {'Interface | Discards | In': '1.3.6.1.2.1.2.2.1.13.36', 'Interface | Discards | Out': '1.3.6.1.2.1.2.2.1.19.36'} {'Interface | Discards | In': 0, 'Interface | Discards | Out': 0}
  8. 2014-11-12 16:39:11,324 [noc.lib.nbsocket.socketfactory] Unregister socket SNMPGetSocket 195.98.32.68
  9. 2014-11-12 16:39:11,324 [noc.pm.probe.task] [58d5e608-eed6-5c27-8033-022f6f831ce7] Result {'Interface | Discards | In': 0, 'Interface | Discards | Out': 0}
  10. 2014-11-12 16:39:11,325 [noc.pm.probe.task] [58d5e608-eed6-5c27-8033-022f6f831ce7] Done
  11. 2014-11-12 16:39:11,326 [noc.lib.nbsocket.basesocket] [SNMPGetSocket 192.168.82.129] Closing socket
  12. 2014-11-12 16:39:11,326 [noc.pm.probe.io.base] SNMP GET RESULT [192.168.82.129] {'Interface | Load | In': '1.3.6.1.2.1.31.1.1.1.6.10116', 'Interface | Load | Out': '1.3.6.1.2.1.31.1.1.1.10.10116'} {'Interface | Load | In': 15684453, 'Interface | Load | Out': 23807367}
  13. 2014-11-12 16:39:11,327 [noc.lib.nbsocket.socketfactory] Unregister socket SNMPGetSocket 192.168.82.129
  14. 2014-11-12 16:39:11,328 [noc.pm.probe.task] [84f68750-83ac-5a88-89e5-18374a928d2c] Result {'Interface | Load | In': 15684453, 'Interface | Load | Out': 23807367}
  15. 2014-11-12 16:39:11,329 [noc.lib.nbsocket.basesocket] [LineProtocolSocket 195.98.35.2:2003] Feeding object.cat-proletarka.interface.gi_0-16.interface.load.in 1415799551 558.908168565
  16. 2014-11-12 16:39:11,330 [noc.lib.nbsocket.basesocket] [SNMPGetSocket 192.168.87.210] Closing socket
  17. 2014-11-12 16:39:11,330 [noc.pm.probe.io.base] SNMP GET RESULT [192.168.87.210] {'Interface | Load | In': '1.3.6.1.2.1.31.1.1.1.6.10009', 'Interface | Load | Out': '1.3.6.1.2.1.31.1.1.1.10.10009'} {'Interface | Load | In': 1098563805, 'Interface | Load | Out': 7578277075}
  18. 2014-11-12 16:39:11,331 [noc.lib.nbsocket.basesocket] [LineProtocolSocket 195.98.35.2:2003] Feeding object.cat-proletarka.interface.gi_0-16.interface.load.out 1415799551 1324.22341483
  19. 2014-11-12 16:39:11,331 [noc.lib.nbsocket.socketfactory] Unregister socket SNMPGetSocket 192.168.87.210
  20. 2014-11-12 16:39:11,331 [noc.pm.probe.task] [240d1478-78ec-5208-9c86-f0335ba0db49] Result {'Interface | Load | In': 1098563805, 'Interface | Load | Out': 7578277075}
  21. 2014-11-12 16:39:11,332 [noc.pm.probe.task] [84f68750-83ac-5a88-89e5-18374a928d2c] Done
  22. 2014-11-12 16:39:11,333 [noc.lib.nbsocket.basesocket] [SNMPGetSocket 195.98.32.89] Closing socket
  23. 2014-11-12 16:39:11,333 [noc.pm.probe.io.base] SNMP GET RESULT [195.98.32.89] {'Interface | Discards | In': '1.3.6.1.2.1.2.2.1.13.45', 'Interface | Discards | Out': '1.3.6.1.2.1.2.2.1.19.45'} {'Interface | Discards | In': 0, 'Interface | Discards | Out': 0}
  24. 2014-11-12 16:39:11,334 [noc.lib.nbsocket.basesocket] [LineProtocolSocket 195.98.35.2:2003] Feeding object.cat-7nebo-1.interface.fa_0-9.interface.load.in 1415799551 536.369606276
  25. 2014-11-12 16:39:11,335 [noc.lib.nbsocket.socketfactory] Unregister socket SNMPGetSocket 195.98.32.89
  26. 2014-11-12 16:39:11,335 [noc.pm.probe.task] [50081f60-65d8-5af4-8b29-b74fb9ec13be] Result {'Interface | Discards | In': 0, 'Interface | Discards | Out': 0}
  27. 2014-11-12 16:39:11,335 [noc.pm.probe.sender] Flushing channels 1 channels
  28. 2014-11-12 16:39:11,337 [noc.pm.probe.task] [50081f60-65d8-5af4-8b29-b74fb9ec13be] Done
  29. 2014-11-12 16:39:11,337 [noc.lib.nbsocket.basesocket] [SNMPGetSocket 195.98.58.40] Closing socket
  30. 2014-11-12 16:39:11,338 [noc.lib.nbsocket.basesocket] [LineProtocolSocket 195.98.35.2:2003] Sending 3 metrics
  31. 2014-11-12 16:39:11,338 [noc.pm.probe.io.base] SNMP GET RESULT [195.98.58.40] {'Interface | Load | In': '1.3.6.1.2.1.31.1.1.1.6.10008', 'Interface | Load | Out': '1.3.6.1.2.1.31.1.1.1.10.10008'} {'Interface | Load | In': 2438339434, 'Interface | Load | Out': 72499634354}
  32. 2014-11-12 16:39:11,339 [noc.lib.nbsocket.socketfactory] Unregister socket SNMPGetSocket 195.98.58.40
  33. 2014-11-12 16:39:11,339 [noc.lib.nbsocket.basesocket] [LineProtocolSocket 195.98.35.2:2003] Feeding object.cat-7nebo-1.interface.fa_0-9.interface.load.out 1415799551 525.693459654
  34. 2014-11-12 16:39:11,340 [noc.pm.probe.task] [d4a855c0-97fb-5cea-b08a-d354dbb5939c] Result {'Interface | Load | In': 2438339434, 'Interface | Load | Out': 72499634354}
  35. 2014-11-12 16:39:11,341 [noc.pm.probe.task] [240d1478-78ec-5208-9c86-f0335ba0db49] Done
  36. 2014-11-12 16:39:11,341 [noc.pm.probe.sender] Flushing channels 1 channels
  37. 2014-11-12 16:39:11,342 [noc.pm.probe.io.base] SNMP GET RESULT [89.189.25.122] {'Interface | Load | In': '1.3.6.1.2.1.31.1.1.1.6.2', 'Interface | Load | Out': '1.3.6.1.2.1.31.1.1.1.10.2'} {'Interface | Load | In': [1], 'Interface | Load | Out': [1]}
  38. 2014-11-12 16:39:11,342 [noc.lib.nbsocket.basesocket] [SNMPGetSocket 89.189.25.122] Closing socket
  39. 2014-11-12 16:39:11,343 [noc.lib.nbsocket.basesocket] [LineProtocolSocket 195.98.35.2:2003] Sending 1 metrics
  40. 2014-11-12 16:39:11,343 [noc.pm.probe.task] [27d9abb0-954c-5bf7-b3c9-42e25dd767bd] Result {'Interface | Load | In': [1], 'Interface | Load | Out': [1]}
  41. 2014-11-12 16:39:11,344 [noc.lib.nbsocket.socketfactory] Unregister socket SNMPGetSocket 89.189.25.122
  42. 2014-11-12 16:39:11,344 [noc.lib.nbsocket.basesocket] [LineProtocolSocket 195.98.35.2:2003] Feeding object.cat-r192-2.interface.fa_0-8.interface.load.in 1415799551 1633.76328116
  43. 2014-11-12 16:39:11,346 [noc.pm.probe.sender] Flushing channels 1 channels
  44. 2014-11-12 16:39:11,348 [noc.lib.nbsocket.basesocket] [LineProtocolSocket 195.98.35.2:2003] Sending 1 metrics
  45. 2014-11-12 16:39:11,349 [noc.lib.debug] UNHANDLED EXCEPTION (2014-11-12 16:39:11.345287)
  46. Working directory: /opt/noc
  47. <type 'exceptions.TypeError'>
  48. unsupported operand type(s) for -: 'list' and 'list'
  49. START OF TRACEBACK
  50. ------------------------------------------------------------------------
  51. File: /opt/noc/pm/probe/metric.py (Line: 99)
  52. Function: convert_counter
  53. 92 # Repeat last result, even if None
  54. 93 return self.last_result
  55. 94 else:
  56. 95 # Counter wrap
  57. 96 return d_wrap / (t - self.last_time)
  58. 97 else:
  59. 98 # Normal counter increment
  60. 99 ==> return (v - self.last_value) / (t - self.last_time)
  61. 100
  62. 101 def convert_derive(self, t, v):
  63. 102 if not self.last_time or not self.last_value:
  64. 103 return None
  65. 104 return (v - self.last_value) / (t - self.last_time)
  66. 105
  67. Variables:
  68. self = <noc.pm.probe.metric.Metric object at 0x7f92e8a07b50>
  69. t = 1415799551.345135
  70. v = [1]
  71. ------------------------------------------------------------------------
  72. File: /opt/noc/pm/probe/metric.py (Line: 54)
  73. Function: set_value
  74. 47 self.scale = scale
  75. 48 if convert != self.convert:
  76. 49 self.reset()
  77. 50 self.convert = convert
  78. 51 self.cvt = getattr(self, "convert_%s" % convert)
  79. 52
  80. 53 def set_value(self, t, v):
  81. 54 ==> r = self.cvt(t, v)
  82. 55 self.last_time = t
  83. 56 self.last_value = v
  84. 57 self.last_result = r
  85. 58 if r is not None:
  86. 59 r *= self.scale
  87. 60 self.daemon.sender.feed(self.policy, self.metric, int(t), r)
  88. Variables:
  89. self = <noc.pm.probe.metric.Metric object at 0x7f92e8a07b50>
  90. t = 1415799551.345135
  91. v = [1]
  92. ------------------------------------------------------------------------
  93. File: /opt/noc/pm/probe/task.py (Line: 68)
  94. Function: run
  95. 61 self.logger.error("Handler must return dict. Returned: %s", result)
  96. 62 raise ValueError("Handler must return dict")
  97. 63 # Feed result
  98. 64 for m in result:
  99. 65 if m in self.mdata:
  100. 66 v = result[m]
  101. 67 if v is not None:
  102. 68 ==> self.mdata[m].set_value(t, v)
  103. 69 self.logger.debug("Done")
  104. 70 except:
  105. 71 error_report()
  106. 72 self.last_run = self.next_run
  107. 73 self.next_run = self.get_next_run()
  108. 74 self.running = False
  109. Variables:
  110. result = {'Interface | Load | In': [1], 'Interface | Load | Out': [1]}
  111. self = <Task 27d9abb0-954c-5bf7-b3c9-42e25dd767bd>
  112. m = 'Interface | Load | In'
  113. t = 1415799551.345135
  114. v = [1]
  115. ------------------------------------------------------------------------
  116. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement