Merge pull request #2498 from laf/issue-2496

This commit is contained in:
Søren Rosiak
2015-11-25 18:54:15 +01:00
5 changed files with 18 additions and 1 deletions

BIN
html/images/os/quanta.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -528,6 +528,14 @@ $config['os'][$os]['bad_if'][] = 'cpu';
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
$config['os'][$os]['over'][0]['text'] = 'Device Traffic';
//Quanta switches
$os = 'quanta';
$config['os'][$os]['text'] = 'Quanta';
$config['os'][$os]['type'] = 'network';
$config['os'][$os]['icon'] = 'quanta';
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
$config['os'][$os]['over'][0]['text'] = 'Device Traffic';
$os = 'netonix';
$config['os'][$os]['text'] = 'Netonix';
$config['os'][$os]['type'] = 'network';

View File

@ -1,6 +1,6 @@
<?php
if (!$os) {
if (strstr($sysObjectId, '.1.3.6.1.4.1.4413')) {
if (strstr($sysObjectId, '.1.3.6.1.4.1.4413') && !stristr($sysDescr, 'vxworks')) {
$os = 'edgeswitch';
}
}

View File

@ -0,0 +1,6 @@
<?php
if (!$os) {
if (strstr($sysObjectId, '.1.3.6.1.4.1.4413') && stristr($sysDescr, 'vxworks')) {
$os = 'quanta';
}
}

View File

@ -0,0 +1,3 @@
<?php
list($hardware, $features, $version) = explode(',', $poll_device['sysDescr']);