Merge pull request #1215 from vitalisator/issue-1212

Added Basic OS Support for Multimatic USV
This commit is contained in:
Neil Lathwood 2015-06-08 21:17:07 +01:00
commit 29a60c882c
4 changed files with 20 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -1190,6 +1190,12 @@ $config['os'][$os]['over'][0]['graph'] = "device_bits";
$config['os'][$os]['over'][0]['text'] = "Device Traffic";
$config['os'][$os]['icon'] = "enterasys";
// Multimatic UPS (Generex CS121 SNMP Adapter)
$os = "multimatic";
$config['os'][$os]['text'] = "Multimatic UPS";
$config['os'][$os]['type'] = "power";
$config['os'][$os]['icon'] = "multimatic";
foreach ($config['os'] as $this_os => $blah)
{
if (isset($config['os'][$this_os]['group']))

View File

@ -0,0 +1,9 @@
<?php
if (!$os) {
if (preg_match("/^CS121/", $sysDescr)) {
if (strstr(snmp_get($device, "UPS-MIB::upsIdentManufacturer.0", "-Oqv", ""), "Multimatic")){
$os = "multimatic";
}
}
}

View File

@ -0,0 +1,5 @@
<?php
$hardware = snmp_get($device, "upsIdentModel.0", "-OQv", "UPS-MIB");
$version = snmp_get($device, "upsIdentAgentSoftwareVersion.0", "-OQv", "UPS-MIB");