Added basic detection for Brocade

This commit is contained in:
laf
2015-07-07 19:16:36 +01:00
parent e818236f84
commit a35fa43e44
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];
}