2015-07-04 20:14:28 +01:00
|
|
|
<?php
|
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
if (!$os) {
|
|
|
|
if (preg_match('/^Linux GSE200M/', $sysDescr)) {
|
|
|
|
if (strstr(snmp_get($device, 'UPS-MIB::upsIdentManufacturer.0', '-Oqv', ''), 'HUAWEI')) {
|
|
|
|
$os = 'huaweiups';
|
|
|
|
}
|
2015-07-04 20:14:28 +01:00
|
|
|
}
|
|
|
|
}
|