Skip to content

Commit

Permalink
refactor: mibs E-G (#5190)
Browse files Browse the repository at this point in the history
  • Loading branch information
laf committed Dec 19, 2016
1 parent ab29261 commit ac316b6
Show file tree
Hide file tree
Showing 128 changed files with 11 additions and 86,614 deletions.
12 changes: 9 additions & 3 deletions includes/definitions.inc.php
Expand Up @@ -1445,6 +1445,7 @@
$config['os'][$os]['text'] = 'Fortinet Fortigate';
$config['os'][$os]['type'] = 'firewall';
$config['os'][$os]['icon'] = 'fortinet';
$config['os'][$os]['mib_dir'][] = 'fortinet';
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
$config['os'][$os]['over'][0]['text'] = 'Device Traffic';
$config['os'][$os]['over'][1]['graph'] = 'device_fortigate_cpu';
Expand All @@ -1456,6 +1457,7 @@
$config['os'][$os]['text'] = 'Fortinet FortiSwitch';
$config['os'][$os]['type'] = 'network';
$config['os'][$os]['icon'] = 'fortinet';
$config['os'][$os]['mib_dir'][] = 'fortinet';
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
$config['os'][$os]['over'][0]['text'] = 'Device Traffic';
$config['os'][$os]['over'][1]['graph'] = 'device_processor';
Expand Down Expand Up @@ -1604,6 +1606,7 @@
$config['os'][$os]['text'] = 'Force10 FTOS';
$config['os'][$os]['type'] = 'network';
$config['os'][$os]['icon'] = 'force10';
$config['os'][$os]['mib_dir'][] = 'f10';
$config['os'][$os]['over'][0]['graph'] = 'device_bits';
$config['os'][$os]['over'][0]['text'] = 'Device Traffic';
$config['os'][$os]['over'][1]['graph'] = 'device_processor';
Expand All @@ -1615,13 +1618,14 @@
$config['os'][$os]['text'] = 'Dell Networking OS';
$config['os'][$os]['type'] = 'network';
$config['os'][$os]['icon'] = 'dell';
$config['os'][$os]['mib_dir'][] = 'dell';
$config['os'][$os]['mib_dir'][] = 'f10';
$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]['mib_dir'][] = 'dell';

$os = 'dell-rcs';
$config['os'][$os]['text'] = 'Dell Remote Console';
Expand Down Expand Up @@ -1826,8 +1830,9 @@
$config['os'][$os]['icon'] = 'axis';

$os = 'gamatronicups';
$config['os'][$os]['text'] = 'Gamatronic UPS Stack';
$config['os'][$os]['type'] = 'power';
$config['os'][$os]['text'] = 'Gamatronic UPS Stack';
$config['os'][$os]['type'] = 'power';
$config['os'][$os]['mib_dir'][] = 'gamtronic';

$os = 'eatonups';
$config['os'][$os]['text'] = 'Eaton UPS';
Expand Down Expand Up @@ -2635,6 +2640,7 @@
$config['os'][$os]['text'] = 'Eaton PDU';
$config['os'][$os]['type'] = 'power';
$config['os'][$os]['icon'] = 'eaton';
$config['os'][$os]['mib_dir'][] = 'eaton';
$config['os'][$os]['over'][0]['graph'] = 'device_current';
$config['os'][$os]['over'][0]['text'] = 'Current';

Expand Down
2 changes: 1 addition & 1 deletion includes/discovery/os/fortiswitch.inc.php
Expand Up @@ -23,7 +23,7 @@
* @author Neil Lathwood <neil@lathwood.co.uk>
*/

$version = snmp_get($device, 'fsSysVersion.0', '-Oqn', 'FORTINET-FORTISWITCH-MIB');
$version = snmp_get($device, 'fsSysVersion.0', '-Oqn', 'FORTINET-FORTISWITCH-MIB', 'fortinet');
if (str_contains($version, 'FortiSwitch')) {
$os = 'fortiswitch';
}
2 changes: 1 addition & 1 deletion includes/discovery/os/gamatronicups.inc.php
@@ -1,7 +1,7 @@
<?php

if (empty($sysDescr)) {
if (snmp_get($device, 'GAMATRONIC-MIB::psUnitManufacture.0', '-Oqv', '') == 'Gamatronic') {
if (snmp_get($device, 'psUnitManufacture.0', '-Oqv', 'GAMATRONIC-MIB', 'gamtronic') == 'Gamatronic') {
$os = 'gamatronicups';
}
}

0 comments on commit ac316b6

Please sign in to comment.