mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix poweralert divisor based on version #4391
This commit is contained in:
@@ -5,6 +5,8 @@ if ($device['os'] == 'poweralert') {
|
||||
$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;
|
||||
} elseif (version_compare($serial, '12.06.0068', '>=')) {
|
||||
$divisor = 10;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user