mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-31 16:23:50 +02:00
small fix to entity sensor temp discovery
git-svn-id: http://www.observium.org/svn/observer/trunk@1421 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -9,7 +9,6 @@ $oids = array();
|
|||||||
$oids = snmpwalk_cache_multi_oid($device, "entPhySensorType", $oids, "ENTITY-SENSOR-MIB");
|
$oids = snmpwalk_cache_multi_oid($device, "entPhySensorType", $oids, "ENTITY-SENSOR-MIB");
|
||||||
$oids = snmpwalk_cache_multi_oid($device, "entPhySensorScale", $oids, "ENTITY-SENSOR-MIB");
|
$oids = snmpwalk_cache_multi_oid($device, "entPhySensorScale", $oids, "ENTITY-SENSOR-MIB");
|
||||||
$oids = snmpwalk_cache_multi_oid($device, "entPhySensorValue", $oids, "ENTITY-SENSOR-MIB");
|
$oids = snmpwalk_cache_multi_oid($device, "entPhySensorValue", $oids, "ENTITY-SENSOR-MIB");
|
||||||
$oids = snmpwalk_cache_multi_oid($device, "entPhySensorMeasuredEntity", $oids, "ENTITY-SENSOR-MIB");
|
|
||||||
|
|
||||||
if(is_array($oids[$device['device_id']]))
|
if(is_array($oids[$device['device_id']]))
|
||||||
{
|
{
|
||||||
@@ -20,7 +19,6 @@ if(is_array($oids[$device['device_id']]))
|
|||||||
if($entry['entPhySensorType'] == "celsius" && is_numeric($entry['entPhySensorValue']) && is_numeric($index) && $entry['entPhySensorValue'] > "0" && $entry['entPhySensorValue'] < "1000")
|
if($entry['entPhySensorType'] == "celsius" && is_numeric($entry['entPhySensorValue']) && is_numeric($index) && $entry['entPhySensorValue'] > "0" && $entry['entPhySensorValue'] < "1000")
|
||||||
{
|
{
|
||||||
$entPhysicalIndex = $index;
|
$entPhysicalIndex = $index;
|
||||||
$entPhysicalIndex_measured = $entry['entPhySensorMeasuredEntity'];
|
|
||||||
$descr = snmp_get($device, "entPhysicalDescr.".$index, "-Oqv", "ENTITY-SENSOR-MIB");
|
$descr = snmp_get($device, "entPhysicalDescr.".$index, "-Oqv", "ENTITY-SENSOR-MIB");
|
||||||
$oid = ".1.3.6.1.2.1.99.1.1.1.4.".$index;
|
$oid = ".1.3.6.1.2.1.99.1.1.1.4.".$index;
|
||||||
$current = $entry['entPhySensorValue'];
|
$current = $entry['entPhySensorValue'];
|
||||||
|
|||||||
Reference in New Issue
Block a user