Merge pull request #1404 from laf/issue-1361

Added basic detection for Brocade
This commit is contained in:
Paul Gear
2015-07-11 08:43:47 +10:00
3 changed files with 25 additions and 1 deletions

View File

@@ -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

View 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";
}
}

View 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];
}