- LibreNMS Discovery
- ===================================
- Version info:
- Commit SHA: 1aa971375cc59819f58b3d2bb8eb7a90c14f4841
- Commit Date: 1510181843
- DB Schema: 215
- PHP: 7.0.22-0ubuntu0.16.04.1
- MySQL: 5.7.20-0ubuntu0.16.04.1-log
- RRDTool: 1.5.5
- SNMP: NET-SNMP 5.7.3
- ==================================DEBUG!
- SQL[[0;33mSELECT * FROM `devices` WHERE status = 1 AND disabled = 0 AND `hostname` LIKE 'hp8%' ORDER BY device_id DESC[0m]
- SQL[[0;33mSELECT * FROM devices_attribs WHERE `device_id` = '111'[0m]
- hp8600.homeserv.lan 111 jetdirect SQL[[0;33mINSERT INTO `device_perf` (`xmt`,`rcv`,`loss`,`min`,`max`,`avg`,`device_id`,`timestamp`) VALUES ('3','3','0','1.48','2.90','2.00','111',NOW())[0m]
- SNMP Check response code: 0
- SQL[[0;33mSELECT attrib_value FROM devices_attribs WHERE `device_id` = '111' AND `attrib_type` = 'poll_mib' [0m]
- Modules status: Global+ OS+ Device
- #### Load disco module toner ####
- Toner: SNMP[[0;36m/usr/bin/snmpwalk -v1 -c 'public' -OQUs -m Printer-MIB -M /opt/librenms/mibs udp:hp8600.homeserv.lan:161 prtMarkerColorantMarkerIndex[0m]
- prtMarkerColorantMarkerIndex.0.1 = 1
- SNMP[[0;36m/usr/bin/snmpwalk -v1 -c 'public' -OQUs -m Printer-MIB -M /opt/librenms/mibs udp:hp8600.homeserv.lan:161 prtMarkerSuppliesLevel[0m]
- prtMarkerSuppliesLevel.0.1 = 135
- prtMarkerSuppliesLevel.0.2 = 200
- prtMarkerSuppliesLevel.0.3 = 188
- prtMarkerSuppliesLevel.0.4 = 223
- SNMP[[0;36m/usr/bin/snmpwalk -v1 -c 'public' -OQUs -m Printer-MIB -M /opt/librenms/mibs udp:hp8600.homeserv.lan:161 prtMarkerSuppliesMaxCapacity[0m]
- prtMarkerSuppliesMaxCapacity.0.1 = 674
- prtMarkerSuppliesMaxCapacity.0.2 = 230
- prtMarkerSuppliesMaxCapacity.0.3 = 216
- prtMarkerSuppliesMaxCapacity.0.4 = 230
- SNMP[[0;36m/usr/bin/snmpwalk -v1 -c 'public' -OQUsa -m Printer-MIB -M /opt/librenms/mibs udp:hp8600.homeserv.lan:161 prtMarkerSuppliesDescription[0m]
- prtMarkerSuppliesDescription.0.1 = "black ink"
- prtMarkerSuppliesDescription.0.2 = "yellow ink"
- prtMarkerSuppliesDescription.0.3 = "cyan ink"
- prtMarkerSuppliesDescription.0.4 = "magenta ink"
- SNMP[[0;36m/usr/bin/snmpwalk -v1 -c 'public' -OQUsa -m Printer-MIB -M /opt/librenms/mibs udp:hp8600.homeserv.lan:161 prtMarkerColorantValue[0m]
- prtMarkerColorantValue.0.1 = "black ink"
- Discover Toner: .1.3.6.1.2.1.43.11.1.1.9.0.1, 1, jetdirect, Black ink, .1.3.6.1.2.1.43.11.1.1.8.0.1, 674, 20
- SQL[[0;33mSELECT COUNT(toner_id) FROM `toner` WHERE device_id = '111' AND toner_type = 'jetdirect' AND `toner_index` = '1' AND `toner_oid` ='.1.3.6.1.2.1.43.11.1.1.9.0.1'[0m]
- SQL[[0;33mSELECT * FROM `toner` WHERE `device_id` = '111' AND `toner_type` = 'jetdirect' AND `toner_index` ='1'[0m]
- .Discover Toner: .1.3.6.1.2.1.43.11.1.1.9.0.2, 2, jetdirect, yellow ink, .1.3.6.1.2.1.43.11.1.1.8.0.2, 230, 87
- SQL[[0;33mSELECT COUNT(toner_id) FROM `toner` WHERE device_id = '111' AND toner_type = 'jetdirect' AND `toner_index` = '2' AND `toner_oid` ='.1.3.6.1.2.1.43.11.1.1.9.0.2'[0m]
- SQL[[0;33mSELECT * FROM `toner` WHERE `device_id` = '111' AND `toner_type` = 'jetdirect' AND `toner_index` ='2'[0m]
- .Discover Toner: .1.3.6.1.2.1.43.11.1.1.9.0.3, 3, jetdirect, cyan ink, .1.3.6.1.2.1.43.11.1.1.8.0.3, 216, 87
- SQL[[0;33mSELECT COUNT(toner_id) FROM `toner` WHERE device_id = '111' AND toner_type = 'jetdirect' AND `toner_index` = '3' AND `toner_oid` ='.1.3.6.1.2.1.43.11.1.1.9.0.3'[0m]
- SQL[[0;33mSELECT * FROM `toner` WHERE `device_id` = '111' AND `toner_type` = 'jetdirect' AND `toner_index` ='3'[0m]
- .Discover Toner: .1.3.6.1.2.1.43.11.1.1.9.0.4, 4, jetdirect, magenta ink, .1.3.6.1.2.1.43.11.1.1.8.0.4, 230, 97
- SQL[[0;33mSELECT COUNT(toner_id) FROM `toner` WHERE device_id = '111' AND toner_type = 'jetdirect' AND `toner_index` = '4' AND `toner_oid` ='.1.3.6.1.2.1.43.11.1.1.9.0.4'[0m]
- SQL[[0;33mSELECT * FROM `toner` WHERE `device_id` = '111' AND `toner_type` = 'jetdirect' AND `toner_index` ='4'[0m]
- .
- Checking valid toner ...
- Array
- (
- [jetdirect] => Array
- (
- [.1.3.6.1.2.1.43.11.1.1.9.0.1] => 1
- [.1.3.6.1.2.1.43.11.1.1.9.0.2] => 1
- [.1.3.6.1.2.1.43.11.1.1.9.0.3] => 1
- [.1.3.6.1.2.1.43.11.1.1.9.0.4] => 1
- )
- )
- SQL[[0;33mSELECT * FROM toner WHERE device_id = '111'[0m]
- Array
- (
- [0] => Array
- (
- [toner_id] => 29
- [device_id] => 111
- [toner_index] => 1
- [toner_type] => jetdirect
- [toner_oid] => .1.3.6.1.2.1.43.11.1.1.9.0.1
- [toner_descr] => Black ink
- [toner_capacity] => 674
- [toner_current] => 20
- [toner_capacity_oid] => .1.3.6.1.2.1.43.11.1.1.8.0.1
- )
- [1] => Array
- (
- [toner_id] => 30
- [device_id] => 111
- [toner_index] => 2
- [toner_type] => jetdirect
- [toner_oid] => .1.3.6.1.2.1.43.11.1.1.9.0.2
- [toner_descr] => yellow ink
- [toner_capacity] => 230
- [toner_current] => 87
- [toner_capacity_oid] => .1.3.6.1.2.1.43.11.1.1.8.0.2
- )
- [2] => Array
- (
- [toner_id] => 31
- [device_id] => 111
- [toner_index] => 3
- [toner_type] => jetdirect
- [toner_oid] => .1.3.6.1.2.1.43.11.1.1.9.0.3
- [toner_descr] => cyan ink
- [toner_capacity] => 216
- [toner_current] => 87
- [toner_capacity_oid] => .1.3.6.1.2.1.43.11.1.1.8.0.3
- )
- [3] => Array
- (
- [toner_id] => 32
- [device_id] => 111
- [toner_index] => 4
- [toner_type] => jetdirect
- [toner_oid] => .1.3.6.1.2.1.43.11.1.1.9.0.4
- [toner_descr] => magenta ink
- [toner_capacity] => 230
- [toner_current] => 0
- [toner_capacity_oid] => .1.3.6.1.2.1.43.11.1.1.8.0.4
- )
- )
- >> Runtime for discovery module 'toner': 0.1110 seconds with 13608 bytes
- #### Unload disco module toner ####
- SQL[[0;33mSELECT attrib_value FROM devices_attribs WHERE `device_id` = '111' AND `attrib_type` = 'poll_mib' [0m]
- SQL[[0;33mUPDATE `devices` set `last_discovered` =NOW(),`last_discovered_timetaken` ='0.544' WHERE `device_id` = '111'[0m]
- Discovered in 0.544 seconds
- SQL[[0;33mINSERT INTO `perf_times` (`type`,`doing`,`start`,`duration`,`devices`,`poller`) VALUES ('discover','hp8*','1510223794.6844','0.574','1','mon1')[0m]
- /opt/librenms/discovery.php hp8* 2017-11-09 11:36:35 - 1 devices discovered in 0.574 secs
- SNMP: Get[1/0.02s] Getnext [0/0.00s] Walk [5/0.11s]
- MySQL: Cell[6/0.00s] Row[6/0.00s] Rows[5/0.00s] Column[0/0.00s] Update[1/0.00s] Insert[2/0.00s] Delete[0/0.00s]