mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #1404 from laf/issue-1361
Added basic detection for Brocade
This commit is contained in:
@@ -408,7 +408,18 @@ $config['os'][$os]['over'][2]['graph'] = "device_mempool";
|
||||
$config['os'][$os]['over'][2]['text'] = "Memory Usage";
|
||||
$config['os'][$os]['icon'] = "cisco";
|
||||
|
||||
|
||||
// Brocade NOS
|
||||
$os = "nos";
|
||||
$config['os'][$os]['text'] = "Brocade NOS";
|
||||
$config['os'][$os]['type'] = "network";
|
||||
$config['os'][$os]['ifname'] = 1;
|
||||
$config['os'][$os]['over'][0]['graph'] = "device_bits";
|
||||
$config['os'][$os]['over'][0]['text'] = "Device Traffic";
|
||||
$config['os'][$os]['over'][1]['graph'] = "device_processor";
|
||||
$config['os'][$os]['over'][1]['text'] = "CPU Usage";
|
||||
$config['os'][$os]['over'][2]['graph'] = "device_mempool";
|
||||
$config['os'][$os]['over'][2]['text'] = "Memory Usage";
|
||||
$config['os'][$os]['icon'] = "brocade";
|
||||
|
||||
// Cisco Small Business
|
||||
|
||||
|
7
includes/discovery/os/nos.inc.php
Normal file
7
includes/discovery/os/nos.inc.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
if (!$os) {
|
||||
if (strstr($sysObjectId, ".1.3.6.1.4.1.1588.2.2.1.1.1.5")) {
|
||||
$os = "nos";
|
||||
}
|
||||
}
|
6
includes/polling/os/nos.inc.php
Normal file
6
includes/polling/os/nos.inc.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
//SNMPv2-MIB::sysDescr.0 Brocade VDX Switch.
|
||||
if (preg_match("/Brocade ([\s\d\w]+)/", $poll_device['sysDescr'], $hardware)) {
|
||||
$hardware = $hardware[1];
|
||||
}
|
Reference in New Issue
Block a user