mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
newdevice: Added detection fro Juniper MSS (#6335)
* newdevice: Added detection fro Juniper MSS * update sysObjectId check
This commit is contained in:
committed by
GitHub
co-authored by
GitHub
parent
02017068e7
commit
61bb58b106
@@ -0,0 +1,9 @@
|
||||
os: juniper-mss
|
||||
text: 'Juniper MSS'
|
||||
type: appliance
|
||||
icon: junos
|
||||
over:
|
||||
- { graph: device_bits, text: 'Device Traffic' }
|
||||
discovery:
|
||||
- sysObjectId:
|
||||
- .1.3.6.1.4.1.14525.3.
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* juniper-mss.inc.php
|
||||
*
|
||||
* LibreNMS os poller module for Juniper MSS
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* @package LibreNMS
|
||||
* @link http://librenms.org
|
||||
* @copyright 2017 Neil Lathwood
|
||||
* @author Neil Lathwood <[email protected]>
|
||||
*/
|
||||
|
||||
$tmp_sysdescr = str_replace('Juniper Networks, Inc ', '', $poll_device['sysDescr']);
|
||||
|
||||
list($hardware, $version,) = explode(' ', $tmp_sysdescr);
|
||||
|
||||
unset($tmp_sysdescr);
|
||||
@@ -963,6 +963,11 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
|
||||
$this->checkOS('juniperex2500os');
|
||||
}
|
||||
|
||||
public function testJuniperMss()
|
||||
{
|
||||
$this->checkOS('juniper-mss');
|
||||
}
|
||||
|
||||
public function testJunose()
|
||||
{
|
||||
$this->checkOS('junose');
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
1.3.6.1.2.1.1.1.0|4|Juniper Networks, Inc WLC880R 7.7.4.4 REL
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.14525.3.3.1
|
||||
Reference in New Issue
Block a user