fix: #9301: Eaton/APC Galaxy seems to be the exception with divisor 10 for voltage (#9356)

* Adjustment in #9301: Eaton Galaxy HW seems to be the exception here with divisor 10 for voltage

* fix for APC Galaxy UPS (and not Eaton anymore)

* remove Galaxy test data from eaton-mgeups files

* tests: APC Galaxy 7000 test data
This commit is contained in:
PipoCanaja
2018-10-26 22:05:30 +02:00
committed by Neil Lathwood
parent 0ec8f18459
commit c37786d845
6 changed files with 425 additions and 189 deletions

View File

@@ -852,7 +852,7 @@ function get_device_divisor($device, $os_version, $sensor_type, $oid)
if ($sensor_type == 'voltage' && !starts_with($oid, '.1.3.6.1.2.1.33.1.2.5.') && !starts_with($oid, '.1.3.6.1.2.1.33.1.3.3.1.3')) {
return 1;
}
} elseif ($device['os'] == 'eaton-mgeups') {
} elseif ($device['os'] == 'apc-mgeups') {
if ($sensor_type == 'voltage') {
return 10;
}