2010-11-19 22:46:24 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
# FIXME: EMD "stack" support
|
|
|
|
# FIXME: What to do with IPOMANII-MIB::ipmEnvEmdConfigHumiOffset.0 ?
|
|
|
|
|
|
|
|
global $valid_sensor;
|
|
|
|
|
2011-03-15 10:54:59 +00:00
|
|
|
if ($device['os'] == "ipoman")
|
2010-11-19 22:46:24 +00:00
|
|
|
{
|
|
|
|
echo(" IPOMANII-MIB ");
|
|
|
|
$emd_installed = snmp_get($device, "IPOMANII-MIB::ipmEnvEmdStatusEmdType.0"," -Oqv");
|
|
|
|
|
|
|
|
if ($emd_installed == 'eMD-HT')
|
|
|
|
{
|
|
|
|
$descr = snmp_get($device, "IPOMANII-MIB::ipmEnvEmdConfigHumiName.0", "-Oqv");
|
|
|
|
$current = snmp_get($device, "IPOMANII-MIB::ipmEnvEmdStatusHumidity.0", "-Oqv") / 10;
|
|
|
|
$high_limit = snmp_get($device, "IPOMANII-MIB::ipmEnvEmdConfigHumiHighSetPoint.0", "-Oqv");
|
|
|
|
$low_limit = snmp_get($device, "IPOMANII-MIB::ipmEnvEmdConfigHumiLowSetPoint.0", "-Oqv");
|
|
|
|
|
|
|
|
if ($descr != "" && is_numeric($current) && $current > "0")
|
|
|
|
{
|
|
|
|
$current_oid = ".1.3.6.1.4.1.2468.1.4.2.1.5.1.1.3.0";
|
|
|
|
$descr = trim(str_replace("\"", "", $descr));
|
2011-03-15 10:54:59 +00:00
|
|
|
|
2010-11-19 22:46:24 +00:00
|
|
|
discover_sensor($valid_sensor, 'humidity', $device, $current_oid, "1", 'ipoman', $descr, '10', '1', $low_limit, NULL, NULL, $high_limit, $current);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-03-15 10:54:59 +00:00
|
|
|
?>
|