alan@libre-nms:/opt/librenms$ sudo ./discovery.php -d -m processors -h 172.22.238.3 LibreNMS Discovery =================================== Version info: Commit SHA: a2acccd531c6f92e5277fa0c55df469aae791796 Commit Date: 1517947572 DB Schema: 234 PHP: 7.0.22-0ubuntu0.16.04.1 MySQL: 10.0.33-MariaDB-0ubuntu0.16.04.1 RRDTool: 1.5.5 SNMP: NET-SNMP 5.7.3 ==================================DEBUG! Updating os_def.cache... Done SQL[SELECT * FROM `devices` WHERE disabled = 0 AND snmp_disable = 0 AND `hostname` LIKE '172.22.238.3' ORDER BY device_id DESC] SQL[SELECT * FROM devices_attribs WHERE `device_id` = '152'] 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())] SNMP Check response code: 0 SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '152' AND `attrib_type` = 'poll_mib' ] Attempting to initialize OS: iosxe OS initialized: LibreNMS\OS\Iosxe Modules status: Global+ OS Device #### Load disco module core #### 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] .*.*.0 = FL202-238.3.binghamton.edu .*.*.0 = .*.*.2066 .*.*.0 = Cisco IOS Software, IOS-XE Software, Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 03.07.05E RELEASE SOFTWARE (fc1) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2017 by Cisco Systems, Inc. Compiled Fri 10-Feb- >> Runtime for discovery module 'core': 0.0160 seconds with 1312 bytes >> SNMP: [2/0.03s] MySQL: [8/0.03s] RRD: [0/0.00s] #### Unload disco module core #### Modules status: Global+ OS+ Device #### Load disco module processors #### No YAML Discovery data. 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] cpmCPUTotalPhysicalIndex[1000] = 1000 cpmCPUTotal5sec[1000] = 3 cpmCPUTotal1min[1000] = 3 cpmCPUTotal5min[1000] = 3 cpmCPUTotal5secRev[1000] = 3 cpmCPUTotal1minRev[1000] = 3 cpmCPUTotal5minRev[1000] = 3 cpmCPUMonInterval[1000] = 5 cpmCPUTotalMonIntervalValue[1000] = 3 cpmCPUInterruptMonIntervalValue[1000] = 0 cpmCPUMemoryUsed[1000] = 1530036 cpmCPUMemoryFree[1000] = 2407272 cpmCPUMemoryKernelReserved[1000] = 222060 cpmCPUMemoryLowest[1000] = 1796564220 cpmCPUTotalEntry[16].1000 = 0 cpmCPUTotalEntry[17].1000 = 0 cpmCPUTotalEntry[18].1000 = 0 cpmCPUTotalEntry[19].1000 = 0 cpmCPUTotalEntry[20].1000 = 0 cpmCPUTotalEntry[21].1000 = 0 cpmCPUTotalEntry[22].1000 = 0 cpmCPUTotalEntry[23].1000 = 0 cpmCPU.*0.0 = 0 cpmCPU.*0.1 = 0 cpmCPU.*0.2 = 0 cpmCPU.*0.3 = 0 cpmCPU.*0.0 = 6 cpmCPU.*0.1 = 5 cpmCPU.*0.2 = 1 cpmCPU.*0.3 = 0 cpmCPU.*0.0 = 8 cpmCPU.*0.1 = 2 cpmCPU.*0.2 = 2 cpmCPU.*0.3 = 1 cpmCPU.*0.0 = 9 cpmCPU.*0.1 = 2 cpmCPU.*0.2 = 2 cpmCPU.*0.3 = 2 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] Switch 1 Discovered LibreNMS\Device\Processor Array ( [processor_id] => [entPhysicalIndex] => 1000 [hrDeviceIndex] => 0 [device_id] => 152 [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.1000 [processor_index] => 1000 [processor_type] => cpm [processor_usage] => 3 [processor_descr] => Switch 1 [processor_precision] => 1 [processor_perc_warn] => 75 ) Discovered LibreNMS\Device\Processor Array ( [processor_id] => [entPhysicalIndex] => 0 [hrDeviceIndex] => 0 [device_id] => 152 [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.2.1000.0 [processor_index] => cpmCPU.2.1.2.1000.0 [processor_type] => cpm [processor_usage] => 0 [processor_descr] => Switch 1 [processor_precision] => 1 [processor_perc_warn] => 75 ) Discovered LibreNMS\Device\Processor Array ( [processor_id] => [entPhysicalIndex] => 0 [hrDeviceIndex] => 0 [device_id] => 152 [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.2.1000.1 [processor_index] => cpmCPU.2.1.2.1000.1 [processor_type] => cpm [processor_usage] => 0 [processor_descr] => Switch 1 [processor_precision] => 1 [processor_perc_warn] => 75 ) Discovered LibreNMS\Device\Processor Array ( [processor_id] => [entPhysicalIndex] => 0 [hrDeviceIndex] => 0 [device_id] => 152 [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.2.1000.2 [processor_index] => cpmCPU.2.1.2.1000.2 [processor_type] => cpm [processor_usage] => 0 [processor_descr] => Switch 1 [processor_precision] => 1 [processor_perc_warn] => 75 ) Discovered LibreNMS\Device\Processor Array ( [processor_id] => [entPhysicalIndex] => 0 [hrDeviceIndex] => 0 [device_id] => 152 [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.2.1000.3 [processor_index] => cpmCPU.2.1.2.1000.3 [processor_type] => cpm [processor_usage] => 0 [processor_descr] => Switch 1 [processor_precision] => 1 [processor_perc_warn] => 75 ) Discovered LibreNMS\Device\Processor Array ( [processor_id] => [entPhysicalIndex] => 6 [hrDeviceIndex] => 0 [device_id] => 152 [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.3.1000.0 [processor_index] => cpmCPU.2.1.3.1000.0 [processor_type] => cpm [processor_usage] => 6 [processor_descr] => Switch 1 [processor_precision] => 1 [processor_perc_warn] => 75 ) Discovered LibreNMS\Device\Processor Array ( [processor_id] => [entPhysicalIndex] => 5 [hrDeviceIndex] => 0 [device_id] => 152 [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.3.1000.1 [processor_index] => cpmCPU.2.1.3.1000.1 [processor_type] => cpm [processor_usage] => 5 [processor_descr] => Switch 1 [processor_precision] => 1 [processor_perc_warn] => 75 ) Discovered LibreNMS\Device\Processor Array ( [processor_id] => [entPhysicalIndex] => 1 [hrDeviceIndex] => 0 [device_id] => 152 [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.3.1000.2 [processor_index] => cpmCPU.2.1.3.1000.2 [processor_type] => cpm [processor_usage] => 1 [processor_descr] => Switch 1 [processor_precision] => 1 [processor_perc_warn] => 75 ) Discovered LibreNMS\Device\Processor Array ( [processor_id] => [entPhysicalIndex] => 0 [hrDeviceIndex] => 0 [device_id] => 152 [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.3.1000.3 [processor_index] => cpmCPU.2.1.3.1000.3 [processor_type] => cpm [processor_usage] => 0 [processor_descr] => Switch 1 [processor_precision] => 1 [processor_perc_warn] => 75 ) Discovered LibreNMS\Device\Processor Array ( [processor_id] => [entPhysicalIndex] => 8 [hrDeviceIndex] => 0 [device_id] => 152 [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.4.1000.0 [processor_index] => cpmCPU.2.1.4.1000.0 [processor_type] => cpm [processor_usage] => 8 [processor_descr] => Switch 1 [processor_precision] => 1 [processor_perc_warn] => 75 ) Discovered LibreNMS\Device\Processor Array ( [processor_id] => [entPhysicalIndex] => 2 [hrDeviceIndex] => 0 [device_id] => 152 [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.4.1000.1 [processor_index] => cpmCPU.2.1.4.1000.1 [processor_type] => cpm [processor_usage] => 2 [processor_descr] => Switch 1 [processor_precision] => 1 [processor_perc_warn] => 75 ) Discovered LibreNMS\Device\Processor Array ( [processor_id] => [entPhysicalIndex] => 2 [hrDeviceIndex] => 0 [device_id] => 152 [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.4.1000.2 [processor_index] => cpmCPU.2.1.4.1000.2 [processor_type] => cpm [processor_usage] => 2 [processor_descr] => Switch 1 [processor_precision] => 1 [processor_perc_warn] => 75 ) Discovered LibreNMS\Device\Processor Array ( [processor_id] => [entPhysicalIndex] => 1 [hrDeviceIndex] => 0 [device_id] => 152 [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.4.1000.3 [processor_index] => cpmCPU.2.1.4.1000.3 [processor_type] => cpm [processor_usage] => 1 [processor_descr] => Switch 1 [processor_precision] => 1 [processor_perc_warn] => 75 ) Discovered LibreNMS\Device\Processor Array ( [processor_id] => [entPhysicalIndex] => 9 [hrDeviceIndex] => 0 [device_id] => 152 [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.5.1000.0 [processor_index] => cpmCPU.2.1.5.1000.0 [processor_type] => cpm [processor_usage] => 9 [processor_descr] => Switch 1 [processor_precision] => 1 [processor_perc_warn] => 75 ) Discovered LibreNMS\Device\Processor Array ( [processor_id] => [entPhysicalIndex] => 2 [hrDeviceIndex] => 0 [device_id] => 152 [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.5.1000.1 [processor_index] => cpmCPU.2.1.5.1000.1 [processor_type] => cpm [processor_usage] => 2 [processor_descr] => Switch 1 [processor_precision] => 1 [processor_perc_warn] => 75 ) Discovered LibreNMS\Device\Processor Array ( [processor_id] => [entPhysicalIndex] => 2 [hrDeviceIndex] => 0 [device_id] => 152 [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.5.1000.2 [processor_index] => cpmCPU.2.1.5.1000.2 [processor_type] => cpm [processor_usage] => 2 [processor_descr] => Switch 1 [processor_precision] => 1 [processor_perc_warn] => 75 ) Discovered LibreNMS\Device\Processor Array ( [processor_id] => [entPhysicalIndex] => 2 [hrDeviceIndex] => 0 [device_id] => 152 [processor_oid] => .1.3.6.1.4.1.9.9.109.1.1.1.1.8.cpmCPU.2.1.5.1000.3 [processor_index] => cpmCPU.2.1.5.1000.3 [processor_type] => cpm [processor_usage] => 2 [processor_descr] => Switch 1 [processor_precision] => 1 [processor_perc_warn] => 75 ) SQL[SELECT * FROM `processors` WHERE device_id='152' AND processor_index='1000' AND processor_type='cpm'] .SQL[SELECT * FROM `processors` WHERE device_id='152' AND processor_index='cpmCPU.2.1.2.1000.0' AND processor_type='cpm'] .SQL[SELECT * FROM `processors` WHERE device_id='152' AND processor_index='cpmCPU.2.1.2.1000.1' AND processor_type='cpm'] .SQL[SELECT * FROM `processors` WHERE device_id='152' AND processor_index='cpmCPU.2.1.2.1000.2' AND processor_type='cpm'] .SQL[SELECT * FROM `processors` WHERE device_id='152' AND processor_index='cpmCPU.2.1.2.1000.3' AND processor_type='cpm'] .SQL[SELECT * FROM `processors` WHERE device_id='152' AND processor_index='cpmCPU.2.1.3.1000.0' AND processor_type='cpm'] SQL[UPDATE `processors` set `entPhysicalIndex` ='6' WHERE `processor_id`='2655'] USQL[SELECT * FROM `processors` WHERE device_id='152' AND processor_index='cpmCPU.2.1.3.1000.1' AND processor_type='cpm'] SQL[UPDATE `processors` set `entPhysicalIndex` ='5' WHERE `processor_id`='2656'] USQL[SELECT * FROM `processors` WHERE device_id='152' AND processor_index='cpmCPU.2.1.3.1000.2' AND processor_type='cpm'] .SQL[SELECT * FROM `processors` WHERE device_id='152' AND processor_index='cpmCPU.2.1.3.1000.3' AND processor_type='cpm'] .SQL[SELECT * FROM `processors` WHERE device_id='152' AND processor_index='cpmCPU.2.1.4.1000.0' AND processor_type='cpm'] .SQL[SELECT * FROM `processors` WHERE device_id='152' AND processor_index='cpmCPU.2.1.4.1000.1' AND processor_type='cpm'] .SQL[SELECT * FROM `processors` WHERE device_id='152' AND processor_index='cpmCPU.2.1.4.1000.2' AND processor_type='cpm'] .SQL[SELECT * FROM `processors` WHERE device_id='152' AND processor_index='cpmCPU.2.1.4.1000.3' AND processor_type='cpm'] .SQL[SELECT * FROM `processors` WHERE device_id='152' AND processor_index='cpmCPU.2.1.5.1000.0' AND processor_type='cpm'] .SQL[SELECT * FROM `processors` WHERE device_id='152' AND processor_index='cpmCPU.2.1.5.1000.1' AND processor_type='cpm'] .SQL[SELECT * FROM `processors` WHERE device_id='152' AND processor_index='cpmCPU.2.1.5.1000.2' AND processor_type='cpm'] SQL[UPDATE `processors` set `entPhysicalIndex` ='2' WHERE `processor_id`='2665'] USQL[SELECT * FROM `processors` WHERE device_id='152' AND processor_index='cpmCPU.2.1.5.1000.3' AND processor_type='cpm'] .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')] SQL[DELETE T FROM `processors` T LEFT JOIN `devices` ON `devices`.`device_id` = T.`device_id` WHERE `devices`.`device_id` IS NULL] >> Runtime for discovery module 'processors': 0.3060 seconds with 71264 bytes >> SNMP: [1/0.02s] MySQL: [22/0.03s] RRD: [0/0.00s] #### Unload disco module processors #### SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = '152' AND `attrib_type` = 'poll_mib' ] SQL[UPDATE `devices` set `last_discovered` =NOW(),`last_discovered_timetaken` ='1.357' WHERE `device_id` = '152'] Discovered in 1.357 seconds SQL[INSERT INTO `perf_times` (`type`,`doing`,`start`,`duration`,`devices`,`poller`) VALUES ('discover','172.22.238.3','1517971441.8523','2.182','1','libre-nms')] ./discovery.php 172.22.238.3 2018-02-06 21:44:04 - 1 devices discovered in 2.182 secs SNMP [3/0.05s]: Get[3/0.05s] Getnext[0/0.00s] Walk[0/0.00s] 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] RRD [0/0.00s]: Update[0/0.00s] Create [0/0.00s] Other[0/0.00s]