mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Added Basic OS Support for Multimatic USV
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
@@ -1190,6 +1190,12 @@ $config['os'][$os]['over'][0]['graph'] = "device_bits";
|
|||||||
$config['os'][$os]['over'][0]['text'] = "Device Traffic";
|
$config['os'][$os]['over'][0]['text'] = "Device Traffic";
|
||||||
$config['os'][$os]['icon'] = "enterasys";
|
$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)
|
foreach ($config['os'] as $this_os => $blah)
|
||||||
{
|
{
|
||||||
if (isset($config['os'][$this_os]['group']))
|
if (isset($config['os'][$this_os]['group']))
|
||||||
|
|||||||
@@ -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";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
$hardware = snmp_get($device, "upsIdentModel.0", "-OQv", "UPS-MIB");
|
||||||
|
$version = snmp_get($device, "upsIdentAgentSoftwareVersion.0", "-OQv", "UPS-MIB");
|
||||||
Reference in New Issue
Block a user