mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-26 08:03:51 +02:00
bug fix
This commit is contained in:
@@ -25,7 +25,7 @@ if ($device['os'] == 'raritan')
|
||||
$inlet_insert_index = $inlet_index;
|
||||
|
||||
$inlet_oid = ".1.3.6.1.4.1.13742.6.5.2.3.1.4.1.$inletsuffix.1";
|
||||
$inlet_divisor = pow(10,snmp_get($device, "inletSensorDecimalDigits.1.$inletsuffix.rmsCurrent", "-Ovq","PDU2-MIB");
|
||||
$inlet_divisor = pow(10,snmp_get($device, "inletSensorDecimalDigits.1.$inletsuffix.rmsCurrent", "-Ovq","PDU2-MIB"));
|
||||
$inlet_current = snmp_get($device, "measurementsInletSensorValue.1.$inletsuffix.1", "-Ovq","PDU2-MIB") / $inlet_divisor;
|
||||
|
||||
if ($inlet_current >= 0) {
|
||||
|
||||
@@ -19,7 +19,7 @@ if ($device['os'] == 'raritan')
|
||||
$inlet_insert_index = $inlet_index;
|
||||
|
||||
$inlet_oid = ".1.3.6.1.4.1.13742.6.5.2.3.1.4.1.$inletsuffix.23";
|
||||
$inlet_divisor = pow(10,snmp_get($device, "inletSensorDecimalDigits.1.$inletsuffix.activePower", "-Ovq","PDU2-MIB");
|
||||
$inlet_divisor = pow(10,snmp_get($device, "inletSensorDecimalDigits.1.$inletsuffix.activePower", "-Ovq","PDU2-MIB"));
|
||||
$inlet_frequency = snmp_get($device, "measurementsInletSensorValue.$inletsuffix.1.frequency", "-Ovq", "PDU2-MIB") / $inlet_divisor;
|
||||
|
||||
if ($inlet_frequency >= 0) {
|
||||
|
||||
@@ -19,7 +19,7 @@ if ($device['os'] == 'raritan')
|
||||
$inlet_insert_index = $inlet_index;
|
||||
|
||||
$inlet_oid = ".1.3.6.1.4.1.13742.6.5.2.3.1.4.1.$inletsuffix.5";
|
||||
$inlet_divisor = pow(10,snmp_get($device, "inletSensorDecimalDigits.1.$inletsuffix.activePower", "-Ovq","PDU2-MIB");
|
||||
$inlet_divisor = pow(10,snmp_get($device, "inletSensorDecimalDigits.1.$inletsuffix.activePower", "-Ovq","PDU2-MIB"));
|
||||
$inlet_power = snmp_get($device, "measurementsInletSensorValue.$inletsuffix.1.activePower", "-Ovq", "PDU2-MIB") / $inlet_divisor;
|
||||
|
||||
if ($inlet_power >= 0) {
|
||||
|
||||
Reference in New Issue
Block a user