refactor: move include based discovery after yaml discovery (#5401)

This commit is contained in:
Tony Murray
2017-01-11 16:22:16 -06:00
committed by Neil Lathwood
parent 569a3b4a8b
commit 8156fd547f
8 changed files with 27 additions and 52 deletions

View File

@@ -1,5 +0,0 @@
<?php
if (starts_with($sysObjectId, '.1.3.6.1.4.1.4413') && !str_contains($sysDescr, array('vxworks', 'Quanta', 'FASTPATH Switching'), true)) {
$os = 'edgeswitch';
}

View File

@@ -1,19 +1,7 @@
<?php
$skip_oids = array(
'.1.3.6.1.4.1.674.10892.2',
'.1.3.6.1.4.1.17163.1.1',
'.1.3.6.1.4.1.17713.21',
'.1.3.6.1.4.1.2.3.51.3',
'.1.3.6.1.4.1.7779.', // nios
'.1.3.6.1.4.1.9.1.1348', // Cisco Unified Communications Manager
'.1.3.6.1.4.1.3375.2.1', // F5
'.1.3.6.1.4.1.534.', // Eaton
'.1.3.6.1.4.1.2620.1.6.123.1' // Checkpoint
);
if (starts_with($sysDescr, 'Linux') && !starts_with($sysObjectId, $skip_oids)) {
if (starts_with($sysDescr, 'Linux')) {
$os = 'linux';
// Specific Linux-derivatives

View File

@@ -1,9 +0,0 @@
<?php
if (starts_with($sysDescr, 'ZyWALL 2X')) {
$os = 'zywall';
}
if (starts_with($sysObjectId, array('.1.3.6.1.4.1.890.1.6', '.1.3.6.1.4.1.890.1.15'))) {
$os = 'zywall';
}