root@obtest observium]# ./discovery.php -h glo-san-swi* -d -m sensors
DEBUG!
Observium v0.14.11.5934
Discovery
SQL[SELECT `version` FROM `dbSchema`]
SQL[SELECT * FROM `devices` WHERE `status` = 1 AND `disabled` = 0 AND `hostname` LIKE 'san-switch%' ORDER BY `last_discovered_timetaken` ASC]
CMD[/usr/bin/snmpget -v2c -c 'point' -OQUst -m SNMPv2-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'san-switch.fqdn.com':'161' sysObjectID.0 sysUpTime.0]
EXITCODE[0]
RUNTIME[0.0301s],
STDOUT[
sysObjectID.0 = enterprises.1588.2.1.1.1
sysUpTime.0 = 1519893400
]
SNMP_STATUS[TRUE]
SQL[SELECT * FROM devices_attribs WHERE `device_id` = '187']
san-switch.fqdn.com 187 fabos
Sensors:
SQL[SELECT * FROM devices_attribs WHERE `device_id` = '187']
[[SW-MIB]] SW-MIB
CMD[/usr/bin/snmpbulkwalk -v2c -c 'point' -OQUs -m SW-MIB -M /opt/observium/mibs 'udp':'san-switch.fqdn.com':'161' swSensorTable]
EXITCODE[0]
RUNTIME[0.8435s],
STDOUT[
swSensorIndex.1 = 1
swSensorIndex.2 = 2
swSensorIndex.3 = 3
swSensorIndex.4 = 4
swSensorIndex.5 = 5
swSensorIndex.6 = 6
swSensorIndex.7 = 7
swSensorType.1 = temperature
swSensorType.2 = temperature
swSensorType.3 = temperature
swSensorType.4 = fan
swSensorType.5 = fan
swSensorType.6 = fan
swSensorType.7 = power-supply
swSensorStatus.1 = nominal
swSensorStatus.2 = nominal
swSensorStatus.3 = nominal
swSensorStatus.4 = nominal
swSensorStatus.5 = nominal
swSensorStatus.6 = nominal
swSensorStatus.7 = nominal
swSensorValue.1 = 29
swSensorValue.2 = 27
swSensorValue.3 = 30
swSensorValue.4 = 6490
swSensorValue.5 = 6490
swSensorValue.6 = 6490
swSensorValue.7 = 1
swSensorInfo.1 = SLOT #0: TEMP #1
swSensorInfo.2 = SLOT #0: TEMP #2
swSensorInfo.3 = SLOT #0: TEMP #3
swSensorInfo.4 = FAN #1
swSensorInfo.5 = FAN #2
swSensorInfo.6 = FAN #3
swSensorInfo.7 = Power Supply #1
]
SNMP_STATUS[TRUE]
Discover sensor: temperature, san-switch.fqdn.com, .1.3.6.1.4.1.1588.2.1.1.1.1.22.1.4.1, 1, sw-mib, SLOT #0: TEMP #1, 1, , , , , 29, snmp, ,
SQL[SELECT COUNT(`sensor_id`) FROM `sensors` WHERE `poller_type`= 'snmp' AND `sensor_class` = 'temperature' AND `device_id` = '187' AND `sensor_type` = 'sw-mib' AND `sensor_index` = '1']
SQL[SELECT * FROM `sensors` WHERE `sensor_class` = 'temperature' AND `device_id` = '187' AND `sensor_type` = 'sw-mib' AND `sensor_index` = '1']
.Discover sensor: temperature, san-switch.fqdn.com, .1.3.6.1.4.1.1588.2.1.1.1.1.22.1.4.2, 2, sw-mib, SLOT #0: TEMP #2, 1, , , , , 27, snmp, ,
SQL[SELECT COUNT(`sensor_id`) FROM `sensors` WHERE `poller_type`= 'snmp' AND `sensor_class` = 'temperature' AND `device_id` = '187' AND `sensor_type` = 'sw-mib' AND `sensor_index` = '2']
SQL[SELECT * FROM `sensors` WHERE `sensor_class` = 'temperature' AND `device_id` = '187' AND `sensor_type` = 'sw-mib' AND `sensor_index` = '2']
.Discover sensor: temperature, san-switch.fqdn.com, .1.3.6.1.4.1.1588.2.1.1.1.1.22.1.4.3, 3, sw-mib, SLOT #0: TEMP #3, 1, , , , , 30, snmp, ,
SQL[SELECT COUNT(`sensor_id`) FROM `sensors` WHERE `poller_type`= 'snmp' AND `sensor_class` = 'temperature' AND `device_id` = '187' AND `sensor_type` = 'sw-mib' AND `sensor_index` = '3']
SQL[SELECT * FROM `sensors` WHERE `sensor_class` = 'temperature' AND `device_id` = '187' AND `sensor_type` = 'sw-mib' AND `sensor_index` = '3']
.Discover sensor: fanspeed, san-switch.fqdn.com, .1.3.6.1.4.1.1588.2.1.1.1.1.22.1.4.4, 4, sw-mib, FAN #1, 1, , , , , 6490, snmp, ,
SQL[SELECT COUNT(`sensor_id`) FROM `sensors` WHERE `poller_type`= 'snmp' AND `sensor_class` = 'fanspeed' AND `device_id` = '187' AND `sensor_type` = 'sw-mib' AND `sensor_index` = '4']
SQL[SELECT * FROM `sensors` WHERE `sensor_class` = 'fanspeed' AND `device_id` = '187' AND `sensor_type` = 'sw-mib' AND `sensor_index` = '4']
.Discover sensor: fanspeed, san-switch.fqdn.com, .1.3.6.1.4.1.1588.2.1.1.1.1.22.1.4.5, 5, sw-mib, FAN #2, 1, , , , , 6490, snmp, ,
SQL[SELECT COUNT(`sensor_id`) FROM `sensors` WHERE `poller_type`= 'snmp' AND `sensor_class` = 'fanspeed' AND `device_id` = '187' AND `sensor_type` = 'sw-mib' AND `sensor_index` = '5']
SQL[SELECT * FROM `sensors` WHERE `sensor_class` = 'fanspeed' AND `device_id` = '187' AND `sensor_type` = 'sw-mib' AND `sensor_index` = '5']
.Discover sensor: fanspeed, san-switch.fqdn.com, .1.3.6.1.4.1.1588.2.1.1.1.1.22.1.4.6, 6, sw-mib, FAN #3, 1, , , , , 6490, snmp, ,
SQL[SELECT COUNT(`sensor_id`) FROM `sensors` WHERE `poller_type`= 'snmp' AND `sensor_class` = 'fanspeed' AND `device_id` = '187' AND `sensor_type` = 'sw-mib' AND `sensor_index` = '6']
SQL[SELECT * FROM `sensors` WHERE `sensor_class` = 'fanspeed' AND `device_id` = '187' AND `sensor_type` = 'sw-mib' AND `sensor_index` = '6']
.Discover sensor: state, san-switch.fqdn.com, .1.3.6.1.4.1.1588.2.1.1.1.1.22.1.4.7, 7, sw-mib, Power Supply #1, 1, , , , , 1, snmp, ,
SQL[SELECT COUNT(`sensor_id`) FROM `sensors` WHERE `poller_type`= 'snmp' AND `sensor_class` = 'state' AND `device_id` = '187' AND `sensor_type` = 'sw-mib' AND `sensor_index` = '7']
SQL[SELECT * FROM `sensors` WHERE `sensor_class` = 'state' AND `device_id` = '187' AND `sensor_type` = 'sw-mib' AND `sensor_index` = '7']
. ENTITY-SENSOR-MIB
CMD[/usr/bin/snmpbulkwalk -v2c -c 'point' -OQUs -m ENTITY-MIB:ENTITY-SENSOR-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'san-switch.fqdn.com':'161' entPhysicalDescr]
EXITCODE[0]
RUNTIME[0.1646s],
STDOUT[
entPhysicalDescr.1 = Brocade300
entPhysicalDescr.2 = MODULE
entPhysicalDescr.3 = POWER SUPPLY
entPhysicalDescr.4 = FAN
entPhysicalDescr.5 = FAN
entPhysicalDescr.6 = FAN
entPhysicalDescr.7 = OTHER
]
SNMP_STATUS[TRUE]
CMD[/usr/bin/snmpbulkwalk -v2c -c 'point' -OQUs -m ENTITY-MIB:ENTITY-SENSOR-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'san-switch.fqdn.com':'161' entPhysicalName]
EXITCODE[0]
RUNTIME[0.1626s],
STDOUT[
entPhysicalName.1 =
entPhysicalName.2 = MODULE 0
entPhysicalName.3 = POWER SUPPLY 1
entPhysicalName.4 = FAN 1
entPhysicalName.5 = FAN 2
entPhysicalName.6 = FAN 3
entPhysicalName.7 = OTHER
]
SNMP_STATUS[TRUE]
CMD[/usr/bin/snmpbulkwalk -v2c -c 'point' -OQUs -m ENTITY-MIB:ENTITY-SENSOR-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'san-switch.fqdn.com':'161' entPhySensorType]
EXITCODE[0]
RUNTIME[0.6834s],
STDOUT[
entPhySensorType = No Such Object available on this agent at this OID
]
SNMP_STATUS[FALSE]
CMD[/usr/bin/snmpbulkwalk -v2c -c 'point' -OQUs -m ENTITY-MIB:ENTITY-SENSOR-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'san-switch.fqdn.com':'161' entPhySensorScale]
EXITCODE[0]
RUNTIME[0.6924s],
STDOUT[
entPhySensorScale = No Such Object available on this agent at this OID
]
SNMP_STATUS[FALSE]
CMD[/usr/bin/snmpbulkwalk -v2c -c 'point' -OQUs -m ENTITY-MIB:ENTITY-SENSOR-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'san-switch.fqdn.com':'161' entPhySensorPrecision]
EXITCODE[0]
RUNTIME[0.6974s],
STDOUT[
entPhySensorPrecision = No Such Object available on this agent at this OID
]
SNMP_STATUS[FALSE]
CMD[/usr/bin/snmpbulkwalk -v2c -c 'point' -OQUs -m ENTITY-MIB:ENTITY-SENSOR-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'san-switch.fqdn.com':'161' entPhySensorOperStatus]
EXITCODE[0]
RUNTIME[0.6756s],
STDOUT[
entPhySensorOperStatus = No Such Object available on this agent at this OID
]
SNMP_STATUS[FALSE]
CMD[/usr/bin/snmpbulkwalk -v2c -c 'point' -OQUs -m ENTITY-MIB:ENTITY-SENSOR-MIB -M /opt/observium/mibs/rfc:/opt/observium/mibs/net-snmp 'udp':'san-switch.fqdn.com':'161' entPhySensorValue]
EXITCODE[0]
RUNTIME[0.6784s],
STDOUT[
entPhySensorValue = No Such Object available on this agent at this OID
]
SNMP_STATUS[FALSE]
Array
(
[temperature] => Array
(
[sw-mib] => Array
(
[1] => 1
[2] => 1
[3] => 1
)
)
[fanspeed] => Array
(
[sw-mib] => Array
(
[4] => 1
[5] => 1
[6] => 1
)
)
[state] => Array
(
[sw-mib] => Array
(
[7] => 1
)
)
)
SQL[SELECT * FROM `sensors` AS S, `devices` AS D WHERE S.`sensor_class` = 'temperature' AND S.`device_id` = D.`device_id` AND D.`device_id` = '187' AND S.`poller_type` = 'snmp']
1 -> sw-mib
2 -> sw-mib
3 -> sw-mib
SQL[SELECT * FROM `sensors` AS S, `devices` AS D WHERE S.`sensor_class` = 'humidity' AND S.`device_id` = D.`device_id` AND D.`device_id` = '187' AND S.`poller_type` = 'snmp']
SQL[SELECT * FROM `sensors` AS S, `devices` AS D WHERE S.`sensor_class` = 'fanspeed' AND S.`device_id` = D.`device_id` AND D.`device_id` = '187' AND S.`poller_type` = 'snmp']
4 -> sw-mib
5 -> sw-mib
6 -> sw-mib
SQL[SELECT * FROM `sensors` AS S, `devices` AS D WHERE S.`sensor_class` = 'airflow' AND S.`device_id` = D.`device_id` AND D.`device_id` = '187' AND S.`poller_type` = 'snmp']
SQL[SELECT * FROM `sensors` AS S, `devices` AS D WHERE S.`sensor_class` = 'voltage' AND S.`device_id` = D.`device_id` AND D.`device_id` = '187' AND S.`poller_type` = 'snmp']
SQL[SELECT * FROM `sensors` AS S, `devices` AS D WHERE S.`sensor_class` = 'current' AND S.`device_id` = D.`device_id` AND D.`device_id` = '187' AND S.`poller_type` = 'snmp']
SQL[SELECT * FROM `sensors` AS S, `devices` AS D WHERE S.`sensor_class` = 'power' AND S.`device_id` = D.`device_id` AND D.`device_id` = '187' AND S.`poller_type` = 'snmp']
SQL[SELECT * FROM `sensors` AS S, `devices` AS D WHERE S.`sensor_class` = 'apower' AND S.`device_id` = D.`device_id` AND D.`device_id` = '187' AND S.`poller_type` = 'snmp']
SQL[SELECT * FROM `sensors` AS S, `devices` AS D WHERE S.`sensor_class` = 'impedance' AND S.`device_id` = D.`device_id` AND D.`device_id` = '187' AND S.`poller_type` = 'snmp']
SQL[SELECT * FROM `sensors` AS S, `devices` AS D WHERE S.`sensor_class` = 'frequency' AND S.`device_id` = D.`device_id` AND D.`device_id` = '187' AND S.`poller_type` = 'snmp']
SQL[SELECT * FROM `sensors` AS S, `devices` AS D WHERE S.`sensor_class` = 'dbm' AND S.`device_id` = D.`device_id` AND D.`device_id` = '187' AND S.`poller_type` = 'snmp']
SQL[SELECT * FROM `sensors` AS S, `devices` AS D WHERE S.`sensor_class` = 'snr' AND S.`device_id` = D.`device_id` AND D.`device_id` = '187' AND S.`poller_type` = 'snmp']
SQL[SELECT * FROM `sensors` AS S, `devices` AS D WHERE S.`sensor_class` = 'capacity' AND S.`device_id` = D.`device_id` AND D.`device_id` = '187' AND S.`poller_type` = 'snmp']
SQL[SELECT * FROM `sensors` AS S, `devices` AS D WHERE S.`sensor_class` = 'load' AND S.`device_id` = D.`device_id` AND D.`device_id` = '187' AND S.`poller_type` = 'snmp']
SQL[SELECT * FROM `sensors` AS S, `devices` AS D WHERE S.`sensor_class` = 'runtime' AND S.`device_id` = D.`device_id` AND D.`device_id` = '187' AND S.`poller_type` = 'snmp']
SQL[SELECT * FROM `sensors` AS S, `devices` AS D WHERE S.`sensor_class` = 'state' AND S.`device_id` = D.`device_id` AND D.`device_id` = '187' AND S.`poller_type` = 'snmp']
7 -> sw-mib
Module [ sensors ] time: 4.6799s
SQL[UPDATE `devices` set `last_discovered` =NOW(),`type` ='network',`last_discovered_timetaken` ='4.680' WHERE `device_id` = '187']
SQL[INSERT INTO `devices_perftimes` (`device_id`,`operation`,`start`,`duration`) VALUES ('187','discover','1415106151.1581','4.6800379753113')]
Discovered in 4.680 seconds
SQL[SELECT * FROM `alert_tests`]
SQL[SELECT * FROM `alert_assoc`]
SQL[SELECT count(*) FROM `devices` WHERE device_id = '187']
SQL[SELECT count(*) FROM `devices` WHERE device_id = '187']
SQL[SELECT * FROM `alert_table` WHERE `device_id` = '187']
SQL[SELECT * FROM `` WHERE device_id = '187']
SQL[SELECT * FROM `` WHERE device_id = '187']
SQL[INSERT INTO `perf_times` (`type`,`doing`,`start`,`duration`,`devices`) VALUES ('discover','glo-san-swi*','1415106151.1187','4.733','1')]
./discovery.php: glo-san-swi* - 1 devices discovered in 4.733 secs
NOTE, $config['snmp']['hide_auth'] sets as TRUE, snmp community and snmp v3 auth hidden from debug output.
MySQL: Cell[10/0.02s] Row[7/0.02s] Rows[18/0.02s] Column[0/0s] Update[1/0.01s] Insert[2/0s] Delete[0/0s]
[root@obtest observium]#