From librenms, 5 Months ago, written in Plain Text.
Embed
  1. LibreNMS Discovery
  2. SQL[[1;33mselect `migration` from `migrations` order by `id` desc limit 1 [0;33m[][0m 0.79ms]
  3.  
  4. SQL[[1;33mselect count(*) as aggregate from `migrations` [0;33m[][0m 0.81ms]
  5.  
  6. SQL[[1;33mselect version() [0;33m[][0m 0.59ms]
  7.  
  8. ===========================================
  9. Component | Version
  10. --------- | -------
  11. LibreNMS  | 23.11.0-25-g3a5a64d5c (2023-12-09T14:24:01+01:00)
  12. DB Schema | 2023_11_21_172239_increase_vminfo.vmwvmguestos_column_length (274)
  13. PHP       | 8.2.13
  14. Python    | 3.11.2
  15. Database  | MariaDB 10.11.4-MariaDB-1~deb12u1
  16. RRDTool   | 1.7.2
  17. SNMP      | 5.9.3
  18. ===========================================
  19. DEBUG!
  20. Updating os_def.cache  
  21. Override discovery modules: discovery-protocols  
  22. SQL[[1;33mSELECT * FROM `devices` WHERE disabled = 0 AND `device_id` = '11' ORDER BY device_id DESC [0;33m[][0m 1.27ms]
  23.  
  24. sw3.mozoilo.lan 11 jetstream SQL[[1;33mselect * from `devices` where `device_id` = ? limit 1 [0;33m[11][0m 1.22ms]
  25.  
  26. SQL[[1;33mselect * from `devices_attribs` where `devices_attribs`.`device_id` = ? and `devices_attribs`.`device_id` is not null [0;33m[11][0m 1.03ms]
  27.  
  28. [FPING] '/usr/bin/fping' '-e' '-q' '-c' '3' '-p' '500' '-t' '500' '-O' '0' 'sw3.mozoilo.lan'
  29.  
  30. response: xmt/rcv/%loss = 3/3/0%, min/avg/max = 2.08/7.53/12.5  
  31. SNMP[[0;36m'/usr/bin/snmpget' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/tplink' '-m' 'SNMPv2-TC:SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:NET-SNMP-VACM-MIB' '-v2c' '-c' 'mozpublic' '-OQXUte' 'udp:sw3.mozoilo.lan:161' 'SNMPv2-MIB::sysObjectID.0'[0m]  
  32. SNMPv2-MIB::sysObjectID.0 = SNMPv2-SMI::enterprises.11863.5.158
  33.  
  34.  
  35. Modules status: Global+  
  36. OS  
  37. Device  
  38.  
  39. #### Load disco module core ####
  40. Attempting to initialize OS: jetstream  
  41. OS initialized as Generic (jetstream)  
  42. SNMP[[0;36m'/usr/bin/snmpget' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/tplink' '-m' 'SNMPv2-TC:SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:NET-SNMP-VACM-MIB' '-v2c' '-c' 'mozpublic' '-OQXUte' '-On' 'udp:sw3.mozoilo.lan:161' 'SNMPv2-MIB::sysObjectID.0' 'SNMPv2-MIB::sysDescr.0' 'SNMPv2-MIB::sysName.0'[0m]  
  43. .1.3.6.1.2.1.1.2.0 = .1.3.6.1.4.1.11863.5.158
  44. .1.3.6.1.2.1.1.1.0 = JetStream 10-Port Gigabit Smart Switch with 8-Port PoE+
  45. .1.3.6.1.2.1.1.5.0 = sw3.mozoilo.lan
  46.  
  47.  
  48. | JetStream 10-Port Gigabit Smart Switch with 8-Port PoE+ | .1.3.6.1.4.1.11863.5.158 |
  49.  
  50. OS: TP-Link JetStream (jetstream)
  51.  
  52. Attempting to initialize OS: jetstream  
  53. OS initialized as Generic (jetstream)  
  54.  
  55. >> Runtime for discovery module 'core': 0.1000 seconds with 302624 bytes
  56. >> [0;36mSNMP[0m: [1/0.06s] [1;33mMySQL[0m: [0/0.00s] [0;32mRRD[0m: [0/0.00s]  
  57. #### Unload disco module core ####
  58.  
  59. Modules status: Global+  
  60. OS  
  61. Device+  
  62.  
  63. #### Load disco module discovery-protocols ####
  64.  JETSTREAM-LLDP MIB: SNMP[[0;36m'/usr/bin/snmpbulkwalk' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/tplink' '-m' 'SNMPv2-TC:SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:NET-SNMP-VACM-MIB' '-v2c' '-c' 'mozpublic' '-OQXUte' '-Os' 'udp:sw3.mozoilo.lan:161' 'TPLINK-LLDPINFO-MIB::lldpNeighborInfoEntry'[0m]  
  65. lldpNeighborPortId[49154][1] = "1/0/2"
  66. lldpNeighborPortId[49161][1] = "1/0/9"
  67. lldpNeighborPortIndexId[49154][1] = 1
  68. lldpNeighborPortIndexId[49161][1] = 1
  69. lldpNeighborChassisIdType[49154][1] = "MAC address"
  70. lldpNeighborChassisIdType[49161][1] = "MAC address"
  71. lldpNeighborChassisId[49154][1] = "78:54:2E:37:D0:C0"
  72. lldpNeighborChassisId[49161][1] = "9C:53:22:73:3C:58"
  73. lldpNeighborPortIdType[49154][1] = "Interface alias"
  74. lldpNeighborPortIdType[49161][1] = "Interface name"
  75. lldpNeighborPortIdDescr[49154][1] = "15"
  76. lldpNeighborPortIdDescr[49161][1] = "gigabitEthernet 1/0/3"
  77. lldpNeighborTtl[49154][1] = 120
  78. lldpNeighborTtl[49161][1] = 120
  79. lldpNeighborPortDescr[49154][1] = "Ethernet Interface"
  80. lldpNeighborPortDescr[49161][1] = "gigabitEthernet 1/0/3"
  81. lldpNeighborDeviceName[49154][1] = "SW-DLINK"
  82. lldpNeighborDeviceName[49161][1] = "sw2.mozoilo.lan"
  83. lldpNeighborDeviceDescr[49154][1] = "DGS-1210-16 4.21.B008"
  84. lldpNeighborDeviceDescr[49161][1] = "JetStream 10-Port Gigabit Smart Switch with 8-Port PoE+"
  85. lldpNeighborCapAvailable[49154][1] = "Repeater Bridge "
  86. lldpNeighborCapAvailable[49161][1] = "Bridge Router "
  87. lldpNeighborCapEnabled[49154][1] = "Repeater Bridge "
  88. lldpNeighborCapEnabled[49161][1] = "Bridge Router "
  89. lldpNeighborManageIpAddr[49154][1] = "192.168.250.80"
  90. lldpNeighborManageIpAddr[49161][1] = "192.168.250.82"
  91. lldpNeighborManageAddrType[49154][1] = "ipv4
  92. "
  93. lldpNeighborManageAddrType[49161][1] = "ipv4
  94. "
  95. lldpNeighborManageAddrInterfaceType[49154][1] = "IfIndex
  96. "
  97. lldpNeighborManageAddrInterfaceType[49161][1] = "IfIndex
  98. "
  99. lldpNeighborManageAddrInterfaceId[49154][1] = 5121
  100. lldpNeighborManageAddrInterfaceId[49161][1] = 1
  101. lldpNeighborManageAddrOID[49154][1] = "01030601020102020101"
  102. lldpNeighborManageAddrOID[49161][1] = "0"
  103. lldpNeighborPortAndProtocolVlanID[49154][1] = ""
  104. lldpNeighborPortAndProtocolVlanID[49161][1] = ""
  105. lldpNeighborVlanName[49154][1] = "vid: 1, VLAN name: default; "
  106. lldpNeighborVlanName[49161][1] = "vid: 1, VLAN name: System-VLAN; "
  107. lldpNeighborProtocolIdentity[49154][1] = "0027424203000002; "
  108. lldpNeighborProtocolIdentity[49161][1] = ""
  109. lldpNeighborAutoNegotiationSupported[49154][1] = 1
  110. lldpNeighborAutoNegotiationSupported[49161][1] = 1
  111. lldpNeighborAutoNegotiationEnabled[49154][1] = 1
  112. lldpNeighborAutoNegotiationEnabled[49161][1] = 1
  113. lldpNeighborOperMau[49154][1] = "speed(1000)/duplex(Full)"
  114. lldpNeighborOperMau[49161][1] = "speed(1000)/duplex(Full)"
  115. lldpNeighborLinkAggregationSupported[49154][1] = 1
  116. lldpNeighborLinkAggregationSupported[49161][1] = 1
  117. lldpNeighborLinkAggregationEnabled[49154][1] = 0
  118. lldpNeighborLinkAggregationEnabled[49161][1] = 0
  119. lldpNeighborAggregationPortId[49154][1] = 15
  120. lldpNeighborAggregationPortId[49161][1] = 0
  121. lldpNeighborPowerPortClass[49154][1] = " "
  122. lldpNeighborPowerPortClass[49161][1] = "PSE"
  123. lldpNeighborPsePowerSupported[49154][1] = 0
  124. lldpNeighborPsePowerSupported[49161][1] = 1
  125. lldpNeighborPsePowerEnabled[49154][1] = 0
  126. lldpNeighborPsePowerEnabled[49161][1] = 0
  127. lldpNeighborPsePairsControlAbility[49154][1] = 0
  128. lldpNeighborPsePairsControlAbility[49161][1] = 0
  129. lldpNeighborMaximumFrameSize[49154][1] = 1536
  130. lldpNeighborMaximumFrameSize[49161][1] = 1518
  131.  
  132.  
  133. Reporting disabled by user setting  
  134. [0;31mError discovering discovery-protocols module for sw3.mozoilo.lan.[0m TypeError: key(): Argument #1 ($array) must be of type array, null given in /opt/librenms/includes/discovery/discovery-protocols.inc.php:206
  135. Stack trace:
  136. #0 /opt/librenms/includes/discovery/discovery-protocols.inc.php(206): key()
  137. #1 /opt/librenms/includes/discovery/functions.inc.php(164): include('...')
  138. #2 /opt/librenms/discovery.php(108): discover_device()
  139. #3 {main}  
  140. SQL[[1;33minsert into `eventlog` (`reference`, `type`, `datetime`, `severity`, `message`, `username`, `device_id`) values (?, ?, ?, ?, ?, ?, ?) [0;33m[null,"discovery","2023-12-10 20:42:48",5,"Error discovering discovery-protocols module. Check log file for more details.","",11][0m 2.7ms]
  141.  
  142. key(): Argument #1 ($array) must be of type array, null given {"exception":"[object] (TypeError(code: 0): key(): Argument #1 ($array) must be of type array, null given at /opt/librenms/includes/discovery/discovery-protocols.inc.php:206)"}
  143.  
  144. >> Runtime for discovery module 'discovery-protocols': 0.6190 seconds with 501600 bytes
  145. >> [0;36mSNMP[0m: [1/0.60s] [1;33mMySQL[0m: [1/0.03s] [0;32mRRD[0m: [0/0.00s]  
  146. #### Unload disco module discovery-protocols ####
  147.  
  148. SQL[[1;33mupdate `devices` set `last_discovered_timetaken` = ?, `last_discovered` = NOW() where `device_id` = ? [0;33m[1.835,11][0m 2.86ms]
  149.  
  150. Discovered in 1.835 seconds
  151.  
  152. ./discovery.php 11 2023-12-10 20:42:48 - 1 devices discovered in 2.496 secs  
  153.  
  154. [0;36mSNMP[0m [3/0.72s]: Snmpget[2/0.12s] Snmpwalk[1/0.60s]  
  155. [1;33mSQL[0m [9/0.13s]: Select[7/0.07s] Insert[1/0.03s] Update[1/0.03s]  
  156. [0;32mRRD[0m [0/0.00s]:  
  157.