Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -bash-4.2$ ./discovery.php -d -h 265 -m sensors
- LibreNMS Discovery
- SQL[select `version` from `dbSchema` order by `version` desc limit 1 [] 0.63ms]
- SQL[SELECT version() [] 0.24ms]
- ===================================
- Version info:
- Commit SHA: d17eb4faaadbc0f58eeddf03da948a276a717a7a
- Commit Date: 1535957734
- DB Schema: 266
- PHP: 7.2.8
- MySQL: 5.5.56-MariaDB
- RRDTool: 1.4.8
- SNMP: NET-SNMP 5.7.2
- ==================================DEBUG!
- Updating os_def.cache... Done
- Override discovery modules: sensors
- SQL[SELECT * FROM `devices` WHERE disabled = 0 AND snmp_disable = 0 AND `device_id` = '265' ORDER BY device_id DESC [] 1.03ms]
- SQL[SELECT * FROM devices_attribs WHERE `device_id` = ? [265] 0.54ms]
- gw6420-tor-1.hostname 265 gw-eydfa [FPING] /usr/sbin/fping -e -q -c 10 -p 500 -t 500 gw6420-tor-1.hostname
- Array
- (
- [xmt] => 10
- [rcv] => 10
- [loss] => 0
- [min] => 0.31
- [max] => 0.50
- [avg] => 0.42
- [exitcode] => 0
- )
- SQL[INSERT IGNORE INTO `device_perf` (`xmt`,`rcv`,`loss`,`min`,`max`,`avg`,`device_id`,`timestamp`) VALUES (:xmt,:rcv,:loss,:min,:max,:avg,:device_id,NOW()) {"xmt":"10","rcv":"10","loss":"0","min":"0.31","max":"0.50","avg":"0.42","device_id":265} 0.77ms]
- SNMP Check response code: 0
- SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = ? AND `attrib_type` = ? [265,"poll_mib"] 0.73ms]
- MIB: registering
- Attempting to initialize OS: gw-eydfa
- OS initilized as Generic
- Modules status: Global+ OS Device
- #### Load disco module core ####
- SNMP[/usr/bin/snmpget -v2c -c COMMUNITY -OUQn -m SNMPv2-MIB -M /opt/dev_librenms/mibs:/opt/dev_librenms/mibs/glassway -t 2 -r 5 udp:HOSTNAME:161 sysName.0 sysObjectID.0 sysDescr.0]
- .*.*.0 = HFC-OA
- .*.*.0 = .*.4.1.17409.1.11
- .*.*.0 = GW-6420-WDM
- >> Runtime for discovery module 'core': 0.0240 seconds with 984 bytes
- >> SNMP: [2/0.08s] MySQL: [4/0.00s] RRD: [0/0.00s]
- #### Unload disco module core ####
- Modules status: Global+ OS+ Device
- #### Load disco module sensors ####
- Caching data: sensors SNMP[/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -OteQUs -Ih -m NSCRTV-HFCEMS-PROPERTY-MIB:NSCRTV-HFCEMS-OPTICALAMPLIFIER-MIB:NSCRTV-HFCEMS-COMMON-MIB -M /opt/dev_librenms/mibs:/opt/dev_librenms/mibs/glassway -t 2 -r 5 udp:HOSTNAME:161 oaOutputOpticalPower]
- oaOutputOpticalPower.0 = 203
- SNMP[/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -OteQUs -Ih -m NSCRTV-HFCEMS-PROPERTY-MIB:NSCRTV-HFCEMS-OPTICALAMPLIFIER-MIB:NSCRTV-HFCEMS-COMMON-MIB -M /opt/dev_librenms/mibs:/opt/dev_librenms/mibs/glassway -t 2 -r 5 udp:HOSTNAME:161 oaInputOpticalPower]
- oaInputOpticalPower.0 = 35
- SNMP[/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -OteQUs -Ih -m NSCRTV-HFCEMS-PROPERTY-MIB:NSCRTV-HFCEMS-OPTICALAMPLIFIER-MIB:NSCRTV-HFCEMS-COMMON-MIB -M /opt/dev_librenms/mibs:/opt/dev_librenms/mibs/glassway -t 2 -r 5 udp:HOSTNAME:161 commonDeviceInternalTemperature]
- commonDeviceInternalTemperature.1 = 47
- SNMP[/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -OteQUs -Ih -m NSCRTV-HFCEMS-PROPERTY-MIB:NSCRTV-HFCEMS-OPTICALAMPLIFIER-MIB:NSCRTV-HFCEMS-COMMON-MIB -M /opt/dev_librenms/mibs:/opt/dev_librenms/mibs/glassway -t 2 -r 5 udp:HOSTNAME:161 oaPumpTable]
- oaPumpIndex.1 = 1
- oaPumpIndex.2 = 2
- oaPumpBIAS.1 = 541
- oaPumpBIAS.2 = 8240
- oaPumpTEC.1 = 28
- oaPumpTEC.2 = 0
- oaPumpTemp.1 = 253
- oaPumpTemp.2 = 0
- SNMP[/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -OteQUs -Ih -m NSCRTV-HFCEMS-PROPERTY-MIB:NSCRTV-HFCEMS-OPTICALAMPLIFIER-MIB:NSCRTV-HFCEMS-COMMON-MIB -M /opt/dev_librenms/mibs:/opt/dev_librenms/mibs/glassway -t 2 -r 5 udp:HOSTNAME:161 oaDCPowerTable]
- oaDCPowerIndex.1 = 1
- oaDCPowerVoltage.1 = 48
- oaDCPowerCurrent.1 = 0
- oaDCPowerName.1 = "DC +5V"
- SNMP[/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -OteQUs -Ih -m NSCRTV-HFCEMS-PROPERTY-MIB:NSCRTV-HFCEMS-OPTICALAMPLIFIER-MIB:NSCRTV-HFCEMS-COMMON-MIB -M /opt/dev_librenms/mibs:/opt/dev_librenms/mibs/glassway -t 2 -r 5 udp:HOSTNAME:161 discreteAlarmState]
- discreteAlarmState.*.**.0.2 = 1
- discreteAlarmState.*.**.0.2 = 1
- ENTITY-SENSOR: Caching OIDs: entPhysicalDescrSNMP[/usr/bin/snmpbulkwalk -v2c -c COMMUNITY -OQUs -m ENTITY-MIB -M /opt/dev_librenms/mibs:/opt/dev_librenms/mibs/glassway -t 2 -r 5 udp:HOSTNAME:161 entPhysicalDescr]
- entPhysicalDescr = No Such Object available on this agent at this OID
- SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = ? AND `attrib_type` = ? [265,"ipmi_hostname"] 0.63ms]
- SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["voltage",265,"ipmi"] 1.06ms]
- SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["temperature",265,"ipmi"] 0.78ms]
- SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["fanspeed",265,"ipmi"] 0.71ms]
- SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["power",265,"ipmi"] 0.71ms]
- Airflow: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["airflow",265,"snmp"] 0.69ms]
- Current: Dynamic Discovery (current): Array
- (
- [options] => Array
- (
- [skip_values] => 0
- )
- [data] => Array
- (
- [0] => Array
- (
- [oid] => oaPumpTable
- [num_oid] => .1.3.6.1.4.1.17409.1.11.4.1.2.
- [descr] => BIAS Pump - {{ $index }}
- [index] => oaPumpBIAS.{{ $index }}
- [value] => oaPumpBIAS
- [divisor] => 1000
- )
- [1] => Array
- (
- [oid] => oaPumpTable
- [num_oid] => .1.3.6.1.4.1.17409.1.11.4.1.3.
- [descr] => TEC Pump - {{ $index }}
- [index] => oaPumpTEC.{{ $index }}
- [value] => oaPumpTEC
- [divisor] => 100
- )
- )
- )
- Data oaPumpTable: Array
- (
- [1] => Array
- (
- [oaPumpIndex] => 1
- [oaPumpBIAS] => 541
- [oaPumpTEC] => 28
- [oaPumpTemp] => 253
- )
- [2] => Array
- (
- [oaPumpIndex] => 2
- [oaPumpBIAS] => 8240
- [oaPumpTEC] => 0
- [oaPumpTemp] => 0
- )
- )
- Final sensor value: 541
- Cur 541, Low: null, Low Warn: null, Warn: null, High: null
- Discover sensor: .1.3.6.1.4.1.17409.1.11.4.1.2.1, oaPumpBIAS.1, gw-eydfa, BIAS Pump - 1, snmp, 1000, 1, , 0.541
- SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= ? AND `sensor_class` = ? AND `device_id` = ? AND sensor_type = ? AND `sensor_index` = ? ["snmp","current",265,"gw-eydfa","oaPumpBIAS.1"] 0.6ms]
- SQL[SELECT * FROM `sensors` WHERE `sensor_class` = ? AND `device_id` = ? AND `sensor_type` = ? AND `sensor_index` = ? ["current",265,"gw-eydfa","oaPumpBIAS.1"] 0.59ms]
- .Final sensor value: 8240
- Cur 8240, Low: null, Low Warn: null, Warn: null, High: null
- Discover sensor: .1.3.6.1.4.1.17409.1.11.4.1.2.2, oaPumpBIAS.2, gw-eydfa, BIAS Pump - 2, snmp, 1000, 1, , 8.24
- SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= ? AND `sensor_class` = ? AND `device_id` = ? AND sensor_type = ? AND `sensor_index` = ? ["snmp","current",265,"gw-eydfa","oaPumpBIAS.2"] 0.48ms]
- SQL[SELECT * FROM `sensors` WHERE `sensor_class` = ? AND `device_id` = ? AND `sensor_type` = ? AND `sensor_index` = ? ["current",265,"gw-eydfa","oaPumpBIAS.2"] 0.58ms]
- .Data oaPumpTable: Array
- (
- [1] => Array
- (
- [oaPumpIndex] => 1
- [oaPumpBIAS] => 541
- [oaPumpTEC] => 28
- [oaPumpTemp] => 253
- )
- [2] => Array
- (
- [oaPumpIndex] => 2
- [oaPumpBIAS] => 8240
- [oaPumpTEC] => 0
- [oaPumpTemp] => 0
- )
- )
- Final sensor value: 28
- Cur 28, Low: null, Low Warn: null, Warn: null, High: null
- Discover sensor: .1.3.6.1.4.1.17409.1.11.4.1.3.1, oaPumpTEC.1, gw-eydfa, TEC Pump - 1, snmp, 100, 1, , 0.28
- SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= ? AND `sensor_class` = ? AND `device_id` = ? AND sensor_type = ? AND `sensor_index` = ? ["snmp","current",265,"gw-eydfa","oaPumpTEC.1"] 0.47ms]
- SQL[SELECT * FROM `sensors` WHERE `sensor_class` = ? AND `device_id` = ? AND `sensor_type` = ? AND `sensor_index` = ? ["current",265,"gw-eydfa","oaPumpTEC.1"] 0.62ms]
- .Final sensor value: 0
- Array
- (
- [gw-eydfa] => Array
- (
- [oaPumpBIAS.1] => 1
- [oaPumpBIAS.2] => 1
- [oaPumpTEC.1] => 1
- )
- )
- SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["current",265,"snmp"] 0.87ms]
- oaPumpBIAS.1 -> gw-eydfa
- oaPumpBIAS.2 -> gw-eydfa
- oaPumpTEC.1 -> gw-eydfa
- Charge: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["charge",265,"snmp"] 0.7ms]
- Dbm: Dynamic Discovery (dbm): Array
- (
- [data] => Array
- (
- [0] => Array
- (
- [oid] => oaOutputOpticalPower
- [num_oid] => .1.3.6.1.4.1.17409.1.11.2.
- [descr] => Per Output Power
- [index] => oaOutputOpticalPower.{{ $index }}
- [value] => oaOutputOpticalPower
- [divisor] => 10
- [low_limit] => analogAlarmLOLO.11.1.3.6.1.4.1.17409.1.11.2.0
- [low_warn_limit] => analogAlarmLO.11.1.3.6.1.4.1.17409.1.11.2.0
- [warn_limit] => analogAlarmHI.11.1.3.6.1.4.1.17409.1.11.2.0
- [high_limit] => analogAlarmHIHI.11.1.3.6.1.4.1.17409.1.11.2.0
- )
- [1] => Array
- (
- [oid] => oaInputOpticalPower
- [num_oid] => .1.3.6.1.4.1.17409.1.11.3.
- [descr] => Input Power
- [index] => oaInputOpticalPower.{{ $index }}
- [divisor] => 10
- [low_limit] => analogAlarmLOLO.11.1.3.6.1.4.1.17409.1.11.3.0
- [low_warn_limit] => analogAlarmLO.11.1.3.6.1.4.1.17409.1.11.3.0
- [warn_limit] => analogAlarmHI.11.1.3.6.1.4.1.17409.1.11.3.0
- [high_limit] => analogAlarmHIHI.11.1.3.6.1.4.1.17409.1.11.3.0
- )
- )
- )
- Data oaOutputOpticalPower: Array
- (
- [0] => Array
- (
- [oaOutputOpticalPower] => 203
- )
- )
- Final sensor value: 203
- Cur 203, Low: null, Low Warn: null, Warn: null, High: null
- Discover sensor: .1.3.6.1.4.1.17409.1.11.2.0, oaOutputOpticalPower.0, gw-eydfa, Per Output Power, snmp, 10, 1, , 20.3
- SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= ? AND `sensor_class` = ? AND `device_id` = ? AND sensor_type = ? AND `sensor_index` = ? ["snmp","dbm",265,"gw-eydfa","oaOutputOpticalPower.0"] 0.48ms]
- SQL[SELECT * FROM `sensors` WHERE `sensor_class` = ? AND `device_id` = ? AND `sensor_type` = ? AND `sensor_index` = ? ["dbm",265,"gw-eydfa","oaOutputOpticalPower.0"] 0.56ms]
- .Data oaInputOpticalPower: Array
- (
- [0] => Array
- (
- [oaInputOpticalPower] => 35
- )
- )
- Final sensor value: 35
- Cur 35, Low: null, Low Warn: null, Warn: null, High: null
- Discover sensor: .1.3.6.1.4.1.17409.1.11.3.0, oaInputOpticalPower.0, gw-eydfa, Input Power, snmp, 10, 1, , 3.5
- SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= ? AND `sensor_class` = ? AND `device_id` = ? AND sensor_type = ? AND `sensor_index` = ? ["snmp","dbm",265,"gw-eydfa","oaInputOpticalPower.0"] 0.47ms]
- SQL[SELECT * FROM `sensors` WHERE `sensor_class` = ? AND `device_id` = ? AND `sensor_type` = ? AND `sensor_index` = ? ["dbm",265,"gw-eydfa","oaInputOpticalPower.0"] 0.59ms]
- .Array
- (
- [gw-eydfa] => Array
- (
- [oaOutputOpticalPower.0] => 1
- [oaInputOpticalPower.0] => 1
- )
- )
- SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["dbm",265,"snmp"] 0.78ms]
- oaOutputOpticalPower.0 -> gw-eydfa
- oaInputOpticalPower.0 -> gw-eydfa
- Fanspeed: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["fanspeed",265,"snmp"] 0.76ms]
- Frequency: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["frequency",265,"snmp"] 0.72ms]
- Humidity: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["humidity",265,"snmp"] 0.71ms]
- Load: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["load",265,"snmp"] 0.69ms]
- Power: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["power",265,"snmp"] 0.71ms]
- Runtime: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["runtime",265,"snmp"] 0.71ms]
- Signal: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["signal",265,"snmp"] 0.67ms]
- State: Dynamic Discovery (state): Array
- (
- [data] => Array
- (
- [0] => Array
- (
- [oid] => discreteAlarmState
- [num_oid] => .1.3.6.1.4.1.17409.1.1.2.1.4.
- [descr] => Power Supply 1
- [index] => PowerSupply1
- [state_name] => PowerSupplyState
- [states] => Array
- (
- [0] => Array
- (
- [value] => 1
- [generic] => 0
- [graph] => 0
- [descr] => normal
- )
- [1] => Array
- (
- [value] => 7
- [generic] => 1
- [graph] => 0
- [descr] => warning
- )
- [2] => Array
- (
- [value] => 6
- [generic] => 2
- [graph] => 0
- [descr] => critical
- )
- )
- )
- [1] => Array
- (
- [oid] => discreteAlarmState
- [num_oid] => .1.3.6.1.4.1.17409.1.1.2.1.4.
- [descr] => Power Supply 2
- [index] => PowerSupply2
- [state_name] => PowerSupplyState
- [states] => Array
- (
- [0] => Array
- (
- [value] => 1
- [generic] => 0
- [graph] => 0
- [descr] => normal
- )
- [1] => Array
- (
- [value] => 7
- [generic] => 1
- [graph] => 0
- [descr] => warning
- )
- [2] => Array
- (
- [value] => 6
- [generic] => 2
- [graph] => 0
- [descr] => critical
- )
- )
- )
- )
- )
- Data discreteAlarmState: Array
- (
- [11.1.3.6.1.4.1.17409.1.11.100.0.2] => Array
- (
- [discreteAlarmState] => 1
- )
- [11.1.3.6.1.4.1.17409.1.11.101.0.2] => Array
- (
- [discreteAlarmState] => 1
- )
- )
- Final sensor value: 1
- Cur 1, Low: null, Low Warn: null, Warn: null, High: null
- SQL[SELECT `state_index_id` FROM state_indexes WHERE state_name = ? LIMIT 1 ["PowerSupplyState"] 0.4ms]
- SQL[SELECT `state_index_id`,`state_descr`,`state_draw_graph`,`state_value`,`state_generic_value` FROM `state_translations` WHERE `state_index_id`=? [146] 0.44ms]
- Discover sensor: .1.3.6.1.4.1.17409.1.1.2.1.4.11.1.3.6.1.4.1.17409.1.11.100.0.2, PowerSupply1, PowerSupplyState, Power Supply 1, snmp, 1, 1, , 1
- SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= ? AND `sensor_class` = ? AND `device_id` = ? AND sensor_type = ? AND `sensor_index` = ? ["snmp","state",265,"PowerSupplyState","PowerSupply1"] 0.5ms]
- SQL[SELECT * FROM `sensors` WHERE `sensor_class` = ? AND `device_id` = ? AND `sensor_type` = ? AND `sensor_index` = ? ["state",265,"PowerSupplyState","PowerSupply1"] 0.58ms]
- SQL[UPDATE `sensors` set `sensor_oid`=?,`sensor_descr`=?,`sensor_multiplier`=?,`sensor_divisor`=?,`entPhysicalIndex`=?,`entPhysicalIndex_measured`=?,`user_func`=? WHERE `sensor_id` = ? [".1.3.6.1.4.1.17409.1.1.2.1.4.11.1.3.6.1.4.1.17409.1.11.100.0.2","Power Supply 1",1,1,null,null,null,1636] 0.47ms]
- USQL[INSERT IGNORE INTO `eventlog` (`host`,`device_id`,`reference`,`type`,`datetime`,`severity`,`message`,`username`) VALUES (:host,:device_id,:reference,:type,NOW(),:severity,:message,:username) {"host":265,"device_id":265,"reference":"NULL","type":"sensor","severity":3,"message":"Sensor Updated: state PowerSupplyState PowerSupply1 Power Supply 1","username":""} 0.58ms]
- ( 1 updated )
- SQL[SELECT sensor_id FROM `sensors` WHERE `sensor_class` = ? AND `device_id` = ? AND `sensor_type` = ? AND `sensor_index` = ? ["state",265,"PowerSupplyState","PowerSupply1"] 0.51ms]
- SQL[SELECT state_index_id FROM `state_indexes` WHERE `state_name` = ? ["PowerSupplyState"] 0.34ms]
- SQL[INSERT IGNORE INTO `sensors_to_state_indexes` (`sensor_id`,`state_index_id`) VALUES (:sensor_id,:state_index_id) {"sensor_id":1636,"state_index_id":146} 0.46ms]
- Final sensor value: 1
- Cur 1, Low: null, Low Warn: null, Warn: null, High: null
- SQL[SELECT `state_index_id` FROM state_indexes WHERE state_name = ? LIMIT 1 ["PowerSupplyState"] 0.33ms]
- SQL[SELECT `state_index_id`,`state_descr`,`state_draw_graph`,`state_value`,`state_generic_value` FROM `state_translations` WHERE `state_index_id`=? [146] 0.38ms]
- Discover sensor: .1.3.6.1.4.1.17409.1.1.2.1.4.11.1.3.6.1.4.1.17409.1.11.101.0.2, PowerSupply1, PowerSupplyState, Power Supply 1, snmp, 1, 1, , 1
- SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= ? AND `sensor_class` = ? AND `device_id` = ? AND sensor_type = ? AND `sensor_index` = ? ["snmp","state",265,"PowerSupplyState","PowerSupply1"] 0.46ms]
- SQL[SELECT * FROM `sensors` WHERE `sensor_class` = ? AND `device_id` = ? AND `sensor_type` = ? AND `sensor_index` = ? ["state",265,"PowerSupplyState","PowerSupply1"] 0.56ms]
- SQL[UPDATE `sensors` set `sensor_oid`=?,`sensor_descr`=?,`sensor_multiplier`=?,`sensor_divisor`=?,`entPhysicalIndex`=?,`entPhysicalIndex_measured`=?,`user_func`=? WHERE `sensor_id` = ? [".1.3.6.1.4.1.17409.1.1.2.1.4.11.1.3.6.1.4.1.17409.1.11.101.0.2","Power Supply 1",1,1,null,null,null,1636] 0.36ms]
- USQL[INSERT IGNORE INTO `eventlog` (`host`,`device_id`,`reference`,`type`,`datetime`,`severity`,`message`,`username`) VALUES (:host,:device_id,:reference,:type,NOW(),:severity,:message,:username) {"host":265,"device_id":265,"reference":"NULL","type":"sensor","severity":3,"message":"Sensor Updated: state PowerSupplyState PowerSupply1 Power Supply 1","username":""} 0.31ms]
- ( 1 updated )
- SQL[SELECT sensor_id FROM `sensors` WHERE `sensor_class` = ? AND `device_id` = ? AND `sensor_type` = ? AND `sensor_index` = ? ["state",265,"PowerSupplyState","PowerSupply1"] 0.47ms]
- SQL[SELECT state_index_id FROM `state_indexes` WHERE `state_name` = ? ["PowerSupplyState"] 0.31ms]
- SQL[INSERT IGNORE INTO `sensors_to_state_indexes` (`sensor_id`,`state_index_id`) VALUES (:sensor_id,:state_index_id) {"sensor_id":1636,"state_index_id":146} 0.31ms]
- Data discreteAlarmState: Array
- (
- [11.1.3.6.1.4.1.17409.1.11.100.0.2] => Array
- (
- [discreteAlarmState] => 1
- )
- [11.1.3.6.1.4.1.17409.1.11.101.0.2] => Array
- (
- [discreteAlarmState] => 1
- )
- )
- Final sensor value: 1
- Cur 1, Low: null, Low Warn: null, Warn: null, High: null
- SQL[SELECT `state_index_id` FROM state_indexes WHERE state_name = ? LIMIT 1 ["PowerSupplyState"] 0.31ms]
- SQL[SELECT `state_index_id`,`state_descr`,`state_draw_graph`,`state_value`,`state_generic_value` FROM `state_translations` WHERE `state_index_id`=? [146] 0.34ms]
- Discover sensor: .1.3.6.1.4.1.17409.1.1.2.1.4.11.1.3.6.1.4.1.17409.1.11.100.0.2, PowerSupply2, PowerSupplyState, Power Supply 2, snmp, 1, 1, , 1
- SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= ? AND `sensor_class` = ? AND `device_id` = ? AND sensor_type = ? AND `sensor_index` = ? ["snmp","state",265,"PowerSupplyState","PowerSupply2"] 0.47ms]
- SQL[SELECT * FROM `sensors` WHERE `sensor_class` = ? AND `device_id` = ? AND `sensor_type` = ? AND `sensor_index` = ? ["state",265,"PowerSupplyState","PowerSupply2"] 0.57ms]
- SQL[UPDATE `sensors` set `sensor_oid`=?,`sensor_descr`=?,`sensor_multiplier`=?,`sensor_divisor`=?,`entPhysicalIndex`=?,`entPhysicalIndex_measured`=?,`user_func`=? WHERE `sensor_id` = ? [".1.3.6.1.4.1.17409.1.1.2.1.4.11.1.3.6.1.4.1.17409.1.11.100.0.2","Power Supply 2",1,1,null,null,null,1637] 0.34ms]
- USQL[INSERT IGNORE INTO `eventlog` (`host`,`device_id`,`reference`,`type`,`datetime`,`severity`,`message`,`username`) VALUES (:host,:device_id,:reference,:type,NOW(),:severity,:message,:username) {"host":265,"device_id":265,"reference":"NULL","type":"sensor","severity":3,"message":"Sensor Updated: state PowerSupplyState PowerSupply2 Power Supply 2","username":""} 0.35ms]
- ( 1 updated )
- SQL[SELECT sensor_id FROM `sensors` WHERE `sensor_class` = ? AND `device_id` = ? AND `sensor_type` = ? AND `sensor_index` = ? ["state",265,"PowerSupplyState","PowerSupply2"] 0.46ms]
- SQL[SELECT state_index_id FROM `state_indexes` WHERE `state_name` = ? ["PowerSupplyState"] 0.32ms]
- SQL[INSERT IGNORE INTO `sensors_to_state_indexes` (`sensor_id`,`state_index_id`) VALUES (:sensor_id,:state_index_id) {"sensor_id":1637,"state_index_id":146} 0.29ms]
- Final sensor value: 1
- Cur 1, Low: null, Low Warn: null, Warn: null, High: null
- SQL[SELECT `state_index_id` FROM state_indexes WHERE state_name = ? LIMIT 1 ["PowerSupplyState"] 0.32ms]
- SQL[SELECT `state_index_id`,`state_descr`,`state_draw_graph`,`state_value`,`state_generic_value` FROM `state_translations` WHERE `state_index_id`=? [146] 0.36ms]
- Discover sensor: .1.3.6.1.4.1.17409.1.1.2.1.4.11.1.3.6.1.4.1.17409.1.11.101.0.2, PowerSupply2, PowerSupplyState, Power Supply 2, snmp, 1, 1, , 1
- SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= ? AND `sensor_class` = ? AND `device_id` = ? AND sensor_type = ? AND `sensor_index` = ? ["snmp","state",265,"PowerSupplyState","PowerSupply2"] 0.48ms]
- SQL[SELECT * FROM `sensors` WHERE `sensor_class` = ? AND `device_id` = ? AND `sensor_type` = ? AND `sensor_index` = ? ["state",265,"PowerSupplyState","PowerSupply2"] 0.55ms]
- SQL[UPDATE `sensors` set `sensor_oid`=?,`sensor_descr`=?,`sensor_multiplier`=?,`sensor_divisor`=?,`entPhysicalIndex`=?,`entPhysicalIndex_measured`=?,`user_func`=? WHERE `sensor_id` = ? [".1.3.6.1.4.1.17409.1.1.2.1.4.11.1.3.6.1.4.1.17409.1.11.101.0.2","Power Supply 2",1,1,null,null,null,1637] 0.36ms]
- USQL[INSERT IGNORE INTO `eventlog` (`host`,`device_id`,`reference`,`type`,`datetime`,`severity`,`message`,`username`) VALUES (:host,:device_id,:reference,:type,NOW(),:severity,:message,:username) {"host":265,"device_id":265,"reference":"NULL","type":"sensor","severity":3,"message":"Sensor Updated: state PowerSupplyState PowerSupply2 Power Supply 2","username":""} 0.31ms]
- ( 1 updated )
- SQL[SELECT sensor_id FROM `sensors` WHERE `sensor_class` = ? AND `device_id` = ? AND `sensor_type` = ? AND `sensor_index` = ? ["state",265,"PowerSupplyState","PowerSupply2"] 0.46ms]
- SQL[SELECT state_index_id FROM `state_indexes` WHERE `state_name` = ? ["PowerSupplyState"] 0.31ms]
- SQL[INSERT IGNORE INTO `sensors_to_state_indexes` (`sensor_id`,`state_index_id`) VALUES (:sensor_id,:state_index_id) {"sensor_id":1637,"state_index_id":146} 0.32ms]
- Array
- (
- [PowerSupplyState] => Array
- (
- [PowerSupply1] => 1
- [PowerSupply2] => 1
- )
- )
- SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["state",265,"snmp"] 0.83ms]
- PowerSupply1 -> PowerSupplyState
- PowerSupply2 -> PowerSupplyState
- Temperature: Dynamic Discovery (temperature): Array
- (
- [options] => Array
- (
- [skip_values] => 0
- )
- [data] => Array
- (
- [0] => Array
- (
- [oid] => commonDeviceInternalTemperature
- [num_oid] => .1.3.6.1.4.1.17409.1.3.3.2.2.1.12.
- [descr] => Internal Temperature
- [index] => commonDeviceInternalTemperature.{{ $index }}
- [value] => commonDeviceInternalTemperature
- [low_limit] => analogAlarmLOLO.12.1.3.6.1.4.1.17409.1.3.1.13.0
- [low_warn_limit] => analogAlarmLO.12.1.3.6.1.4.1.17409.1.3.1.13.0
- [warn_limit] => analogAlarmHI.12.1.3.6.1.4.1.17409.1.3.1.13.0
- [high_limit] => analogAlarmHIHI.12.1.3.6.1.4.1.17409.1.3.1.13.0
- )
- [1] => Array
- (
- [oid] => oaPumpTable
- [num_oid] => .1.3.6.1.4.1.17409.1.11.4.1.4.
- [value] => oaPumpTemp
- [descr] => Pump Temperature
- [index] => oaPumpTemp.{{ $index }}
- [divisor] => 10
- )
- )
- )
- Data commonDeviceInternalTemperature: Array
- (
- [1] => Array
- (
- [commonDeviceInternalTemperature] => 47
- )
- )
- Final sensor value: 47
- Cur 47, Low: null, Low Warn: null, Warn: null, High: null
- Discover sensor: .1.3.6.1.4.1.17409.1.3.3.2.2.1.12.1, commonDeviceInternalTemperature.1, gw-eydfa, Internal Temperature, snmp, 1, 1, , 47
- SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= ? AND `sensor_class` = ? AND `device_id` = ? AND sensor_type = ? AND `sensor_index` = ? ["snmp","temperature",265,"gw-eydfa","commonDeviceInternalTemperature.1"] 0.51ms]
- SQL[SELECT * FROM `sensors` WHERE `sensor_class` = ? AND `device_id` = ? AND `sensor_type` = ? AND `sensor_index` = ? ["temperature",265,"gw-eydfa","commonDeviceInternalTemperature.1"] 0.62ms]
- .Data oaPumpTable: Array
- (
- [1] => Array
- (
- [oaPumpIndex] => 1
- [oaPumpBIAS] => 541
- [oaPumpTEC] => 28
- [oaPumpTemp] => 253
- )
- [2] => Array
- (
- [oaPumpIndex] => 2
- [oaPumpBIAS] => 8240
- [oaPumpTEC] => 0
- [oaPumpTemp] => 0
- )
- )
- Final sensor value: 253
- Cur 253, Low: null, Low Warn: null, Warn: null, High: null
- Discover sensor: .1.3.6.1.4.1.17409.1.11.4.1.4.1, oaPumpTemp.1, gw-eydfa, Pump Temperature, snmp, 10, 1, , 25.3
- SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= ? AND `sensor_class` = ? AND `device_id` = ? AND sensor_type = ? AND `sensor_index` = ? ["snmp","temperature",265,"gw-eydfa","oaPumpTemp.1"] 0.52ms]
- SQL[SELECT * FROM `sensors` WHERE `sensor_class` = ? AND `device_id` = ? AND `sensor_type` = ? AND `sensor_index` = ? ["temperature",265,"gw-eydfa","oaPumpTemp.1"] 0.63ms]
- .Final sensor value: 0
- Array
- (
- [gw-eydfa] => Array
- (
- [commonDeviceInternalTemperature.1] => 1
- [oaPumpTemp.1] => 1
- )
- )
- SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["temperature",265,"snmp"] 0.83ms]
- oaPumpTemp.1 -> gw-eydfa
- commonDeviceInternalTemperature.1 -> gw-eydfa
- Voltage: Dynamic Discovery (voltage): Array
- (
- [data] => Array
- (
- [0] => Array
- (
- [oid] => oaDCPowerTable
- [num_oid] => .1.3.6.1.4.1.17409.1.11.7.1.2.
- [descr] => oaDCPowerName
- [index] => oaDCPowerVoltage.{{ $index }}
- [value] => oaDCPowerVoltage
- [divisor] => 10
- )
- )
- )
- Data oaDCPowerTable: Array
- (
- [1] => Array
- (
- [oaDCPowerIndex] => 1
- [oaDCPowerVoltage] => 48
- [oaDCPowerCurrent] => 0
- [oaDCPowerName] => DC +5V
- )
- )
- Final sensor value: 48
- Cur 48, Low: null, Low Warn: null, Warn: null, High: null
- Discover sensor: .1.3.6.1.4.1.17409.1.11.7.1.2.1, oaDCPowerVoltage.1, gw-eydfa, DC +5V, snmp, 10, 1, , 4.8
- SQL[SELECT COUNT(sensor_id) FROM `sensors` WHERE `poller_type`= ? AND `sensor_class` = ? AND `device_id` = ? AND sensor_type = ? AND `sensor_index` = ? ["snmp","voltage",265,"gw-eydfa","oaDCPowerVoltage.1"] 0.51ms]
- SQL[SELECT * FROM `sensors` WHERE `sensor_class` = ? AND `device_id` = ? AND `sensor_type` = ? AND `sensor_index` = ? ["voltage",265,"gw-eydfa","oaDCPowerVoltage.1"] 0.71ms]
- .Array
- (
- [gw-eydfa] => Array
- (
- [oaDCPowerVoltage.1] => 1
- )
- )
- SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["voltage",265,"snmp"] 0.97ms]
- oaDCPowerVoltage.1 -> gw-eydfa
- Snr: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["snr",265,"snmp"] 0.73ms]
- Pressure: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["pressure",265,"snmp"] 0.76ms]
- Cooling: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["cooling",265,"snmp"] 0.74ms]
- Delay: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["delay",265,"snmp"] 0.77ms]
- Quality_factor: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["quality_factor",265,"snmp"] 0.79ms]
- Chromatic_dispersion: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["chromatic_dispersion",265,"snmp"] 0.75ms]
- Ber: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["ber",265,"snmp"] 0.71ms]
- Eer: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["eer",265,"snmp"] 0.77ms]
- Waterflow: SQL[SELECT * FROM sensors AS S, devices AS D WHERE S.sensor_class=? AND S.device_id = D.device_id AND D.device_id = ? AND S.poller_type = ? ["waterflow",265,"snmp"] 0.77ms]
- >> Runtime for discovery module 'sensors': 0.2280 seconds with 55096 bytes
- >> SNMP: [7/0.17s] MySQL: [64/0.04s] RRD: [0/0.00s]
- #### Unload disco module sensors ####
- SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = ? AND `attrib_type` = ? [265,"poll_mib"] 0.4ms]
- SQL[SELECT attrib_value FROM devices_attribs WHERE `device_id` = ? AND `attrib_type` = ? [265,"poll_mib"] 0.41ms]
- MIB: registering
- SNMP[snmptranslate -M /opt/dev_librenms/mibs:/opt/dev_librenms/mibs/glassway -IR -m all .1.3.6.1.4.1.17409.1.11 2>/dev/null]
- This doesn't look like a MIB:
- MIB: Could not find all::.1.3.6.1.4.1.17409.1.11
- SQL[UPDATE `devices` set `last_discovered`=NOW(),`last_discovered_timetaken`=? WHERE `device_id` = ? [5.4009999999999998,265] 0.76ms]
- Discovered in 5.401 seconds
- SQL[INSERT IGNORE INTO `perf_times` (`type`,`doing`,`start`,`duration`,`devices`,`poller`) VALUES (:type,:doing,:start,:duration,:devices,:poller) {"type":"discover","doing":"265","start":1536484488.267612,"duration":"5.649","devices":1,"poller":"librenms.tvt-datos.es"} 0.51ms]
- ./discovery.php 265 2018-09-09 11:14:53 - 1 devices discovered in 5.649 secs
- SNMP [9/0.24s]: Get[2/0.08s] Getnext[0/0.00s] Walk[7/0.17s]
- MySQL [72/0.05s]: Cell[17/0.01s] Row[7/0.01s] Rows[33/0.03s] Column[0/0.00s] Update[5/0.00s] Insert[10/0.01s] Delete[0/0.00s]
- RRD [0/0.00s]: Update[0/0.00s] Create [0/0.00s] Other[0/0.00s]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement