Advertisement
Guest User

Untitled

a guest
Aug 4th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.02 KB | None | 0 0
  1. $ ./discovery.php -h piweather.quantum.lan -d -m sensors
  2. -bash: ./discovery.php: No such file or directory
  3. chris@velocity:/opt/librenms/includes$ cd ..
  4. chris@velocity:/opt/librenms$ ./discovery.php -h piweather.quantum.lan -d -m sensors
  5. LibreNMS Discovery
  6. ===================================
  7. Version info:
  8. Commit SHA: 0ff847a9b3fad5a5766c5da9aca9d3cb453360f2
  9. Commit Date: 1501783261
  10. DB Schema: 200
  11. PHP: 7.0.15-0ubuntu0.16.04.4
  12. MySQL: 5.7.19-0ubuntu0.16.04.1
  13. RRDTool: 1.5.5
  14. SNMP: NET-SNMP 5.7.3
  15. ==================================DEBUG!
  16. SQL[SELECT * FROM `devices` WHERE status = 1 AND disabled = 0 AND `hostname` LIKE 'piweather.quantum.lan' ORDER BY device_id DESC]
  17. SQL[SELECT * FROM devices_attribs WHERE `device_id` = '9']
  18. piweather.quantum.lan 9 linux SQL[INSERT INTO `device_perf` (`xmt`,`rcv`,`loss`,`min`,`max`,`avg`,`device_id`,`timestamp`) VALUES ('3','3','0','68.1','86.6','77.2','9',NOW())]
  19. SNMP Check response code: 0
  20. SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '9' AND `attrib_type` = 'poll_mib' ]
  21.  
  22. Modules status: Global+ OS Device
  23. #### Load disco module sensors ####
  24. Pre-cache linux: RaspberryPi SNMP[/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -OQUn -M /opt/librenms/mibs:/opt/librenms/mibs/supermicro:/opt/librenms/mibs/dell -t 10 udp:HOSTNAME:161 .1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121]
  25. .*.4.1.8*.*.*.*.121.1 = "44.4"
  26. .*.4.1.8*.*.*.*.121.2 = "1.2000"
  27. .*.4.1.8*.*.*.*.121.3 = "1.2000"
  28. .*.4.1.8*.*.*.*.121.4 = "1.2000"
  29. .*.4.1.8*.*.*.*.121.5 = "1.2250"
  30. .*.4.1.8*.*.*.*.121.6 = "700000000"
  31. .*.4.1.8*.*.*.*.121.7 = "250000000"
  32. .*.4.1.8*.*.*.*.121.8 = "enabled"
  33. .*.4.1.8*.*.*.*.121.9 = "disabled"
  34. .*.4.1.8*.*.*.*.121.10 = "disabled"
  35. .*.4.1.8*.*.*.*.121.11 = "enabled"
  36. .*.4.1.8*.*.*.*.121.12 = "enabled"
  37. .*.4.1.8*.*.*.*.121.13 = "WMV9=disabled"
  38. .*.4.1.8*.*.*.*.121.14 = "H264=2"
  39. .*.4.1.8*.*.*.*.121.15 = "MPG2=disabled"
  40. .*.4.1.8*.*.*.*.121.16 = "WVC1=disabled"
  41. .*.4.1.8*.*.*.*.121.17 = "MPG4=2"
  42. .*.4.1.8*.*.*.*.121.18 = "MJPG=2"
  43. .*.4.1.8*.*.*.*.121.19 = "WMV9=disabled"
  44. .*.4.1.8*.*.*.*.121.20 = "WMV9=disabled"
  45. .*.4.1.8*.*.*.*.121.21 = "H264=enabled"
  46. .*.4.1.8*.*.*.*.121.22 = "MPG2=1"
  47. .*.4.1.8*.*.*.*.121.23 = "WVC1=1"
  48. .*.4.1.8*.*.*.*.121.24 = "MPG4=enabled"
  49. .*.4.1.8*.*.*.*.121.25 = "MJPG=enabled"
  50. .*.4.1.8*.*.*.*.121.26 = "WMV9=1"
  51.  
  52.  
  53. Array
  54. (
  55. [raspberry_pi_sensors] => Array
  56. (
  57. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.1] => Array
  58. (
  59. [] => 44.4
  60. )
  61.  
  62. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.2] => Array
  63. (
  64. [] => 1.2000
  65. )
  66.  
  67. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.3] => Array
  68. (
  69. [] => 1.2000
  70. )
  71.  
  72. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.4] => Array
  73. (
  74. [] => 1.2000
  75. )
  76.  
  77. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.5] => Array
  78. (
  79. [] => 1.2250
  80. )
  81.  
  82. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.6] => Array
  83. (
  84. [] => 700000000
  85. )
  86.  
  87. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.7] => Array
  88. (
  89. [] => 250000000
  90. )
  91.  
  92. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.8] => Array
  93. (
  94. [] => enabled
  95. )
  96.  
  97. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.9] => Array
  98. (
  99. [] => disabled
  100. )
  101.  
  102. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.10] => Array
  103. (
  104. [] => disabled
  105. )
  106.  
  107. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.11] => Array
  108. (
  109. [] => enabled
  110. )
  111.  
  112. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.12] => Array
  113. (
  114. [] => enabled
  115. )
  116.  
  117. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.13] => Array
  118. (
  119. [] => WMV9=disabled
  120. )
  121.  
  122. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.14] => Array
  123. (
  124. [] => H264=2
  125. )
  126.  
  127. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.15] => Array
  128. (
  129. [] => MPG2=disabled
  130. )
  131.  
  132. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.16] => Array
  133. (
  134. [] => WVC1=disabled
  135. )
  136.  
  137. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.17] => Array
  138. (
  139. [] => MPG4=2
  140. )
  141.  
  142. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.18] => Array
  143. (
  144. [] => MJPG=2
  145. )
  146.  
  147. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.19] => Array
  148. (
  149. [] => WMV9=disabled
  150. )
  151.  
  152. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.20] => Array
  153. (
  154. [] => WMV9=disabled
  155. )
  156.  
  157. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.21] => Array
  158. (
  159. [] => H264=enabled
  160. )
  161.  
  162. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.22] => Array
  163. (
  164. [] => MPG2=1
  165. )
  166.  
  167. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.23] => Array
  168. (
  169. [] => WVC1=1
  170. )
  171.  
  172. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.24] => Array
  173. (
  174. [] => MPG4=enabled
  175. )
  176.  
  177. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.25] => Array
  178. (
  179. [] => MJPG=enabled
  180. )
  181.  
  182. [1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.26] => Array
  183. (
  184. [] => WMV9=1
  185. )
  186.  
  187. )
  188.  
  189. )
  190. ENTITY-SENSOR: Caching OIDs: entPhysicalDescrSNMP[/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -OQUs -m CISCO-ENTITY-SENSOR-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/supermicro:/opt/librenms/mibs/dell -t 10 udp:HOSTNAME:161 entPhysicalDescr]
  191. entPhysicalDescr = No Such Object available on this agent at this OID
  192.  
  193. entPhysicalNameSNMP[/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -OQUs -m CISCO-ENTITY-SENSOR-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/supermicro:/opt/librenms/mibs/dell -t 10 udp:HOSTNAME:161 entPhysicalName]
  194. entPhysicalName = No Such Object available on this agent at this OID
  195.  
  196. entPhySensorTypeSNMP[/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -OQUs -m ENTITY-SENSOR-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/supermicro:/opt/librenms/mibs/dell -t 10 udp:HOSTNAME:161 entPhySensorType]
  197. entPhySensorType = No Such Object available on this agent at this OID
  198.  
  199. entPhySensorScaleSNMP[/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -OQUs -m ENTITY-SENSOR-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/supermicro:/opt/librenms/mibs/dell -t 10 udp:HOSTNAME:161 entPhySensorScale]
  200. entPhySensorScale = No Such Object available on this agent at this OID
  201.  
  202. entPhySensorPrecisionSNMP[/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -OQUs -m ENTITY-SENSOR-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/supermicro:/opt/librenms/mibs/dell -t 10 udp:HOSTNAME:161 entPhySensorPrecision]
  203. entPhySensorPrecision = No Such Object available on this agent at this OID
  204.  
  205. entPhySensorValueSNMP[/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -OQUs -m ENTITY-SENSOR-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/supermicro:/opt/librenms/mibs/dell -t 10 udp:HOSTNAME:161 entPhySensorValue]
  206. entPhySensorValue = No Such Object available on this agent at this OID
  207.  
  208.  
  209. SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '9' AND `attrib_type` = 'ipmi_hostname' ]
  210. SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class='voltage' AND S.device_id = D.device_id AND D.device_id = '9' AND S.poller_type = 'ipmi']
  211. SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class='temperature' AND S.device_id = D.device_id AND D.device_id = '9' AND S.poller_type = 'ipmi']
  212. SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class='fanspeed' AND S.device_id = D.device_id AND D.device_id = '9' AND S.poller_type = 'ipmi']
  213. SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class='power' AND S.device_id = D.device_id AND D.device_id = '9' AND S.poller_type = 'ipmi']
  214. Airflow: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class='airflow' AND S.device_id = D.device_id AND D.device_id = '9' AND S.poller_type = 'snmp']
  215.  
  216. Current: SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -Oqv -M /opt/librenms/mibs:/opt/librenms/mibs/supermicro:/opt/librenms/mibs/dell -t 10 udp:HOSTNAME:161 .1.3.6.1.2.1.1.1.0]
  217. "Linux piweather 4.1.19+ #858 Tue Mar 15 15:52:03 GMT 2016 armv6l"
  218.  
  219. SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class='current' AND S.device_id = D.device_id AND D.device_id = '9' AND S.poller_type = 'snmp']
  220.  
  221. Charge: SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -Oqv -M /opt/librenms/mibs:/opt/librenms/mibs/supermicro:/opt/librenms/mibs/dell -t 10 udp:HOSTNAME:161 .1.3.6.1.2.1.1.1.0]
  222. "Linux piweather 4.1.19+ #858 Tue Mar 15 15:52:03 GMT 2016 armv6l"
  223.  
  224. SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class='charge' AND S.device_id = D.device_id AND D.device_id = '9' AND S.poller_type = 'snmp']
  225.  
  226. Dbm: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class='dbm' AND S.device_id = D.device_id AND D.device_id = '9' AND S.poller_type = 'snmp']
  227.  
  228. Fanspeed: SNMP[/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -OsqnU -m LM-SENSORS-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/supermicro:/opt/librenms/mibs/dell -t 10 udp:HOSTNAME:161 lmFanSensorsDevice]
  229. .*.4.1.2*.1.2 No Such Instance currently exists at this OID
  230.  
  231.  
  232. SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class='fanspeed' AND S.device_id = D.device_id AND D.device_id = '9' AND S.poller_type = 'snmp']
  233.  
  234. Frequency: Discover sensor: 1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.6, 6, raspberry_freq, ARM, snmp, 1, 1, , 700000000
  235. SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= 'snmp' AND `sensor_class` = 'frequency' AND `device_id` = '9' AND sensor_type = 'raspberry_freq' AND `sensor_index` = '6']
  236. SQL[SELECT * FROM `sensors` WHERE `sensor_class` = 'frequency' AND `device_id` = '9' AND `sensor_type` = 'raspberry_freq' AND `sensor_index` = '6']
  237. .Discover sensor: 1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.7, 7, raspberry_freq, Core, snmp, 1, 1, , 250000000
  238. SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= 'snmp' AND `sensor_class` = 'frequency' AND `device_id` = '9' AND sensor_type = 'raspberry_freq' AND `sensor_index` = '7']
  239. SQL[SELECT * FROM `sensors` WHERE `sensor_class` = 'frequency' AND `device_id` = '9' AND `sensor_type` = 'raspberry_freq' AND `sensor_index` = '7']
  240. .SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class='raspberry_freq' AND S.device_id = D.device_id AND D.device_id = '9' AND S.poller_type = 'snmp']
  241.  
  242. Humidity: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class='humidity' AND S.device_id = D.device_id AND D.device_id = '9' AND S.poller_type = 'snmp']
  243.  
  244. Load: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class='load' AND S.device_id = D.device_id AND D.device_id = '9' AND S.poller_type = 'snmp']
  245.  
  246. Power: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class='power' AND S.device_id = D.device_id AND D.device_id = '9' AND S.poller_type = 'snmp']
  247.  
  248. Runtime: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class='runtime' AND S.device_id = D.device_id AND D.device_id = '9' AND S.poller_type = 'snmp']
  249.  
  250. Signal: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class='signal' AND S.device_id = D.device_id AND D.device_id = '9' AND S.poller_type = 'snmp']
  251.  
  252. State: SQL[SELECT `state_index_id` FROM state_indexes WHERE state_name = 'raspberry_codec' LIMIT 1]
  253. SQL[SELECT * FROM `state_translations` WHERE `state_index_id` = '12']
  254. Discover sensor: 1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.8, 8, raspberry_codec, H264 codec, snmp, 1, 1, 8, enabled
  255. SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= 'snmp' AND `sensor_class` = 'state' AND `device_id` = '9' AND sensor_type = 'raspberry_codec' AND `sensor_index` = '8']
  256. SQL[SELECT * FROM `sensors` WHERE `sensor_class` = 'state' AND `device_id` = '9' AND `sensor_type` = 'raspberry_codec' AND `sensor_index` = '8']
  257. .SQL[SELECT sensor_id FROM `sensors` WHERE `sensor_class` = 'state' AND `device_id` = '9' AND `sensor_type` = 'raspberry_codec' AND `sensor_index` = '8']
  258. SQL[SELECT state_index_id FROM `state_indexes` WHERE `state_name` = 'raspberry_codec']
  259. SQL[INSERT INTO `sensors_to_state_indexes` (`sensor_id`,`state_index_id`) VALUES ('34','12')]
  260. SQL[SELECT `state_index_id` FROM state_indexes WHERE state_name = 'raspberry_codec' LIMIT 1]
  261. SQL[SELECT * FROM `state_translations` WHERE `state_index_id` = '12']
  262. Discover sensor: 1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.9, 9, raspberry_codec, MPG2 codec, snmp, 1, 1, 9, disabled
  263. SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= 'snmp' AND `sensor_class` = 'state' AND `device_id` = '9' AND sensor_type = 'raspberry_codec' AND `sensor_index` = '9']
  264. SQL[SELECT * FROM `sensors` WHERE `sensor_class` = 'state' AND `device_id` = '9' AND `sensor_type` = 'raspberry_codec' AND `sensor_index` = '9']
  265. .SQL[SELECT sensor_id FROM `sensors` WHERE `sensor_class` = 'state' AND `device_id` = '9' AND `sensor_type` = 'raspberry_codec' AND `sensor_index` = '9']
  266. SQL[SELECT state_index_id FROM `state_indexes` WHERE `state_name` = 'raspberry_codec']
  267. SQL[INSERT INTO `sensors_to_state_indexes` (`sensor_id`,`state_index_id`) VALUES ('35','12')]
  268. SQL[SELECT `state_index_id` FROM state_indexes WHERE state_name = 'raspberry_codec' LIMIT 1]
  269. SQL[SELECT * FROM `state_translations` WHERE `state_index_id` = '12']
  270. Discover sensor: 1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.10, 10, raspberry_codec, WVC1 codec, snmp, 1, 1, 10, disabled
  271. SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= 'snmp' AND `sensor_class` = 'state' AND `device_id` = '9' AND sensor_type = 'raspberry_codec' AND `sensor_index` = '10']
  272. SQL[SELECT * FROM `sensors` WHERE `sensor_class` = 'state' AND `device_id` = '9' AND `sensor_type` = 'raspberry_codec' AND `sensor_index` = '10']
  273. .SQL[SELECT sensor_id FROM `sensors` WHERE `sensor_class` = 'state' AND `device_id` = '9' AND `sensor_type` = 'raspberry_codec' AND `sensor_index` = '10']
  274. SQL[SELECT state_index_id FROM `state_indexes` WHERE `state_name` = 'raspberry_codec']
  275. SQL[INSERT INTO `sensors_to_state_indexes` (`sensor_id`,`state_index_id`) VALUES ('36','12')]
  276. SQL[SELECT `state_index_id` FROM state_indexes WHERE state_name = 'raspberry_codec' LIMIT 1]
  277. SQL[SELECT * FROM `state_translations` WHERE `state_index_id` = '12']
  278. Discover sensor: 1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.11, 11, raspberry_codec, MPG4 codec, snmp, 1, 1, 11, enabled
  279. SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= 'snmp' AND `sensor_class` = 'state' AND `device_id` = '9' AND sensor_type = 'raspberry_codec' AND `sensor_index` = '11']
  280. SQL[SELECT * FROM `sensors` WHERE `sensor_class` = 'state' AND `device_id` = '9' AND `sensor_type` = 'raspberry_codec' AND `sensor_index` = '11']
  281. .SQL[SELECT sensor_id FROM `sensors` WHERE `sensor_class` = 'state' AND `device_id` = '9' AND `sensor_type` = 'raspberry_codec' AND `sensor_index` = '11']
  282. SQL[SELECT state_index_id FROM `state_indexes` WHERE `state_name` = 'raspberry_codec']
  283. SQL[INSERT INTO `sensors_to_state_indexes` (`sensor_id`,`state_index_id`) VALUES ('37','12')]
  284. SQL[SELECT `state_index_id` FROM state_indexes WHERE state_name = 'raspberry_codec' LIMIT 1]
  285. SQL[SELECT * FROM `state_translations` WHERE `state_index_id` = '12']
  286. Discover sensor: 1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.12, 12, raspberry_codec, MJPG codec, snmp, 1, 1, 12, enabled
  287. SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= 'snmp' AND `sensor_class` = 'state' AND `device_id` = '9' AND sensor_type = 'raspberry_codec' AND `sensor_index` = '12']
  288. SQL[SELECT * FROM `sensors` WHERE `sensor_class` = 'state' AND `device_id` = '9' AND `sensor_type` = 'raspberry_codec' AND `sensor_index` = '12']
  289. .SQL[SELECT sensor_id FROM `sensors` WHERE `sensor_class` = 'state' AND `device_id` = '9' AND `sensor_type` = 'raspberry_codec' AND `sensor_index` = '12']
  290. SQL[SELECT state_index_id FROM `state_indexes` WHERE `state_name` = 'raspberry_codec']
  291. SQL[INSERT INTO `sensors_to_state_indexes` (`sensor_id`,`state_index_id`) VALUES ('38','12')]
  292. SQL[SELECT `state_index_id` FROM state_indexes WHERE state_name = 'raspberry_codec' LIMIT 1]
  293. SQL[SELECT * FROM `state_translations` WHERE `state_index_id` = '12']
  294. Discover sensor: 1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.13, 13, raspberry_codec, WMV9 codec, snmp, 1, 1, 13, WMV9=disabled
  295. SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= 'snmp' AND `sensor_class` = 'state' AND `device_id` = '9' AND sensor_type = 'raspberry_codec' AND `sensor_index` = '13']
  296. SQL[SELECT * FROM `sensors` WHERE `sensor_class` = 'state' AND `device_id` = '9' AND `sensor_type` = 'raspberry_codec' AND `sensor_index` = '13']
  297. .SQL[SELECT sensor_id FROM `sensors` WHERE `sensor_class` = 'state' AND `device_id` = '9' AND `sensor_type` = 'raspberry_codec' AND `sensor_index` = '13']
  298. SQL[SELECT state_index_id FROM `state_indexes` WHERE `state_name` = 'raspberry_codec']
  299. SQL[INSERT INTO `sensors_to_state_indexes` (`sensor_id`,`state_index_id`) VALUES ('39','12')]
  300. Array
  301. (
  302. [raspberry_codec] => Array
  303. (
  304. [8] => 1
  305. [9] => 1
  306. [10] => 1
  307. [11] => 1
  308. [12] => 1
  309. [13] => 1
  310. )
  311.  
  312. )
  313. SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class='state' AND S.device_id = D.device_id AND D.device_id = '9' AND S.poller_type = 'snmp']
  314. 8 -> raspberry_codec
  315. 9 -> raspberry_codec
  316. 10 -> raspberry_codec
  317. 11 -> raspberry_codec
  318. 12 -> raspberry_codec
  319. 13 -> raspberry_codec
  320.  
  321. Temperature: SNMP[/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -Osqn -m LM-SENSORS-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/supermicro:/opt/librenms/mibs/dell -t 10 udp:HOSTNAME:161 lmTempSensorsDevice]
  322. .*.4.1.2*.1.2 No Such Instance currently exists at this OID
  323.  
  324.  
  325. SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -Oqve -M /opt/librenms/mibs:/opt/librenms/mibs/supermicro:/opt/librenms/mibs/dell -t 10 udp:HOSTNAME:161 .1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.1]
  326. "44.4"
  327.  
  328. Discover sensor: .1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.1, 1, raspberry_temp, CPU Temp, snmp, 1, 1, , 44.4
  329. SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= 'snmp' AND `sensor_class` = 'temperature' AND `device_id` = '9' AND sensor_type = 'raspberry_temp' AND `sensor_index` = '1']
  330. SQL[SELECT * FROM `sensors` WHERE `sensor_class` = 'temperature' AND `device_id` = '9' AND `sensor_type` = 'raspberry_temp' AND `sensor_index` = '1']
  331. .SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -Oqv -M /opt/librenms/mibs:/opt/librenms/mibs/supermicro:/opt/librenms/mibs/dell -t 10 udp:HOSTNAME:161 .1.3.6.1.2.1.1.1.0]
  332. "Linux piweather 4.1.19+ #858 Tue Mar 15 15:52:03 GMT 2016 armv6l"
  333.  
  334. SNMP[/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -Osqn -m SUPERMICRO-HEALTH-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/supermicro:/opt/librenms/mibs/dell -t 10 udp:HOSTNAME:161 .1.3.6.1.4.1.10876.2.1.1.1.1.3]
  335. .*.4.1.108*.1.1.3 No Such Object available on this agent at this OID
  336.  
  337. SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class='raspberry_temp' AND S.device_id = D.device_id AND D.device_id = '9' AND S.poller_type = 'snmp']
  338.  
  339. Voltage: SNMP[/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -OsqnU -m LM-SENSORS-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/supermicro:/opt/librenms/mibs/dell -t 10 udp:HOSTNAME:161 lmVoltSensorsDevice]
  340. .*.4.1.2*.1.2 No Such Instance currently exists at this OID
  341.  
  342.  
  343. Discover sensor: 1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.2, 2, rasbperry_volts, Core, snmp, 1, 1, , 1.2000
  344. SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= 'snmp' AND `sensor_class` = 'voltage' AND `device_id` = '9' AND sensor_type = 'rasbperry_volts' AND `sensor_index` = '2']
  345. SQL[SELECT * FROM `sensors` WHERE `sensor_class` = 'voltage' AND `device_id` = '9' AND `sensor_type` = 'rasbperry_volts' AND `sensor_index` = '2']
  346. .Discover sensor: 1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.3, 3, rasbperry_volts, SDRAMc, snmp, 1, 1, , 1.2000
  347. SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= 'snmp' AND `sensor_class` = 'voltage' AND `device_id` = '9' AND sensor_type = 'rasbperry_volts' AND `sensor_index` = '3']
  348. SQL[SELECT * FROM `sensors` WHERE `sensor_class` = 'voltage' AND `device_id` = '9' AND `sensor_type` = 'rasbperry_volts' AND `sensor_index` = '3']
  349. .Discover sensor: 1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.4, 4, rasbperry_volts, SDRAMi, snmp, 1, 1, , 1.2000
  350. SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= 'snmp' AND `sensor_class` = 'voltage' AND `device_id` = '9' AND sensor_type = 'rasbperry_volts' AND `sensor_index` = '4']
  351. SQL[SELECT * FROM `sensors` WHERE `sensor_class` = 'voltage' AND `device_id` = '9' AND `sensor_type` = 'rasbperry_volts' AND `sensor_index` = '4']
  352. .Discover sensor: 1.3.6.1.4.1.8072.1.3.2.4.1.2.9.114.97.115.112.98.101.114.114.121.5, 5, rasbperry_volts, SDRAMp, snmp, 1, 1, , 1.2250
  353. SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= 'snmp' AND `sensor_class` = 'voltage' AND `device_id` = '9' AND sensor_type = 'rasbperry_volts' AND `sensor_index` = '5']
  354. SQL[SELECT * FROM `sensors` WHERE `sensor_class` = 'voltage' AND `device_id` = '9' AND `sensor_type` = 'rasbperry_volts' AND `sensor_index` = '5']
  355. .SNMP[/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -OsqnU -m SUPERMICRO-HEALTH-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/supermicro:/opt/librenms/mibs/dell -t 10 udp:HOSTNAME:161 .1.3.6.1.4.1.10876.2.1.1.1.1.3]
  356. .*.4.1.108*.1.1.3 No Such Object available on this agent at this OID
  357.  
  358.  
  359. SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -Oqv -M /opt/librenms/mibs:/opt/librenms/mibs/supermicro:/opt/librenms/mibs/dell -t 10 udp:HOSTNAME:161 .1.3.6.1.2.1.1.1.0]
  360. "Linux piweather 4.1.19+ #858 Tue Mar 15 15:52:03 GMT 2016 armv6l"
  361.  
  362. SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class='rasbperry_volts' AND S.device_id = D.device_id AND D.device_id = '9' AND S.poller_type = 'snmp']
  363.  
  364. Snr: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class='snr' AND S.device_id = D.device_id AND D.device_id = '9' AND S.poller_type = 'snmp']
  365.  
  366.  
  367. >> Runtime for discovery module 'sensors': 2.9300 seconds with 18888 bytes
  368. #### Unload disco module sensors ####
  369.  
  370. SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '9' AND `attrib_type` = 'poll_mib' ]
  371. SQL[UPDATE `devices` set `last_discovered` =NOW(),`last_discovered_timetaken` ='3.539' WHERE `device_id` = '9']
  372. Discovered in 3.539 seconds
  373.  
  374. SQL[INSERT INTO `perf_times` (`type`,`doing`,`start`,`duration`,`devices`,`poller`) VALUES ('discover','piweather.quantum.lan','1501879646.9169','3.582','1','velocity\n')]
  375. ./discovery.php piweather.quantum.lan 2017-08-04 16:47:30 - 1 devices discovered in 3.582 secs
  376. SNMP: Get[6/0.16s] Walk [12/2.77s]
  377. MySQL: Cell[21/0.01s] Row[28/0.02s] Rows[29/0.02s] Column[0/0.00s] Update[1/0.00s] Insert[8/0.03s] Delete[0/0.00s]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement