mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Power discovery/polling enabled for IPMI, CISCO-ENTITY-SENSORS-MIB and ENTIY-SENSORS-MIB
git-svn-id: http://www.observium.org/svn/observer/trunk@2104 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -49,7 +49,7 @@ if ($device['os'] == "ios" || $device['os_group'] == "ios")
|
||||
$entitysensor['percentRH'] = "humidity";
|
||||
$entitysensor['rpm'] = "fanspeed";
|
||||
$entitysensor['celsius'] = "temperature";
|
||||
$entitysensor['watts'] = "watts";
|
||||
$entitysensor['watts'] = "power";
|
||||
|
||||
if (is_array($oids))
|
||||
{
|
||||
|
||||
@@ -28,7 +28,7 @@ $oids = snmpwalk_cache_multi_oid($device, "entPhySensorValue", $oids, "ENTITY-SE
|
||||
$entitysensor['voltsDC'] = "voltage";
|
||||
$entitysensor['voltsAC'] = "voltage";
|
||||
$entitysensor['amperes'] = "current";
|
||||
$entitysensor['watt'] = "power";
|
||||
$entitysensor['watts'] = "power";
|
||||
$entitysensor['hertz'] = "freq";
|
||||
$entitysensor['percentRH'] = "humidity";
|
||||
$entitysensor['rpm'] = "fanspeed";
|
||||
@@ -90,4 +90,4 @@ if (is_array($oids))
|
||||
|
||||
echo("\n");
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -101,6 +101,9 @@ function sensor_low_limit($class, $current)
|
||||
case 'fanspeed':
|
||||
$limit = $current * 0.80;
|
||||
break;
|
||||
case 'power':
|
||||
$limit = NULL;
|
||||
break;
|
||||
}
|
||||
return $limit;
|
||||
}
|
||||
@@ -130,6 +133,9 @@ function sensor_limit($class, $current)
|
||||
case 'fanspeed':
|
||||
$limit = $current * 1.30;
|
||||
break;
|
||||
case 'power':
|
||||
$limit = $current * 1.50;
|
||||
break;
|
||||
}
|
||||
return $limit;
|
||||
}
|
||||
@@ -322,4 +328,4 @@ function discover_toner(&$valid, $device, $oid, $index, $type, $descr, $capacity
|
||||
$valid[$type][$index] = 1;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user