mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Check firmware version of poweralert units before applying divisor for current sensor
This commit is contained in:
@@ -2,7 +2,10 @@
|
|||||||
|
|
||||||
$divisor = 10;
|
$divisor = 10;
|
||||||
if ($device['os'] == 'poweralert') {
|
if ($device['os'] == 'poweralert') {
|
||||||
$divisor = 1;
|
$serial = trim(snmp_get($device, '.1.3.6.1.4.1.850.100.1.1.4.0', '-Ovq', 'TRIPPLITE-MIB'), '"');
|
||||||
|
if (version_compare($serial, '12.04.0055', '>=')) {
|
||||||
|
$divisor = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// RFC1628 UPS
|
// RFC1628 UPS
|
||||||
|
|||||||
Reference in New Issue
Block a user