mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-03 00:11:49 +02:00
Correct current limits on iPoMan
git-svn-id: http://www.observium.org/svn/observer/trunk@1730 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -39,7 +39,7 @@ if ($device['os'] == "ipoman")
|
|||||||
$divisor = 1000;
|
$divisor = 1000;
|
||||||
$descr = (trim($ipoman_array['in'][$index]['inletConfigDesc'],'"') != '' ? trim($ipoman_array['in'][$index]['inletConfigDesc'],'"') : "Inlet $index");
|
$descr = (trim($ipoman_array['in'][$index]['inletConfigDesc'],'"') != '' ? trim($ipoman_array['in'][$index]['inletConfigDesc'],'"') : "Inlet $index");
|
||||||
$current = $entry['inletStatusCurrent'] / $divisor;
|
$current = $entry['inletStatusCurrent'] / $divisor;
|
||||||
$high_limit = $entry['inletConfigCurrentHigh'];
|
$high_limit = $entry['inletConfigCurrentHigh'] / 10;
|
||||||
echo(discover_sensor($valid_sensor, 'current', $device, $cur_oid, '1.3.1.3.'.$index, 'ipoman', $descr, $divisor, '1', NULL, NULL, NULL, $high_limit, $current));
|
echo(discover_sensor($valid_sensor, 'current', $device, $cur_oid, '1.3.1.3.'.$index, 'ipoman', $descr, $divisor, '1', NULL, NULL, NULL, $high_limit, $current));
|
||||||
# FIXME: iPoMan 1201 also says it has 2 inlets, at least until firmware 1.06 - wtf?
|
# FIXME: iPoMan 1201 also says it has 2 inlets, at least until firmware 1.06 - wtf?
|
||||||
}
|
}
|
||||||
@@ -53,7 +53,7 @@ if ($device['os'] == "ipoman")
|
|||||||
$divisor = 1000;
|
$divisor = 1000;
|
||||||
$descr = (trim($ipoman_array['out'][$index]['outletConfigDesc'],'"') != '' ? trim($ipoman_array['out'][$index]['outletConfigDesc'],'"') : "Output $index");
|
$descr = (trim($ipoman_array['out'][$index]['outletConfigDesc'],'"') != '' ? trim($ipoman_array['out'][$index]['outletConfigDesc'],'"') : "Output $index");
|
||||||
$current = $entry['outletStatusCurrent'] / $divisor;
|
$current = $entry['outletStatusCurrent'] / $divisor;
|
||||||
$high_limit = $entry['outletConfigCurrentHigh'];
|
$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, $type, $descr, $divisor, '1', NULL, NULL, NULL, $high_limit, $current));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user