mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-02 00:32:09 +02:00
remove battery status from areca controller voltages
git-svn-id: http://www.observium.org/svn/observer/trunk@2942 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -18,7 +18,7 @@ if ($device['os'] == "areca")
|
|||||||
$index = $split_oid[count($split_oid)-1];
|
$index = $split_oid[count($split_oid)-1];
|
||||||
$oid = "1.3.6.1.4.1.18928.1.2.2.1.8.1.3." . $index;
|
$oid = "1.3.6.1.4.1.18928.1.2.2.1.8.1.3." . $index;
|
||||||
$current = snmp_get($device, $oid, "-Oqv", "") / $divisor;
|
$current = snmp_get($device, $oid, "-Oqv", "") / $divisor;
|
||||||
if ($descr != '"Battery Status"') # Battery Status is charge percentage, or 255 when no BBU
|
if (trim($descr,'"') != 'Battery Status') # Battery Status is charge percentage, or 255 when no BBU
|
||||||
{
|
{
|
||||||
discover_sensor($valid['sensor'], 'voltage', $device, $oid, $index, $type, trim($descr,'"'), $divisor, '1', NULL, NULL, NULL, NULL, $current);
|
discover_sensor($valid['sensor'], 'voltage', $device, $oid, $index, $type, trim($descr,'"'), $divisor, '1', NULL, NULL, NULL, NULL, $current);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user