mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
# -> / for phpdoc
git-svn-id: http://www.observium.org/svn/observer/trunk@3239 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -9,7 +9,7 @@ if ($device['os'] == "mgeups")
|
||||
echo("MGE UPS External ");
|
||||
|
||||
# Environmental monitoring on UPSes etc
|
||||
# FIXME upsmgConfigEnvironmentTable and upsmgEnvironmentSensorTable are used but there are others ...
|
||||
/// FIXME upsmgConfigEnvironmentTable and upsmgEnvironmentSensorTable are used but there are others ...
|
||||
$mge_env_data = snmpwalk_cache_oid($device, "upsmgConfigEnvironmentTable", array(), "MG-SNMP-UPS-MIB");
|
||||
$mge_env_data = snmpwalk_cache_oid($device, "upsmgEnvironmentSensorTable", $mge_env_data, "MG-SNMP-UPS-MIB");
|
||||
|
||||
@@ -51,7 +51,7 @@ upsmgEnvironmentInput2State.1 = open
|
||||
$high_limit = $mge_env_data[$index]['upsmgConfigHumidityHigh'];
|
||||
$hysteresis = $mge_env_data[$index]['upsmgConfigHumidityHysteresis'];
|
||||
|
||||
# FIXME warninglevels might need some other calculation in stead of hysteresis
|
||||
/// FIXME warninglevels might need some other calculation in stead of hysteresis
|
||||
$low_warn_limit = $low_limit + $hysteresis;
|
||||
$high_warn_limit = $high_limit - $hysteresis;
|
||||
|
||||
@@ -60,7 +60,7 @@ upsmgEnvironmentInput2State.1 = open
|
||||
if ($current != 0)
|
||||
{
|
||||
# Humidity = 0 -> Sensor not available
|
||||
# FIXME true for MGE as wel as APC?
|
||||
/// FIXME true for MGE as wel as APC?
|
||||
discover_sensor($valid['sensor'], 'humidity', $device, $oid, $index, $sensorType, $descr, '1', '1', $low_limit, $low_warn_limit, $high_warn_limit, $high_limit , $current);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user