mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #4564 from murrant/eaton
newdevice: Eaton PowerXpert
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
if (!$os) {
|
||||
// Eaton UPS
|
||||
if (str_contains($sysDescr, 'Eaton 5P')) {
|
||||
$os = 'eatonups';
|
||||
}
|
||||
// Eaton UPS
|
||||
if (starts_with($sysDescr, 'Eaton 5P') || starts_with($sysObjectId, '.1.3.6.1.4.1.534.')) {
|
||||
$os = 'eatonups';
|
||||
}
|
||||
|
@@ -447,6 +447,7 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
$this->checkOS('eatonups', 'eaton-5p');
|
||||
$this->checkOS('eatonups', 'eaton-5px');
|
||||
$this->checkOS('eatonups', 'eaton-powerxpert');
|
||||
}
|
||||
|
||||
public function testEdgeos()
|
||||
|
2
tests/snmpsim/eaton-powerxpert.snmprec
Normal file
2
tests/snmpsim/eaton-powerxpert.snmprec
Normal file
@@ -0,0 +1,2 @@
|
||||
1.3.6.1.2.1.1.1.0|4|Linux PowerXpert-00-60-26-11-CD-77 2.6.32-rc8 #1 Thu Sep 29 17:28:50 EDT 2011 armv4tl
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.534.2.12
|
Reference in New Issue
Block a user