ℹ️ Your data is safe here... unless you make the SNIP gods angry. And let's just say they have a really bad sense of humor.

From Alan W, 6 Years ago, written in Plain Text.
Embed
  1. alan@libre-nms:/opt/librenms$ sudo ./discovery.php -d -m processors -h 172.22.238.3
  2. LibreNMS Discovery
  3. ===================================
  4. Version info:
  5. Commit SHA: a2acccd531c6f92e5277fa0c55df469aae791796
  6. Commit Date: 1517947572
  7. DB Schema: 234
  8. PHP: 7.0.22-0ubuntu0.16.04.1
  9. MySQL: 10.0.33-MariaDB-0ubuntu0.16.04.1
  10. RRDTool: 1.5.5
  11. SNMP: NET-SNMP 5.7.3
  12. ==================================DEBUG!
  13. Updating os_def.cache... Done
  14. SQL[SELECT * FROM `devices` WHERE disabled = 0 AND snmp_disable = 0 AND `hostname` LIKE '172.22.238.3' ORDER BY device_id DESC]
  15. SQL[SELECT * FROM devices_attribs WHERE `device_id` = '152']
  16. 172.22.238.3 152 iosxe SQL[INSERT INTO `device_perf` (`xmt`,`rcv`,`loss`,`min`,`max`,`avg`,`device_id`,`timestamp`)  VALUES ('3','3','0','2.68','3.04','2.84','152',NOW())]
  17. SNMP Check response code: 0
  18. SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '152' AND `attrib_type` = 'poll_mib' ]
  19. Attempting to initialize OS: iosxe
  20. OS initialized: LibreNMS\OS\Iosxe
  21.  
  22. Modules status: Global+ OS  Device  
  23. #### Load disco module core ####
  24. SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -OUQn -m SNMPv2-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/cisco -t 3 -r 5 udp:HOSTNAME:161 sysName.0 sysObjectID.0 sysDescr.0]
  25. .*.*.0 = FL202-238.3.binghamton.edu
  26. .*.*.0 = .*.*.2066
  27. .*.*.0 = Cisco IOS Software, IOS-XE Software, Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 03.07.05E RELEASE SOFTWARE (fc1)
  28. Technical Support: http://www.cisco.com/techsupport
  29. Copyright (c) 1986-2017 by Cisco Systems, Inc.
  30. Compiled Fri 10-Feb-
  31.  
  32.  
  33. >> Runtime for discovery module 'core': 0.0160 seconds with 1312 bytes
  34. >> SNMP: [2/0.03s] MySQL: [8/0.03s] RRD: [0/0.00s]
  35. #### Unload disco module core ####
  36.  
  37. Modules status: Global+ OS+ Device  
  38. #### Load disco module processors ####
  39. No YAML Discovery data.
  40. SNMP[/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -OQUsetX -m CISCO-PROCESS-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/cisco -t 3 -r 5 udp:HOSTNAME:161 cpmCPU]
  41. cpmCPUTotalPhysicalIndex[1000] = 1000
  42. cpmCPUTotal5sec[1000] = 3
  43. cpmCPUTotal1min[1000] = 3
  44. cpmCPUTotal5min[1000] = 3
  45. cpmCPUTotal5secRev[1000] = 3
  46. cpmCPUTotal1minRev[1000] = 3
  47. cpmCPUTotal5minRev[1000] = 3
  48. cpmCPUMonInterval[1000] = 5
  49. cpmCPUTotalMonIntervalValue[1000] = 3
  50. cpmCPUInterruptMonIntervalValue[1000] = 0
  51. cpmCPUMemoryUsed[1000] = 1530036
  52. cpmCPUMemoryFree[1000] = 2407272
  53. cpmCPUMemoryKernelReserved[1000] = 222060
  54. cpmCPUMemoryLowest[1000] = 1796564220
  55. cpmCPUTotalEntry[16].1000 = 0
  56. cpmCPUTotalEntry[17].1000 = 0
  57. cpmCPUTotalEntry[18].1000 = 0
  58. cpmCPUTotalEntry[19].1000 = 0
  59. cpmCPUTotalEntry[20].1000 = 0
  60. cpmCPUTotalEntry[21].1000 = 0
  61. cpmCPUTotalEntry[22].1000 = 0
  62. cpmCPUTotalEntry[23].1000 = 0
  63. cpmCPU.*0.0 = 0
  64. cpmCPU.*0.1 = 0
  65. cpmCPU.*0.2 = 0
  66. cpmCPU.*0.3 = 0
  67. cpmCPU.*0.0 = 6
  68. cpmCPU.*0.1 = 5
  69. cpmCPU.*0.2 = 1
  70. cpmCPU.*0.3 = 0
  71. cpmCPU.*0.0 = 8
  72. cpmCPU.*0.1 = 2
  73. cpmCPU.*0.2 = 2
  74. cpmCPU.*0.3 = 1
  75. cpmCPU.*0.0 = 9
  76. cpmCPU.*0.1 = 2
  77. cpmCPU.*0.2 = 2
  78. cpmCPU.*0.3 = 2
  79.  
  80. SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -Oqv -m ENTITY-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/cisco -t 3 -r 5 udp:HOSTNAME:161 entPhysicalName.1000]
  81. Switch 1
  82.  
  83. Discovered LibreNMS\Device\Processor Array
  84. (
  85.     [processor_id] =>
  86.     [entPhysicalIndex] => 1000
  87.     [hrDeviceIndex] => 0
  88.     [device_id] => 152
  89.     [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.1000
  90.     [processor_index] => 1000
  91.     [processor_type] => cpm
  92.     [processor_usage] => 3
  93.     [processor_descr] => Switch 1
  94.     [processor_precision] => 1
  95.     [processor_perc_warn] => 75
  96. )
  97. Discovered LibreNMS\Device\Processor Array
  98. (
  99.     [processor_id] =>
  100.     [entPhysicalIndex] => 0
  101.     [hrDeviceIndex] => 0
  102.     [device_id] => 152
  103.     [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.2.1000.0
  104.     [processor_index] => cpmCPU.2.1.2.1000.0
  105.     [processor_type] => cpm
  106.     [processor_usage] => 0
  107.     [processor_descr] => Switch 1
  108.     [processor_precision] => 1
  109.     [processor_perc_warn] => 75
  110. )
  111. Discovered LibreNMS\Device\Processor Array
  112. (
  113.     [processor_id] =>
  114.     [entPhysicalIndex] => 0
  115.     [hrDeviceIndex] => 0
  116.     [device_id] => 152
  117.     [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.2.1000.1
  118.     [processor_index] => cpmCPU.2.1.2.1000.1
  119.     [processor_type] => cpm
  120.     [processor_usage] => 0
  121.     [processor_descr] => Switch 1
  122.     [processor_precision] => 1
  123.     [processor_perc_warn] => 75
  124. )
  125. Discovered LibreNMS\Device\Processor Array
  126. (
  127.     [processor_id] =>
  128.     [entPhysicalIndex] => 0
  129.     [hrDeviceIndex] => 0
  130.     [device_id] => 152
  131.     [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.2.1000.2
  132.     [processor_index] => cpmCPU.2.1.2.1000.2
  133.     [processor_type] => cpm
  134.     [processor_usage] => 0
  135.     [processor_descr] => Switch 1
  136.     [processor_precision] => 1
  137.     [processor_perc_warn] => 75
  138. )
  139. Discovered LibreNMS\Device\Processor Array
  140. (
  141.     [processor_id] =>
  142.     [entPhysicalIndex] => 0
  143.     [hrDeviceIndex] => 0
  144.     [device_id] => 152
  145.     [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.2.1000.3
  146.     [processor_index] => cpmCPU.2.1.2.1000.3
  147.     [processor_type] => cpm
  148.     [processor_usage] => 0
  149.     [processor_descr] => Switch 1
  150.     [processor_precision] => 1
  151.     [processor_perc_warn] => 75
  152. )
  153. Discovered LibreNMS\Device\Processor Array
  154. (
  155.     [processor_id] =>
  156.     [entPhysicalIndex] => 6
  157.     [hrDeviceIndex] => 0
  158.     [device_id] => 152
  159.     [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.3.1000.0
  160.     [processor_index] => cpmCPU.2.1.3.1000.0
  161.     [processor_type] => cpm
  162.     [processor_usage] => 6
  163.     [processor_descr] => Switch 1
  164.     [processor_precision] => 1
  165.     [processor_perc_warn] => 75
  166. )
  167. Discovered LibreNMS\Device\Processor Array
  168. (
  169.     [processor_id] =>
  170.     [entPhysicalIndex] => 5
  171.     [hrDeviceIndex] => 0
  172.     [device_id] => 152
  173.     [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.3.1000.1
  174.     [processor_index] => cpmCPU.2.1.3.1000.1
  175.     [processor_type] => cpm
  176.     [processor_usage] => 5
  177.     [processor_descr] => Switch 1
  178.     [processor_precision] => 1
  179.     [processor_perc_warn] => 75
  180. )
  181. Discovered LibreNMS\Device\Processor Array
  182. (
  183.     [processor_id] =>
  184.     [entPhysicalIndex] => 1
  185.     [hrDeviceIndex] => 0
  186.     [device_id] => 152
  187.     [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.3.1000.2
  188.     [processor_index] => cpmCPU.2.1.3.1000.2
  189.     [processor_type] => cpm
  190.     [processor_usage] => 1
  191.     [processor_descr] => Switch 1
  192.     [processor_precision] => 1
  193.     [processor_perc_warn] => 75
  194. )
  195. Discovered LibreNMS\Device\Processor Array
  196. (
  197.     [processor_id] =>
  198.     [entPhysicalIndex] => 0
  199.     [hrDeviceIndex] => 0
  200.     [device_id] => 152
  201.     [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.3.1000.3
  202.     [processor_index] => cpmCPU.2.1.3.1000.3
  203.     [processor_type] => cpm
  204.     [processor_usage] => 0
  205.     [processor_descr] => Switch 1
  206.     [processor_precision] => 1
  207.     [processor_perc_warn] => 75
  208. )
  209. Discovered LibreNMS\Device\Processor Array
  210. (
  211.     [processor_id] =>
  212.     [entPhysicalIndex] => 8
  213.     [hrDeviceIndex] => 0
  214.     [device_id] => 152
  215.     [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.4.1000.0
  216.     [processor_index] => cpmCPU.2.1.4.1000.0
  217.     [processor_type] => cpm
  218.     [processor_usage] => 8
  219.     [processor_descr] => Switch 1
  220.     [processor_precision] => 1
  221.     [processor_perc_warn] => 75
  222. )
  223. Discovered LibreNMS\Device\Processor Array
  224. (
  225.     [processor_id] =>
  226.     [entPhysicalIndex] => 2
  227.     [hrDeviceIndex] => 0
  228.     [device_id] => 152
  229.     [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.4.1000.1
  230.     [processor_index] => cpmCPU.2.1.4.1000.1
  231.     [processor_type] => cpm
  232.     [processor_usage] => 2
  233.     [processor_descr] => Switch 1
  234.     [processor_precision] => 1
  235.     [processor_perc_warn] => 75
  236. )
  237. Discovered LibreNMS\Device\Processor Array
  238. (
  239.     [processor_id] =>
  240.     [entPhysicalIndex] => 2
  241.     [hrDeviceIndex] => 0
  242.     [device_id] => 152
  243.     [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.4.1000.2
  244.     [processor_index] => cpmCPU.2.1.4.1000.2
  245.     [processor_type] => cpm
  246.     [processor_usage] => 2
  247.     [processor_descr] => Switch 1
  248.     [processor_precision] => 1
  249.     [processor_perc_warn] => 75
  250. )
  251. Discovered LibreNMS\Device\Processor Array
  252. (
  253.     [processor_id] =>
  254.     [entPhysicalIndex] => 1
  255.     [hrDeviceIndex] => 0
  256.     [device_id] => 152
  257.     [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.4.1000.3
  258.     [processor_index] => cpmCPU.2.1.4.1000.3
  259.     [processor_type] => cpm
  260.     [processor_usage] => 1
  261.     [processor_descr] => Switch 1
  262.     [processor_precision] => 1
  263.     [processor_perc_warn] => 75
  264. )
  265. Discovered LibreNMS\Device\Processor Array
  266. (
  267.     [processor_id] =>
  268.     [entPhysicalIndex] => 9
  269.     [hrDeviceIndex] => 0
  270.     [device_id] => 152
  271.     [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.5.1000.0
  272.     [processor_index] => cpmCPU.2.1.5.1000.0
  273.     [processor_type] => cpm
  274.     [processor_usage] => 9
  275.     [processor_descr] => Switch 1
  276.     [processor_precision] => 1
  277.     [processor_perc_warn] => 75
  278. )
  279. Discovered LibreNMS\Device\Processor Array
  280. (
  281.     [processor_id] =>
  282.     [entPhysicalIndex] => 2
  283.     [hrDeviceIndex] => 0
  284.     [device_id] => 152
  285.     [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.5.1000.1
  286.     [processor_index] => cpmCPU.2.1.5.1000.1
  287.     [processor_type] => cpm
  288.     [processor_usage] => 2
  289.     [processor_descr] => Switch 1
  290.     [processor_precision] => 1
  291.     [processor_perc_warn] => 75
  292. )
  293. Discovered LibreNMS\Device\Processor Array
  294. (
  295.     [processor_id] =>
  296.     [entPhysicalIndex] => 2
  297.     [hrDeviceIndex] => 0
  298.     [device_id] => 152
  299.     [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.5.1000.2
  300.     [processor_index] => cpmCPU.2.1.5.1000.2
  301.     [processor_type] => cpm
  302.     [processor_usage] => 2
  303.     [processor_descr] => Switch 1
  304.     [processor_precision] => 1
  305.     [processor_perc_warn] => 75
  306. )
  307. Discovered LibreNMS\Device\Processor Array
  308. (
  309.     [processor_id] =>
  310.     [entPhysicalIndex] => 2
  311.     [hrDeviceIndex] => 0
  312.     [device_id] => 152
  313.     [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.5.1000.3
  314.     [processor_index] => cpmCPU.2.1.5.1000.3
  315.     [processor_type] => cpm
  316.     [processor_usage] => 2
  317.     [processor_descr] => Switch 1
  318.     [processor_precision] => 1
  319.     [processor_perc_warn] => 75
  320. )
  321. SQL[SELECT * FROM `processors` WHERE  device_id='152' AND processor_index='1000' AND processor_type='cpm']
  322. .SQL[SELECT * FROM `processors` WHERE  device_id='152' AND processor_index='cpmCPU.2.1.2.1000.0' AND processor_type='cpm']
  323. .SQL[SELECT * FROM `processors` WHERE  device_id='152' AND processor_index='cpmCPU.2.1.2.1000.1' AND processor_type='cpm']
  324. .SQL[SELECT * FROM `processors` WHERE  device_id='152' AND processor_index='cpmCPU.2.1.2.1000.2' AND processor_type='cpm']
  325. .SQL[SELECT * FROM `processors` WHERE  device_id='152' AND processor_index='cpmCPU.2.1.2.1000.3' AND processor_type='cpm']
  326. .SQL[SELECT * FROM `processors` WHERE  device_id='152' AND processor_index='cpmCPU.2.1.3.1000.0' AND processor_type='cpm']
  327. SQL[UPDATE `processors` set `entPhysicalIndex` ='6' WHERE `processor_id`='2655']
  328. USQL[SELECT * FROM `processors` WHERE  device_id='152' AND processor_index='cpmCPU.2.1.3.1000.1' AND processor_type='cpm']
  329. SQL[UPDATE `processors` set `entPhysicalIndex` ='5' WHERE `processor_id`='2656']
  330. USQL[SELECT * FROM `processors` WHERE  device_id='152' AND processor_index='cpmCPU.2.1.3.1000.2' AND processor_type='cpm']
  331. .SQL[SELECT * FROM `processors` WHERE  device_id='152' AND processor_index='cpmCPU.2.1.3.1000.3' AND processor_type='cpm']
  332. .SQL[SELECT * FROM `processors` WHERE  device_id='152' AND processor_index='cpmCPU.2.1.4.1000.0' AND processor_type='cpm']
  333. .SQL[SELECT * FROM `processors` WHERE  device_id='152' AND processor_index='cpmCPU.2.1.4.1000.1' AND processor_type='cpm']
  334. .SQL[SELECT * FROM `processors` WHERE  device_id='152' AND processor_index='cpmCPU.2.1.4.1000.2' AND processor_type='cpm']
  335. .SQL[SELECT * FROM `processors` WHERE  device_id='152' AND processor_index='cpmCPU.2.1.4.1000.3' AND processor_type='cpm']
  336. .SQL[SELECT * FROM `processors` WHERE  device_id='152' AND processor_index='cpmCPU.2.1.5.1000.0' AND processor_type='cpm']
  337. .SQL[SELECT * FROM `processors` WHERE  device_id='152' AND processor_index='cpmCPU.2.1.5.1000.1' AND processor_type='cpm']
  338. .SQL[SELECT * FROM `processors` WHERE  device_id='152' AND processor_index='cpmCPU.2.1.5.1000.2' AND processor_type='cpm']
  339. SQL[UPDATE `processors` set `entPhysicalIndex` ='2' WHERE `processor_id`='2665']
  340. USQL[SELECT * FROM `processors` WHERE  device_id='152' AND processor_index='cpmCPU.2.1.5.1000.3' AND processor_type='cpm']
  341. .SQL[SELECT * FROM `processors` WHERE `device_id`='152' AND `processor_id` NOT IN ('112','2651','2652','2653','2654','2655','2656','2657','2658','2659','2660','2661','2662','2663','2664','2665','2666')]
  342. SQL[DELETE T FROM `processors` T LEFT JOIN `devices` ON `devices`.`device_id` = T.`device_id` WHERE `devices`.`device_id` IS NULL]
  343.  
  344.  
  345. >> Runtime for discovery module 'processors': 0.3060 seconds with 71264 bytes
  346. >> SNMP: [1/0.02s] MySQL: [22/0.03s] RRD: [0/0.00s]
  347. #### Unload disco module processors ####
  348.  
  349. SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '152' AND `attrib_type` = 'poll_mib' ]
  350. SQL[UPDATE `devices` set `last_discovered` =NOW(),`last_discovered_timetaken` ='1.357' WHERE `device_id` = '152']
  351. Discovered in 1.357 seconds
  352.  
  353. SQL[INSERT INTO `perf_times` (`type`,`doing`,`start`,`duration`,`devices`,`poller`)  VALUES ('discover','172.22.238.3','1517971441.8523','2.182','1','libre-nms')]
  354. ./discovery.php 172.22.238.3 2018-02-06 21:44:04 - 1 devices discovered in 2.182 secs
  355. SNMP [3/0.05s]: Get[3/0.05s] Getnext[0/0.00s] Walk[0/0.00s]
  356. MySQL [33/0.06s]: Cell[2/0.00s] Row[19/0.01s] Rows[5/0.03s] Column[0/0.00s] Update[4/0.00s] Insert[2/0.00s] Delete[1/0.01s]
  357. RRD [0/0.00s]: Update[0/0.00s] Create [0/0.00s] Other[0/0.00s]
captcha