mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
newdevice: Updated OS Polling for Opengear ACM7008 (#6349)
* Add OS Polling for Opengear ACM7008 * Fixed OSDiscoveryTest.php whitespaces * Removed 'v' from OS version polling
This commit is contained in:
committed by
Neil Lathwood
parent
c51fd769c3
commit
699e99e795
10
includes/polling/os/opengear.inc.php
Normal file
10
includes/polling/os/opengear.inc.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
// SNMPv2-SMI::enterprises.25049.17.1.1 = STRING: "3.16.6 058e5600 ()" - ogFirmwareVersion
|
||||
// SNMPv2-SMI::enterprises.25049.17.1.2 = STRING: "7006851296650" - ogSerialNumber
|
||||
|
||||
$ogFirmwareVersion = snmp_get($device, '1.3.6.1.4.1.25049.17.1.1', '-OQv');
|
||||
$ogFirmwareVersion = explode(' ', $ogFirmwareVersion);
|
||||
$version = trim($ogFirmwareVersion[0], '" ');
|
||||
|
||||
$serial = trim(snmp_get($device, '1.3.6.1.4.1.25049.17.1.2', '-OQv'), '" ');
|
@@ -1274,6 +1274,7 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
|
||||
public function testOpengear()
|
||||
{
|
||||
$this->checkOS('opengear');
|
||||
$this->checkOS('opengear', 'opengear1');
|
||||
}
|
||||
|
||||
public function testOpenindiana()
|
||||
|
2
tests/snmpsim/opengear1.snmprec
Normal file
2
tests/snmpsim/opengear1.snmprec
Normal file
@@ -0,0 +1,2 @@
|
||||
1.3.6.1.2.1.1.1.0|4|Linux test01-acm7008-2-lmct 3.10.0-uc0 #1 SMP Tue Oct 4 14:21:12 EST 2016 armv7l
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.25049.1.90
|
Reference in New Issue
Block a user