mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added Cisco SGE OS Detection (#10697)
* Added Cisco SGE OS Detection * Corrected Style. * Included hwversion. * Added snmprec file for sge variant * Create ciscosb_sge.json
This commit is contained in:
@@ -34,6 +34,7 @@ discovery_modules:
|
||||
discovery:
|
||||
- sysObjectID:
|
||||
- .1.3.6.1.4.1.9.6.1.23.3.13
|
||||
- .1.3.6.1.4.1.9.6.1.72
|
||||
- .1.3.6.1.4.1.9.6.1.80
|
||||
- .1.3.6.1.4.1.9.6.1.81
|
||||
- .1.3.6.1.4.1.9.6.1.82
|
||||
|
@@ -21,7 +21,10 @@ $hwversion = $data['0']['genGroupHWVersion'];
|
||||
if (! $hwversion) {
|
||||
$hwversion = $data['1']['rlPhdUnitGenParamHardwareVersion'];
|
||||
}
|
||||
if ($device['sysObjectID'] == '.1.3.6.1.4.1.9.6.1.89.26.1') {
|
||||
|
||||
if (preg_match('/\.1\.3\.6\.1\.4\.1\.9\.6\.1\.72\.(....).+/', $device['sysObjectID'], $model)) {
|
||||
$hardware = 'SGE' . $model[1] . '-' . substr($device['sysDescr'], 0, 2);
|
||||
} elseif ($device['sysObjectID'] == '.1.3.6.1.4.1.9.6.1.89.26.1') {
|
||||
$hardware = 'SG220-26';
|
||||
} else {
|
||||
$hardware = str_replace(' ', '', $data['1']['rlPhdUnitGenParamModelName']);
|
||||
@@ -29,7 +32,6 @@ if ($device['sysObjectID'] == '.1.3.6.1.4.1.9.6.1.89.26.1') {
|
||||
if ($hwversion) {
|
||||
$hardware .= " " . $hwversion;
|
||||
}
|
||||
|
||||
$version = 'Software ' . $data['1']['rlPhdUnitGenParamSoftwareVersion'];
|
||||
$boot = $data['0']['rndBaseBootVersion'];
|
||||
$firmware = $data['1']['rlPhdUnitGenParamFirmwareVersion'];
|
||||
|
105488
tests/ciscosb_sge.json
Normal file
105488
tests/ciscosb_sge.json
Normal file
File diff suppressed because it is too large
Load Diff
19902
tests/snmpsim/ciscosb_sge.snmprec
Normal file
19902
tests/snmpsim/ciscosb_sge.snmprec
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user