mirror of
https://github.com/librenms/librenms.git
synced 2024-09-23 11:29:23 +00:00
Merge pull request #1215 from vitalisator/issue-1212
Added Basic OS Support for Multimatic USV
This commit is contained in:
commit
29a60c882c
BIN
html/images/os/multimatic.png
Normal file
BIN
html/images/os/multimatic.png
Normal file
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']))
|
||||||
|
9
includes/discovery/os/multimatic.inc.php
Normal file
9
includes/discovery/os/multimatic.inc.php
Normal 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";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
5
includes/polling/os/multimatic.inc.php
Normal file
5
includes/polling/os/multimatic.inc.php
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
$hardware = snmp_get($device, "upsIdentModel.0", "-OQv", "UPS-MIB");
|
||||||
|
$version = snmp_get($device, "upsIdentAgentSoftwareVersion.0", "-OQv", "UPS-MIB");
|
Loading…
Reference in New Issue
Block a user