mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* newdevice: Added support for Eaton 5P units #3508 * Small fix * Keep OSDiscoveryTest.php alphebetized
This commit is contained in:
committed by
Tony Murray
parent
6bc67b421e
commit
f76f0f7b96
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!$os) {
|
if (!$os) {
|
||||||
// Eaton UPS
|
// Eaton UPS
|
||||||
if (strstr($sysDescr, 'Eaton 5PX')) {
|
if (str_contains($sysDescr, 'Eaton 5P')) {
|
||||||
$os = 'eatonups';
|
$os = 'eatonups';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -101,6 +101,12 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
|
|||||||
$this->checkOS('dsm', 'Linux', '', $mockSnmp);
|
$this->checkOS('dsm', 'Linux', '', $mockSnmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testEatonups()
|
||||||
|
{
|
||||||
|
$this->checkOS('eatonups', 'Eaton 5P 2200');
|
||||||
|
$this->checkOS('eatonups', 'Eaton 5PX 2000');
|
||||||
|
}
|
||||||
|
|
||||||
public function testEndian()
|
public function testEndian()
|
||||||
{
|
{
|
||||||
$this->checkOS('endian', 'Linux endian');
|
$this->checkOS('endian', 'Linux endian');
|
||||||
|
Reference in New Issue
Block a user