Update PlanetOS detection (#6090)

* Add new Planet switch

* changed definition + added more tests
This commit is contained in:
Neil Lathwood 2017-03-04 22:40:23 +00:00 committed by David Bell
parent ab793b7d77
commit a9ad228be4
4 changed files with 7 additions and 2 deletions

View File

@ -8,5 +8,4 @@ over:
- { graph: device_mempool, text: 'Memory Usage' }
discovery:
- sysObjectId:
- .1.3.6.1.4.1.10456.1.1516
- .1.3.6.1.4.1.10456.1.1566
- .1.3.6.1.4.1.10456.1.

View File

@ -1327,6 +1327,8 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
{
$this->checkOS('planetos');
$this->checkOS('planetos', 'planetos1');
$this->checkOS('planetos', 'planetos-gs-5220-16s8c');
$this->checkOS('planetos', 'planetos-sgsw-24240');
}
public function testPoweralert()

View File

@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|PLANET GS-5220-16S8C Managed Switch
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.10456.1.1494

View File

@ -0,0 +1,2 @@
1.3.6.1.2.1.1.1.0|4|PLANET SGSW-24240 Managed Switch
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.10456.1.1495