Merge pull request #2135 from SaaldjorMike/reformat-issue-2133

Reformat check a bit to make it easier for adding additional oids in …
This commit is contained in:
Neil Lathwood
2015-10-15 14:11:38 +01:00
+5 -1
View File
@@ -1,7 +1,11 @@
<?php
if (!$os) {
if (preg_match('/^Linux/', $sysDescr) && $sysObjectId != '.1.3.6.1.4.1.674.10892.2' && $sysObjectId != '.1.3.6.1.4.1.17163.1.1') {
$skip_oids = array(
'.1.3.6.1.4.1.674.10892.2',
'.1.3.6.1.4.1.17163.1.1',
);
if (preg_match('/^Linux/', $sysDescr) && !in_array($sysObjectId, $skip_oids)) {
$os = 'linux';
}