From Funky Monkey, 1 Year ago, written in DOS.
This paste is a reply to Re: Untitled from Violet Penguin - view diff
Embed
  1. LibreNMS Discovery
  2. Version info:
  3. Commit SHA: d8fcdc9ae3cf7a5cdafca865c9ada7551f85a03f
  4. DB Schema: 185
  5. PHP: 7.0.8-0ubuntu0.16.04.1
  6. MySQL: 10.0.25-MariaDB-0ubuntu0.16.04.1
  7. RRDTool: 1.5.5
  8. SNMP: NET-SNMP 5.7.3
  9. DEBUG!
  10. SQL[[0;33mSELECT version FROM `dbSchema` ORDER BY version DESC LIMIT 1[0m]
  11. DB Schema already up to date.
  12. SQL[[0;33mSELECT * FROM `devices` WHERE status = 1 AND disabled = 0 AND `hostname` LIKE '3.3.3.3' ORDER BY device_id DESC[0m]
  13. SQL[[0;33mSELECT * FROM devices_attribs WHERE `device_id` = '94'[0m]
  14. 3.3.3.3 94 enterasys SQL[[0;33mINSERT INTO `device_perf` (`xmt`,`rcv`,`loss`,`min`,`max`,`avg`,`device_id`,`timestamp`)  VALUES ('5','5','0','27.2','32.6','29.6','94',NOW())[0m]
  15. SNMP Check response code: 0
  16.  
  17. Modules status: Global+ OS  Device  
  18. #### Load disco module mempools ####
  19. SQL[[0;33mSELECT COUNT(*) FROM `mempools` WHERE `device_id` = '94' AND `mempool_type` = 'cemp'[0m]
  20. SNMP[[0;36m/usr/bin/snmpbulkwalk -v2c -c COMMUNITY  -OQUs -m ENTERASYS-RESOURCE-UTILIZATION-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/enterasys udp:HOSTNAME:161 etsysResourceStorageTable[0m]
  21. etsysResourceStorageDescr.10011001.ram.1 = RAM device 1
  22. etsysResourceStorageDescr.10011001.flash.1 = Images & Miscellaneous
  23. etsysResourceStorageDescr.10011001.flash.2 = Nonvolatile Data Storage
  24. etsysResourceStorageDescr.10011002.ram.1 = RAM device 1
  25. etsysResourceStorageDescr.10011002.flash.1 = Images & Miscellaneous
  26. etsysResourceStorageDescr.10011002.flash.2 = Nonvolatile Data Storage
  27. etsysResourceStorageDescr.10011003.ram.1 = RAM device 1
  28. etsysResourceStorageDescr.10011003.flash.1 = Images & Miscellaneous
  29. etsysResourceStorageDescr.10011003.flash.2 = Nonvolatile Data Storage
  30. etsysResourceStorageSize.10011001.ram.1 = 262144
  31. etsysResourceStorageSize.10011001.flash.1 = 16384
  32. etsysResourceStorageSize.10011001.flash.2 = 16384
  33. etsysResourceStorageSize.10011002.ram.1 = 262144
  34. etsysResourceStorageSize.10011002.flash.1 = 16384
  35. etsysResourceStorageSize.10011002.flash.2 = 16384
  36. etsysResourceStorageSize.10011003.ram.1 = 262144
  37. etsysResourceStorageSize.10011003.flash.1 = 16384
  38. etsysResourceStorageSize.10011003.flash.2 = 16384
  39. etsysResourceStorageAvailable.10011001.ram.1 = 36474
  40. etsysResourceStorageAvailable.10011001.flash.1 = 2714
  41. etsysResourceStorageAvailable.10011001.flash.2 = 14052
  42. etsysResourceStorageAvailable.10011002.ram.1 = 37226
  43. etsysResourceStorageAvailable.10011002.flash.1 = 3622
  44. etsysResourceStorageAvailable.10011002.flash.2 = 13968
  45. etsysResourceStorageAvailable.10011003.ram.1 = 38226
  46. etsysResourceStorageAvailable.10011003.flash.1 = 3622
  47. etsysResourceStorageAvailable.10011003.flash.2 = 13972
  48.  
  49. etsysResourceStorageDescr.10011001.ram.1 = RAM device 1 || etsysResourceStorageDescr || 10011001 || ram || 1
  50. etsysResourceStorageDescr.10011001.flash.1 = Images & Miscellaneous || etsysResourceStorageDescr || 10011001 || flash || 1
  51. etsysResourceStorageDescr.10011001.flash.2 = Nonvolatile Data Storage || etsysResourceStorageDescr || 10011001 || flash || 2
  52. etsysResourceStorageDescr.10011002.ram.1 = RAM device 1 || etsysResourceStorageDescr || 10011002 || ram || 1
  53. etsysResourceStorageDescr.10011002.flash.1 = Images & Miscellaneous || etsysResourceStorageDescr || 10011002 || flash || 1
  54. etsysResourceStorageDescr.10011002.flash.2 = Nonvolatile Data Storage || etsysResourceStorageDescr || 10011002 || flash || 2
  55. etsysResourceStorageDescr.10011003.ram.1 = RAM device 1 || etsysResourceStorageDescr || 10011003 || ram || 1
  56. etsysResourceStorageDescr.10011003.flash.1 = Images & Miscellaneous || etsysResourceStorageDescr || 10011003 || flash || 1
  57. etsysResourceStorageDescr.10011003.flash.2 = Nonvolatile Data Storage || etsysResourceStorageDescr || 10011003 || flash || 2
  58. etsysResourceStorageSize.10011001.ram.1 = 262144 || etsysResourceStorageSize || 10011001 || ram || 1
  59. etsysResourceStorageSize.10011001.flash.1 = 16384 || etsysResourceStorageSize || 10011001 || flash || 1
  60. etsysResourceStorageSize.10011001.flash.2 = 16384 || etsysResourceStorageSize || 10011001 || flash || 2
  61. etsysResourceStorageSize.10011002.ram.1 = 262144 || etsysResourceStorageSize || 10011002 || ram || 1
  62. etsysResourceStorageSize.10011002.flash.1 = 16384 || etsysResourceStorageSize || 10011002 || flash || 1
  63. etsysResourceStorageSize.10011002.flash.2 = 16384 || etsysResourceStorageSize || 10011002 || flash || 2
  64. etsysResourceStorageSize.10011003.ram.1 = 262144 || etsysResourceStorageSize || 10011003 || ram || 1
  65. etsysResourceStorageSize.10011003.flash.1 = 16384 || etsysResourceStorageSize || 10011003 || flash || 1
  66. etsysResourceStorageSize.10011003.flash.2 = 16384 || etsysResourceStorageSize || 10011003 || flash || 2
  67. etsysResourceStorageAvailable.10011001.ram.1 = 36474 || etsysResourceStorageAvailable || 10011001 || ram || 1
  68. etsysResourceStorageAvailable.10011001.flash.1 = 2714 || etsysResourceStorageAvailable || 10011001 || flash || 1
  69. etsysResourceStorageAvailable.10011001.flash.2 = 14052 || etsysResourceStorageAvailable || 10011001 || flash || 2
  70. etsysResourceStorageAvailable.10011002.ram.1 = 37226 || etsysResourceStorageAvailable || 10011002 || ram || 1
  71. etsysResourceStorageAvailable.10011002.flash.1 = 3622 || etsysResourceStorageAvailable || 10011002 || flash || 1
  72. etsysResourceStorageAvailable.10011002.flash.2 = 13968 || etsysResourceStorageAvailable || 10011002 || flash || 2
  73. etsysResourceStorageAvailable.10011003.ram.1 = 38226 || etsysResourceStorageAvailable || 10011003 || ram || 1
  74. etsysResourceStorageAvailable.10011003.flash.1 = 3622 || etsysResourceStorageAvailable || 10011003 || flash || 1
  75. etsysResourceStorageAvailable.10011003.flash.2 = 13972 || etsysResourceStorageAvailable || 10011003 || flash || 2
  76. Discover Mempool: 10011001, enterasys, RAM device 1, 1, 1,
  77. SQL[[0;33mSELECT COUNT(mempool_id) FROM `mempools` WHERE `mempool_index` = '10011001' AND `device_id` = '94' AND `mempool_type` = 'enterasys'[0m]
  78. .SQL[[0;33mUPDATE `mempools` set `mempool_descr` ='RAM device 1',`entPhysicalIndex` ='1' WHERE device_id='94' AND mempool_index='10011001' AND mempool_type='enterasys'[0m]
  79. Discover Mempool: 10011002, enterasys, RAM device 1, 1, 1,
  80. SQL[[0;33mSELECT COUNT(mempool_id) FROM `mempools` WHERE `mempool_index` = '10011002' AND `device_id` = '94' AND `mempool_type` = 'enterasys'[0m]
  81. .SQL[[0;33mUPDATE `mempools` set `mempool_descr` ='RAM device 1',`entPhysicalIndex` ='1' WHERE device_id='94' AND mempool_index='10011002' AND mempool_type='enterasys'[0m]
  82. Discover Mempool: 10011003, enterasys, RAM device 1, 1, 1,
  83. SQL[[0;33mSELECT COUNT(mempool_id) FROM `mempools` WHERE `mempool_index` = '10011003' AND `device_id` = '94' AND `mempool_type` = 'enterasys'[0m]
  84. .SQL[[0;33mUPDATE `mempools` set `mempool_descr` ='RAM device 1',`entPhysicalIndex` ='1' WHERE device_id='94' AND mempool_index='10011003' AND mempool_type='enterasys'[0m]
  85. SNMP[[0;36m/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -OQUs -m NETSWITCH-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/enterasys:/opt/librenms/mibs/hp udp:HOSTNAME:161 hpLocal[0m]
  86. hpLocalMem = No Such Object available on this agent at this OID
  87.  
  88. SNMP[[0;36m/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -OQUs -m NETSWITCH-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/enterasys:/opt/librenms/mibs/hp udp:HOSTNAME:161 hpGlobal[0m]
  89. hpGlobalMem = No Such Object available on this agent at this OID
  90.  
  91. SNMP[[0;36m/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -OQUs -m HOST-RESOURCES-MIB:HOST-RESOURCES-TYPES:NetWare-Host-Ext-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/enterasys udp:HOSTNAME:161 hrStorageEntry[0m]
  92. hrStorageEntry = No Such Object available on this agent at this OID
  93.  
  94. Array
  95. (
  96.     [enterasys] => Array
  97.         (
  98.             [10011001] => 1
  99.             [10011002] => 1
  100.             [10011003] => 1
  101.         )
  102.  
  103. )
  104. SQL[[0;33mSELECT * FROM `mempools` WHERE `device_id`  = '94'[0m]
  105. 10011001 -> enterasys
  106. 10011002 -> enterasys
  107. 10011003 -> enterasys
  108.  
  109.  
  110. >> Runtime for discovery module 'mempools': 0.5630 seconds with 41240 bytes
  111. #### Unload disco module mempools ####
  112.  
  113. SQL[[0;33mSELECT attrib_value FROM devices_attribs WHERE `device_id` = '94' AND `attrib_type` = 'poll_mib' [0m]
  114. SQL[[0;33mUPDATE `devices` set `last_discovered` =NOW(),`last_discovered_timetaken` ='4.654' WHERE `device_id` = '94'[0m]
  115. Discovered in 4.654 seconds
  116.  
  117. SQL[[0;33mINSERT INTO `perf_times` (`type`,`doing`,`start`,`duration`,`devices`,`poller`)  VALUES ('discover','3.3.3.3','1492591831.1205','4.694','1','HQ_switch01\n')[0m]
  118. ./discovery.php 3.3.3.3 2017-04-19 10:50:35 - 1 devices discovered in 4.694 secs
  119. SNMP: Get[1/0.04s] Walk [3/0.42s]
  120. MySQL: Cell[7/0.00s] Row[1/0.00s] Rows[5/0.00s] Column[0/0.00s] Update[4/0.00s] Insert[2/0.00s] Delete[0/0.00s]
  121.