mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
set sensor type for ipoman outlet current
git-svn-id: http://www.observium.org/svn/observer/trunk@1756 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -54,7 +54,7 @@ if ($device['os'] == "ipoman")
|
||||
$descr = (trim($cache['ipoman']['out'][$index]['outletConfigDesc'],'"') != '' ? trim($cache['ipoman']['out'][$index]['outletConfigDesc'],'"') : "Output $index");
|
||||
$current = $entry['outletStatusCurrent'] / $divisor;
|
||||
$high_limit = $entry['outletConfigCurrentHigh'] / 10;
|
||||
echo(discover_sensor($valid_sensor, 'current', $device, $cur_oid, '2.3.1.3.'.$index, $type, $descr, $divisor, '1', NULL, NULL, NULL, $high_limit, $current));
|
||||
echo(discover_sensor($valid_sensor, 'current', $device, $cur_oid, '2.3.1.3.'.$index, 'ipoman', $descr, $divisor, '1', NULL, NULL, NULL, $high_limit, $current));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user