Support Huawei UPS, tested with UPS5000

This commit is contained in:
sthen
2015-07-04 20:22:29 +01:00
parent 7d6dbe4d9b
commit 69e9929ddb
3 changed files with 22 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
if (!$os)
{
if (preg_match("/^Linux GSE200M/", $sysDescr)) {
if (strstr(snmp_get($device, "UPS-MIB::upsIdentManufacturer.0", "-Oqv", ""), "HUAWEI")){
$os = "huaweiups";
}
}
}
?>