From Chocolate Octupus, 9 Months ago, written in Plain Text.
This paste is a reply to Untitled from librenms - view diff
Embed
  1. [librenms@dispatcher ~]$ php poller.php -h HOSTNAME -m bgp-peers -d
  2. LibreNMS Poller
  3. SQL[select `migration` from `migrations` order by `id` desc limit 1 [] 0.89ms]
  4.  
  5. SQL[select count(*) as aggregate from `migrations` [] 0.84ms]
  6.  
  7. SQL[select version() [] 1.13ms]
  8.  
  9. ===========================================
  10. Component | Version
  11. --------- | -------
  12. LibreNMS  | 23.5.0 (2023-05-19T11:32:19-04:00)
  13. DB Schema | 2023_05_12_071412_devices_expand_timetaken_doubles (251)
  14. PHP       | 8.1.16
  15. Python    | 3.6.8
  16. Database  | MariaDB 10.3.35-MariaDB
  17. RRDTool   | 1.7.0
  18. SNMP      | 5.8
  19. ===========================================
  20. DEBUG!
  21. Updating os_def.cache
  22. Override poller modules: bgp-peers
  23. Starting polling run:
  24.  
  25. SQL[SELECT * FROM `devices` WHERE `disabled` = 0 AND `hostname` = 'HOSTNAME' ORDER BY `device_id` ASC [] 10.36ms]
  26.  
  27. SQL[select * from `devices` where `device_id` = ? limit 1 [55] 1.17ms]
  28.  
  29. SQL[select * from `devices_attribs` where `devices_attribs`.`device_id` = ? and `devices_attribs`.`device_id` is not null [55] 1.29ms]
  30.  
  31. Attempting to initialize OS: dell-os10
  32. Attempting to initialize Group OS: dell
  33. OS initialized as Generic
  34. Hostname:    HOSTNAME
  35. Device ID:   55
  36. OS:          dell-os10
  37. Resolved IP: IPADDRESS
  38.  (dell)
  39.  
  40. [FPING] '/usr/sbin/fping' '-e' '-q' '-c' '3' '-p' '500' '-t' '500' '-O' '0' 'HOSTNAME'
  41.  
  42. response: xmt/rcv/%loss = 3/3/0%, min/avg/max = 0.23/0.24/0.26
  43. SNMP['/usr/bin/snmpget' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/dell' '-v2c' '-c' 'COMMUNITY' '-OQXUte' 'udp:HOSTNAME:161' 'SNMPv2-MIB::sysObjectID.0']
  44. SNMPv2-MIB::sysObjectID.0 = SNMPv2-SMI::enterprises.674.11000.5*.1
  45.  
  46.  
  47. SQL[insert into `device_perf` (`min`, `max`, `avg`, `xmt`, `rcv`, `loss`, `debug`, `device_id`, `timestamp`) values (?, ?, ?, ?, ?, ?, ?, ?, ?) [0.23,0.26,0.24,3,3,0,"{\"poller_name\":\"dispatcher\"}",55,"2023-06-01 12:23:15"] 6.25ms]
  48.  
  49. SQL[update `devices` set `last_ping_timetaken` = ? where `device_id` = ? [0.24,55] 2.42ms]
  50.  
  51. RRD[last HOSTNAME/ping-perf.rrd  --daemon 192.168.2.230:42217]
  52. RRD[update HOSTNAME/ping-perf.rrd N:0.24 --daemon 192.168.2.230:42217]
  53. SQL[select * from `device_outages` where `device_outages`.`device_id` = ? and `device_outages`.`device_id` is not null and `up_again` is null order by `going_down` desc limit 1 [55] 1.2ms]
  54.  
  55. Modules status: Global+
  56. OS
  57. Device
  58.  
  59. #### Load poller module core ####
  60. SNMP['/usr/bin/snmpget' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/dell' '-v2c' '-c' 'COMMUNITY' '-OQXUte' '-On' 'udp:HOSTNAME:161' 'SNMPv2-MIB::sysUpTime.0']
  61. .*.*.0 = 8333835
  62.  
  63.  
  64. SNMP['/usr/bin/snmpget' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/dell' '-v2c' '-c' 'COMMUNITY' '-OQXUte' 'udp:HOSTNAME:161' 'SNMP-FRAMEWORK-MIB::snmpEngineTime.0' 'HOST-RESOURCES-MIB::hrSystemUptime.0']
  65. SNMP-FRAMEWORK-MIB::snmpEngineTime.0 = 83338
  66. HOST-RESOURCES-MIB::hrSystemUptime.0 = 683442991
  67.  
  68.  
  69. Uptime seconds: 6834430
  70.  
  71. RRD[last HOSTNAME/uptime.rrd  --daemon 192.168.2.230:42217]
  72. RRD[update HOSTNAME/uptime.rrd N:6834430 --daemon 192.168.2.230:42217]
  73. Uptime: 2 months 3 weeks 2 days 2 hours 27 minutes 10 seconds
  74. SQL[update `devices` set `uptime` = ? where `device_id` = ? [6834430,55] 5.1ms]
  75.  
  76.  
  77. >> Runtime for poller module 'core': 0.0858 seconds with 51424 bytes
  78. >> SNMP: [2/0.07s] MySQL: [1/0.05s] RRD: [2/0.00s]
  79. #### Unload poller module core ####
  80.  
  81. RRD[last HOSTNAME/poller-perf-core.rrd  --daemon 192.168.2.230:42217]
  82. RRD[update HOSTNAME/poller-perf-core.rrd N:0.085821866989136 --daemon 192.168.2.230:42217]
  83. Modules status: Global+
  84. OS
  85. Device
  86.  
  87. #### Load poller module bgp-peers ####
  88. SQL[SELECT * FROM `bgpPeers` AS B LEFT JOIN `vrfs` AS V ON `B`.`vrf_id` = `V`.`vrf_id` WHERE `B`.`device_id` = ? [55] 75.33ms]
  89.  
  90. SNMP['/usr/bin/snmpbulkwalk' '-v2c' '-c' 'COMMUNITY' '-OQUs' '-m' 'DELLEMC-OS10-BGP4V2-MIB' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/dell' 'udp:HOSTNAME:161' 'os10bgp4V2PeerRemoteAs']
  91. os10bgp4V2PeerRemoteAs.1.ipv4."*" = 65050
  92. os10bgp4V2PeerRemoteAs.1.ipv4."*" = 65050
  93. os10bgp4V2PeerRemoteAs.1.ipv4."*" = 65050
  94.  
  95. SQL[select * from `vrf_lite_cisco` where `vrf_lite_cisco`.`device_id` = ? and `vrf_lite_cisco`.`device_id` is not null [55] 0.69ms]
  96.  
  97. Checking BGP peer 192.168.255.129 Fetching DELLEMC-OS10-BGP4V2-MIB data...
  98. SNMP['/usr/bin/snmpget' '-v2c' '-c' 'COMMUNITY' '-OQUs' '-m' 'DELLEMC-OS10-BGP4V2-MIB' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/dell' 'udp:HOSTNAME:161' 'os10bgp4V2PeerState.1.1.4.192.168.255.129' 'os10bgp4V2PeerAdminStatus.1.1.4.192.168.255.129' 'os10bgp4V2PeerInUpdates.1.1.4.192.168.255.129' 'os10bgp4V2PeerOutUpdates.1.1.4.192.168.255.129' 'os10bgp4V2PeerInTotalMessages.1.1.4.192.168.255.129' 'os10bgp4V2PeerOutTotalMessages.1.1.4.192.168.255.129' 'os10bgp4V2PeerFsmEstablishedTime.1.1.4.192.168.255.129' 'os10bgp4V2PeerInUpdatesElapsedTime.1.1.4.192.168.255.129' 'os10bgp4V2PeerLocalAddr.1.1.4.192.168.255.129' 'os10bgp4V2PeerDescription.1.1.4.192.168.255.129' 'os10bgp4V2PeerLastErrorCodeReceived.1.1.4.192.168.255.129' 'os10bgp4V2PeerLastErrorSubCodeReceived.1.1.4.192.168.255.129' 'os10bgp4V2PeerLastErrorReceivedText.1.1.4.192.168.255.129']
  99. os10bgp4V2PeerState.1.ipv4."*" = established
  100. os10bgp4V2PeerAdminStatus.1.ipv4."*" = halted
  101. os10bgp4V2PeerInUpdates.1.ipv4."*" = 11048
  102. os10bgp4V2PeerOutUpdates.1.ipv4."*" = 23852
  103. os10bgp4V2PeerInTotalMessages.1.ipv4."*" = 139328
  104. os10bgp4V2PeerOutTotalMessages.1.ipv4."*" = 147118
  105. os10bgp4V2PeerFsmEstablishedTime.1.ipv4."*" = 1318684900
  106. os10bgp4V2PeerInUpdatesElapsedTime.1.ipv4."*" = 137400
  107. os10bgp4V2PeerLocalAddr.1.ipv4."*" = "*"
  108. os10bgp4V2PeerDescription.1.ipv4."*" = No Such Instance currently exists at this OID
  109. os10bgp4V2PeerLastErrorCodeReceived.1.ipv4."*" = 0
  110. os10bgp4V2PeerLastErrorSubCodeReceived.1.ipv4."*" = 0
  111. os10bgp4V2PeerLastErrorReceivedText.1.ipv4."*" = Reset by peer
  112.  
  113. SQL[select `ifIndex` from `ports` inner join `ipv4_addresses` on `ports`.`port_id` = `ipv4_addresses`.`port_id` where `ipv4_address` = ? limit 1 ["192.168.255.132"] 0.91ms]
  114.  
  115. array (
  116.   'bgpPeerState' => 'established',
  117.   'bgpPeerAdminStatus' => 'halted',
  118.   'bgpPeerInUpdates' => '11048',
  119.   'bgpPeerOutUpdates' => '23852',
  120.   'bgpPeerInTotalMessages' => '139328',
  121.   'bgpPeerOutTotalMessages' => '147118',
  122.   'bgpPeerFsmEstablishedTime' => '1318684900',
  123.   'bgpPeerInUpdateElapsedTime' => '137400',
  124.   'bgpLocalAddr' => '192.168.255.132',
  125.   'bgpPeerDescr' => '',
  126.   'bgpPeerLastErrorCode' => '0',
  127.   'bgpPeerLastErrorSubCode' => '0',
  128.   'bgpPeerLastErrorText' => 'Reset by peer',
  129.   'bgpPeerIface' => 49,
  130. )
  131. RRD[last HOSTNAME/bgp-192.168.255.129.rrd  --daemon 192.168.2.230:42217]
  132. RRD[update HOSTNAME/bgp-192.168.255.129.rrd N:23852:11048:147118:139328:1318684900 --daemon 192.168.2.230:42217]
  133. SQL[UPDATE `bgpPeers` set `bgpPeerInUpdateElapsedTime`=? WHERE `device_id` = ? AND `bgpPeerIdentifier` = ? ["137400",55,"192.168.255.129"] 534.32ms]
  134.  
  135. SQL[SELECT * FROM bgpPeers_cbgp WHERE `device_id` = ? AND bgpPeerIdentifier = ? [55,"192.168.255.129"] 1.3ms]
  136.  
  137.  
  138. Checking BGP peer 192.168.255.129 Fetching DELLEMC-OS10-BGP4V2-MIB data...
  139. SNMP['/usr/bin/snmpget' '-v2c' '-c' 'COMMUNITY' '-OQUs' '-m' 'DELLEMC-OS10-BGP4V2-MIB' '-M' '/opt/librenms/mibs:/opt/librenms/mibs/dell' 'udp:HOSTNAME:161' 'os10bgp4V2PeerState.1.1.4.192.168.255.129' 'os10bgp4V2PeerAdminStatus.1.1.4.192.168.255.129' 'os10bgp4V2PeerInUpdates.1.1.4.192.168.255.129' 'os10bgp4V2PeerOutUpdates.1.1.4.192.168.255.129' 'os10bgp4V2PeerInTotalMessages.1.1.4.192.168.255.129' 'os10bgp4V2PeerOutTotalMessages.1.1.4.192.168.255.129' 'os10bgp4V2PeerFsmEstablishedTime.1.1.4.192.168.255.129' 'os10bgp4V2PeerInUpdatesElapsedTime.1.1.4.192.168.255.129' 'os10bgp4V2PeerLocalAddr.1.1.4.192.168.255.129' 'os10bgp4V2PeerDescription.1.1.4.192.168.255.129' 'os10bgp4V2PeerLastErrorCodeReceived.1.1.4.192.168.255.129' 'os10bgp4V2PeerLastErrorSubCodeReceived.1.1.4.192.168.255.129' 'os10bgp4V2PeerLastErrorReceivedText.1.1.4.192.168.255.129']
  140. os10bgp4V2PeerState.1.ipv4."*" = established
  141. os10bgp4V2PeerAdminStatus.1.ipv4."*" = halted
  142. os10bgp4V2PeerInUpdates.1.ipv4."*" = 11048
  143. os10bgp4V2PeerOutUpdates.1.ipv4."*" = 23852
  144. os10bgp4V2PeerInTotalMessages.1.ipv4."*" = 139328
  145. os10bgp4V2PeerOutTotalMessages.1.ipv4."*" = 147118
  146. os10bgp4V2PeerFsmEstablishedTime.1.ipv4."*" = 1318685000
  147. os10bgp4V2PeerInUpdatesElapsedTime.1.ipv4."*" = 137500
  148. os10bgp4V2PeerLocalAddr.1.ipv4."*" = "*"
  149. os10bgp4V2PeerDescription.1.ipv4."*" = No Such Instance currently exists at this OID
  150. os10bgp4V2PeerLastErrorCodeReceived.1.ipv4."*" = 0
  151. os10bgp4V2PeerLastErrorSubCodeReceived.1.ipv4."*" = 0
  152. os10bgp4V2PeerLastErrorReceivedText.1.ipv4."*" = Reset by peer
  153.  
  154. SQL[select `ifIndex` from `ports` inner join `ipv4_addresses` on `ports`.`port_id` = `ipv4_addresses`.`port_id` where `ipv4_address` = ? limit 1 ["192.168.255.132"] 0.7ms]
  155.  
  156. array (
  157.   'bgpPeerState' => 'established',
  158.   'bgpPeerAdminStatus' => 'halted',
  159.   'bgpPeerInUpdates' => '11048',
  160.   'bgpPeerOutUpdates' => '23852',
  161.   'bgpPeerInTotalMessages' => '139328',
  162.   'bgpPeerOutTotalMessages' => '147118',
  163.   'bgpPeerFsmEstablishedTime' => '1318685000',
  164.   'bgpPeerInUpdateElapsedTime' => '137500',
  165.   'bgpLocalAddr' => '192.168.255.132',
  166.   'bgpPeerDescr' => '',
  167.   'bgpPeerLastErrorCode' => '0',
  168.   'bgpPeerLastErrorSubCode' => '0',
  169.   'bgpPeerLastErrorText' => 'Reset by peer',
  170.   'bgpPeerIface' => 49,
  171. )
  172. RRD[last HOSTNAME/bgp-192.168.255.129.rrd  --daemon 192.168.2.230:42217]
  173. RRD[update HOSTNAME/bgp-192.168.255.129.rrd N:23852:11048:147118:139328:1318685000 --daemon 192.168.2.230:42217]
  174. SQL[UPDATE `bgpPeers` set `bgpPeerFsmEstablishedTime`=?,`bgpPeerInUpdateElapsedTime`=? WHERE `device_id` = ? AND `bgpPeerIdentifier` = ? ["1318685000","137500",55,"192.168.255.129"] 608.05ms]
  175.  
  176. SQL[SELECT * FROM bgpPeers_cbgp WHERE `device_id` = ? AND bgpPeerIdentifier = ? [55,"192.168.255.129"] 1.91ms]
  177.