From robbert, 6 Years ago, written in Plain Text.
Embed
  1. LibreNMS Discovery
  2. ===================================
  3. Version info:
  4. Commit SHA: 1aa971375cc59819f58b3d2bb8eb7a90c14f4841
  5. Commit Date: 1510181843
  6. DB Schema: 215
  7. PHP: 7.0.22-0ubuntu0.16.04.1
  8. MySQL: 5.7.20-0ubuntu0.16.04.1-log
  9. RRDTool: 1.5.5
  10. SNMP: NET-SNMP 5.7.3
  11. ==================================DEBUG!
  12. SQL[[0;33mSELECT * FROM `devices` WHERE status = 1 AND disabled = 0 AND `hostname` LIKE 'hp8%' ORDER BY device_id DESC[0m]
  13. SQL[[0;33mSELECT * FROM devices_attribs WHERE `device_id` = '111'[0m]
  14. hp8600.homeserv.lan 111 jetdirect SQL[[0;33mINSERT INTO `device_perf` (`xmt`,`rcv`,`loss`,`min`,`max`,`avg`,`device_id`,`timestamp`)  VALUES ('3','3','0','1.48','2.90','2.00','111',NOW())[0m]
  15. SNMP Check response code: 0
  16. SQL[[0;33mSELECT attrib_value FROM devices_attribs WHERE `device_id` = '111' AND `attrib_type` = 'poll_mib' [0m]
  17.  
  18. Modules status: Global+ OS+ Device  
  19. #### Load disco module toner ####
  20. Toner: SNMP[[0;36m/usr/bin/snmpwalk -v1 -c 'public' -OQUs -m Printer-MIB -M /opt/librenms/mibs udp:hp8600.homeserv.lan:161 prtMarkerColorantMarkerIndex[0m]
  21. prtMarkerColorantMarkerIndex.0.1 = 1
  22.  
  23. SNMP[[0;36m/usr/bin/snmpwalk -v1 -c 'public' -OQUs -m Printer-MIB -M /opt/librenms/mibs udp:hp8600.homeserv.lan:161 prtMarkerSuppliesLevel[0m]
  24. prtMarkerSuppliesLevel.0.1 = 135
  25. prtMarkerSuppliesLevel.0.2 = 200
  26. prtMarkerSuppliesLevel.0.3 = 188
  27. prtMarkerSuppliesLevel.0.4 = 223
  28.  
  29. SNMP[[0;36m/usr/bin/snmpwalk -v1 -c 'public' -OQUs -m Printer-MIB -M /opt/librenms/mibs udp:hp8600.homeserv.lan:161 prtMarkerSuppliesMaxCapacity[0m]
  30. prtMarkerSuppliesMaxCapacity.0.1 = 674
  31. prtMarkerSuppliesMaxCapacity.0.2 = 230
  32. prtMarkerSuppliesMaxCapacity.0.3 = 216
  33. prtMarkerSuppliesMaxCapacity.0.4 = 230
  34.  
  35. SNMP[[0;36m/usr/bin/snmpwalk -v1 -c 'public' -OQUsa -m Printer-MIB -M /opt/librenms/mibs udp:hp8600.homeserv.lan:161 prtMarkerSuppliesDescription[0m]
  36. prtMarkerSuppliesDescription.0.1 = "black ink"
  37. prtMarkerSuppliesDescription.0.2 = "yellow ink"
  38. prtMarkerSuppliesDescription.0.3 = "cyan ink"
  39. prtMarkerSuppliesDescription.0.4 = "magenta ink"
  40.  
  41. SNMP[[0;36m/usr/bin/snmpwalk -v1 -c 'public' -OQUsa -m Printer-MIB -M /opt/librenms/mibs udp:hp8600.homeserv.lan:161 prtMarkerColorantValue[0m]
  42. prtMarkerColorantValue.0.1 = "black ink"
  43.  
  44. Discover Toner: .1.3.6.1.2.1.43.11.1.1.9.0.1, 1, jetdirect, Black ink, .1.3.6.1.2.1.43.11.1.1.8.0.1, 674, 20
  45. SQL[[0;33mSELECT COUNT(toner_id) FROM `toner` WHERE device_id = '111' AND toner_type = 'jetdirect' AND `toner_index` = '1' AND `toner_oid` ='.1.3.6.1.2.1.43.11.1.1.9.0.1'[0m]
  46. SQL[[0;33mSELECT * FROM `toner` WHERE `device_id` = '111' AND `toner_type` = 'jetdirect' AND `toner_index` ='1'[0m]
  47. .Discover Toner: .1.3.6.1.2.1.43.11.1.1.9.0.2, 2, jetdirect, yellow ink, .1.3.6.1.2.1.43.11.1.1.8.0.2, 230, 87
  48. SQL[[0;33mSELECT COUNT(toner_id) FROM `toner` WHERE device_id = '111' AND toner_type = 'jetdirect' AND `toner_index` = '2' AND `toner_oid` ='.1.3.6.1.2.1.43.11.1.1.9.0.2'[0m]
  49. SQL[[0;33mSELECT * FROM `toner` WHERE `device_id` = '111' AND `toner_type` = 'jetdirect' AND `toner_index` ='2'[0m]
  50. .Discover Toner: .1.3.6.1.2.1.43.11.1.1.9.0.3, 3, jetdirect, cyan ink, .1.3.6.1.2.1.43.11.1.1.8.0.3, 216, 87
  51. SQL[[0;33mSELECT COUNT(toner_id) FROM `toner` WHERE device_id = '111' AND toner_type = 'jetdirect' AND `toner_index` = '3' AND `toner_oid` ='.1.3.6.1.2.1.43.11.1.1.9.0.3'[0m]
  52. SQL[[0;33mSELECT * FROM `toner` WHERE `device_id` = '111' AND `toner_type` = 'jetdirect' AND `toner_index` ='3'[0m]
  53. .Discover Toner: .1.3.6.1.2.1.43.11.1.1.9.0.4, 4, jetdirect, magenta ink, .1.3.6.1.2.1.43.11.1.1.8.0.4, 230, 97
  54. SQL[[0;33mSELECT COUNT(toner_id) FROM `toner` WHERE device_id = '111' AND toner_type = 'jetdirect' AND `toner_index` = '4' AND `toner_oid` ='.1.3.6.1.2.1.43.11.1.1.9.0.4'[0m]
  55. SQL[[0;33mSELECT * FROM `toner` WHERE `device_id` = '111' AND `toner_type` = 'jetdirect' AND `toner_index` ='4'[0m]
  56. .
  57.  Checking valid toner ...
  58. Array
  59. (
  60.     [jetdirect] => Array
  61.         (
  62.             [.1.3.6.1.2.1.43.11.1.1.9.0.1] => 1
  63.             [.1.3.6.1.2.1.43.11.1.1.9.0.2] => 1
  64.             [.1.3.6.1.2.1.43.11.1.1.9.0.3] => 1
  65.             [.1.3.6.1.2.1.43.11.1.1.9.0.4] => 1
  66.         )
  67.  
  68. )
  69. SQL[[0;33mSELECT * FROM toner WHERE device_id = '111'[0m]
  70. Array
  71. (
  72.     [0] => Array
  73.         (
  74.             [toner_id] => 29
  75.             [device_id] => 111
  76.             [toner_index] => 1
  77.             [toner_type] => jetdirect
  78.             [toner_oid] => .1.3.6.1.2.1.43.11.1.1.9.0.1
  79.             [toner_descr] => Black ink
  80.             [toner_capacity] => 674
  81.             [toner_current] => 20
  82.             [toner_capacity_oid] => .1.3.6.1.2.1.43.11.1.1.8.0.1
  83.         )
  84.  
  85.     [1] => Array
  86.         (
  87.             [toner_id] => 30
  88.             [device_id] => 111
  89.             [toner_index] => 2
  90.             [toner_type] => jetdirect
  91.             [toner_oid] => .1.3.6.1.2.1.43.11.1.1.9.0.2
  92.             [toner_descr] => yellow ink
  93.             [toner_capacity] => 230
  94.             [toner_current] => 87
  95.             [toner_capacity_oid] => .1.3.6.1.2.1.43.11.1.1.8.0.2
  96.         )
  97.  
  98.     [2] => Array
  99.         (
  100.             [toner_id] => 31
  101.             [device_id] => 111
  102.             [toner_index] => 3
  103.             [toner_type] => jetdirect
  104.             [toner_oid] => .1.3.6.1.2.1.43.11.1.1.9.0.3
  105.             [toner_descr] => cyan ink
  106.             [toner_capacity] => 216
  107.             [toner_current] => 87
  108.             [toner_capacity_oid] => .1.3.6.1.2.1.43.11.1.1.8.0.3
  109.         )
  110.  
  111.     [3] => Array
  112.         (
  113.             [toner_id] => 32
  114.             [device_id] => 111
  115.             [toner_index] => 4
  116.             [toner_type] => jetdirect
  117.             [toner_oid] => .1.3.6.1.2.1.43.11.1.1.9.0.4
  118.             [toner_descr] => magenta ink
  119.             [toner_capacity] => 230
  120.             [toner_current] => 0
  121.             [toner_capacity_oid] => .1.3.6.1.2.1.43.11.1.1.8.0.4
  122.         )
  123.  
  124. )
  125.  
  126.  
  127. >> Runtime for discovery module 'toner': 0.1110 seconds with 13608 bytes
  128. #### Unload disco module toner ####
  129.  
  130. SQL[[0;33mSELECT attrib_value FROM devices_attribs WHERE `device_id` = '111' AND `attrib_type` = 'poll_mib' [0m]
  131. SQL[[0;33mUPDATE `devices` set `last_discovered` =NOW(),`last_discovered_timetaken` ='0.544' WHERE `device_id` = '111'[0m]
  132. Discovered in 0.544 seconds
  133.  
  134. SQL[[0;33mINSERT INTO `perf_times` (`type`,`doing`,`start`,`duration`,`devices`,`poller`)  VALUES ('discover','hp8*','1510223794.6844','0.574','1','mon1')[0m]
  135. /opt/librenms/discovery.php hp8* 2017-11-09 11:36:35 - 1 devices discovered in 0.574 secs
  136. SNMP: Get[1/0.02s] Getnext [0/0.00s] Walk [5/0.11s]
  137. MySQL: Cell[6/0.00s] Row[6/0.00s] Rows[5/0.00s] Column[0/0.00s] Update[1/0.00s] Insert[2/0.00s] Delete[0/0.00s]
  138.